Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Navigate to SystemDefinition -> ScriptIncludes.
  • Click New , and fill in the form, and click Save.fields.
  • Click Save or Save and Exit to apply changes. 


FieldDescription
NameScript include name
DescriptionShort action description
ActiveWhen set to TRUE, this script will execute when called; otherwise, it will not execute.
Client callableWhen set to TRUE, this script will be available to call on the client-side scripts.
Script

Define the server-side script to run when called from other scripts

Note

When invoking script includes in other server-side scripts, please use the ss.importIncludeScript method of the SimpleSystem class like shown on the example below:

Code Block
languagejs
themeEclipse
linenumberstrue
ss.importIncludeScript('Animal');
const animal = new Animal();

Otherwise, the script would be unavailable.


...