Output tab
This tab contains the script that is used to set values to attributes of the Configs. The function dpSetWait() sets the values (if required a calculation can be performed on the values before setting - see Output calculation tab). An important consideration is the error handling, which should be performed after a dpSetWait(). In the example above, getLastError() and throwError() are used to notify the user of a possible error when setting the values (display in Log Viewer). For longer scripts (several dpSetWait() functions), execution of the script can be interrupted using return() if an error occurs. If no error handling is included in the script then the user cannot receive any information.
Always use the function dpSetWait() in these scripts. With the function dpSet() errors are never detected!
The "err" variable is defined at runtime when the script is generated, and is thus provided for error handling.
Click on the lower button on the right, or double-click in the script field, to open a text editor in which you can edit the script.