This is an old revision of the document!
AwareApp object
When writing advanced scripts as described above you can use the AwareApp Javascript object that contains some useful static methods. This is an example of calling one of these methods:
var panelId = AwareApp.getPanelId ("main", "Accounts", "My Accounts");
The code of the object is located here: AwareIM/Tomcat/webapps/AwareIM/aware_ext/awareApp.js
The following methods can be used:
- getPanelId (frameName, tabName, contentPanelName)
This method returns the unique id of the content panel in a visual perspective.
var id = AwareApp.getPanelId (‘main’, ‘Tab1’, ‘Content Panel1’);
Parameters:
frameName – name of the frame in the visual perspective that contains the panel
tabName – name of the tab inside the frame that contains the panel
contentPanelName – name of the content panel
- getFramePanelId (frameName)
This method returns the unique id of the frame in a visual perspective.
var id = AwareApp.getFramePanelId (‘main’);
Parameters:
frameName – name of the frame in the visual perspective
- getTabPanelId (frameName, tabName)
This method returns the unique id of the tab in a visual perspective.
var id = AwareApp.getTabPanelId (‘main’, ‘Tab1’);
Parameters:
frameName – name of the frame in the visual perspective that contains the panel
tabName – name of the tab inside the frame that contains the panel
- isRTL ()
Return true if the current user uses right-to-left layout
- getMainTabPanel ()
If a visual perspective has tabs return the tab panel holding the tabs.
- getProcessId ()
Return the id of the currently running process or -1 if there are no processes currently running.
- isTestingMode ()
Return true if the current user is running in the testing mode
- startProcess, runQuery and other methods mentioned in the User Guide
Please refer to the “Links to Aware IM operations” section in the User Guide, that explains how to set up links to perform operations. All functions mentioned there can be used from your Javascript.