Enable or Disable Scripts
When you create or import a script into Application View, it is automatically enabled by default. This means that all authorized users will be able to start it manually and also that it will start automatically if configured to do so (at project startup, or through a reaction). You can manually enable/disable individual scripts, or all the scripts in a folder at once.
Enable or Disable an Individual Script
- In System Browser, select Applications > Logics > Scripts > [scripts folder] > [script].
- In the Operation tab, the Operational Status property indicates whether the script is
Enabled
orDisabled
).
- Click Enable or Disable.
- The Operational Status property updates accordingly.
Enable or Disable all the Scripts in a Folder
- Select Applications > Logics > Scripts > [scripts folder].
- In the Operation tab, alongside Operational Status, click Enable All or Disable All.
When you disable a script, Desigo CC generates an event. This event is automatically cleared when you re-enable the script.
If a script is saved with JavaScript syntax errors, its operational status is Configuration Error
and Desigo CC generates an event. In this condition, it is not possible to execute the script. When the error is fixed, and the script is saved again, the operational status becomes Disabled
. You must enable this script before being able to execute it.