EXEC_SCRIPT

This action runs the specified Javascript inside the browser of the current user that started the process with this action.

EXEC_SCRIPT ArithmeticExpression()

where ArithmeticExpression is either a string or an attribute containing a string with a script.

EXEC_SCRIPT 'AwareApp.closeComponent(parser.m_widgetInfo,false,false);' 

Aware IM exposes a special object called “parser' to the script run through this action. This object represents a form or query parser that the process has been started with. This way the developer can use this object to perform some operations with a form or a query before or after the process starts. The above script, for example, will close the current form or query if the process that contains this action has been started from the form or query. If the process hasn’t been started from the form or query the “parser” object is null.

Some more example of the script execution. The following one will select the second tab in a visual perspective:

EXEC_SCRIPT 'AwareApp.getMainTabPanel().select(1);' 

The following script select a tab in a visual perspective with id “User”:

EXEC_SCRIPT `var tabIdx = $('#' + AwareApp.m_mainTabPanelId).find('[aw-tab-id=User]').parent().index()-1; AwareApp.getMainTabPanel().select(tabIdx);` 

Please see the Programmers Reference document for more details on how to use Javascript in Aware IM.

  • Last modified: 2023/05/09 01:35