Overview
Script Classes allow you to create a repository of class libraries, methods, and functions that you can use across the application. You can call them from tasks, other classes, and the display's code behind functionality.
On this page:
Configuring Script Classes
To create and configure a new Script Class follow the steps below:
- Access Scripts > Classes
- Click on the plus icon.
- Input a class name and description, select the desired language and choose the domain of the class.
- Choose to either create a new code or import one from an existing library.
- Choose the content type for the class.
- Click Ok.
Now, you can double-click the newly created row to access the Code Editor, where you can insert the code for the Script Class.
To edit a property of an existing Script Task, click the desired property to select it and click it again after a second to edit it. See a list of available properties in the next section.
The image below illustrates the process described above.
Built-in classes
All soutions include the following built-in classes:
- Server Main: The methods library available for all server tasks.
- Client Main: The methods library available for all clients.
Scipt Classes properties
The following is a table describing each available property field for script classes:
If a property column is not visible on the grid, enable it by right-clicking the grid header and selecting it from the list.
Property | Description |
Name | The name of the class. |
Code | Specifies the language used for the code of this Class. By default, this is the language you selected when you created the project. You can change the project default by accessing Info > Settings. |
Domain | The location where the class executes, there are two options:
|
Content | The type of the content in the class. |
Edit Security | The security to enable who can edit the tasks. |
Build Order | The order to build the classes. |
Build Status | The Status of the class code from the continuous compiling process.
|
Build Errors | Displays any errors encountered during the last build. |
Description | The description of this class. |
In this section...