Triggered scripts run when a trigger expression is met. The script runs on a positive flank, that is, when the trigger expression goes from not fulfilled to fulfilled. After the script has been run, the trigger expression must be returned to not fulfilled and then again fulfilled for the script to run again.
Information:
For more information on JavaScript, please read http://www.w3schools.com/js/default.asp
Web Port scripts can also use methods in .NET provided they are called with a complete search path.
For more information on the .NET framework see
https://msdn.microsoft.com/en-us/library/aa139623.aspx
A trigger should be a Boolean expression, that is, be evaluable to true or false. A trigger must include one of the following comparison characters (=,>, <,> =, <=, <>). Combined expressions can also be made by separating them with "&" (AND) or "|”(OR).
The following settings can be made for triggered scripts:
Setting: | Description: |
*Name | Name of the triggered script (used for calls and must be unique) |
Description | Description of the function of the script and possible parameters |
Trigger | The trigger expression to be evaluated. Must be a boolean expression. |
Active(checkbox) | Enables the Script |
Code | Script Code |
*mandatory parameter |
Create triggered scripts
Go to SYSTEM SETTINGS/SCRIPTS/TRIGGERED SCRIPTS. then NEW SCRIPT. Fill in settings according to table above and press SAVE.
Edit triggered scripts
Go to SYSTEM SETTINGS/SCRIPTS/TRIGGERED SCRIPTS. Click on the desired script in the list. Make the desired changes in the dialog that opens and press SAVE.
Delete triggered scripts
Go to SYSTEM SETTINGS/SCRIPTS/TRIGGERED SCRIPTS. Click on the desired script in the list. In the dialog that opens, press DELETE and then confirm to complete.