Overview

ScriptClasses 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 ScriptClasses

To create and configure a new ScriptClass follow the steps below:

  1. Access Scripts → Classes

  2. Click on the plus icon.

  3. Input a class name and description, select the desired language and choose the domain of the class.

  4. Choose to either create a new code or import one from an existing library.

  5. Choose the content type for the class.

  6. Click Ok.

Now, you can double-click the newly created row to access the Code Editor, where you can insert the code for the ScriptClass.

To edit a property of an existing object, 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 ScriptClasses

All solutions include the following built-in ScriptClasses:

  • ServerMain: The methods library available for all server tasks.
  • ClientMain: The methods library available for all clients.
 

ScriptClasses Configuration Tables

The following is a table describing each available property field for ScriptClasses:

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 solution.

Domain

The location where the class executes, there are two options:

  • Client: The class is executed on each client system. These are classes that apply locally (on the user's computer).
  • Server: The class is executed on the server system. These are classes that apply globally across the solution.

Content

The type of the content in the class (Methods or Namespace)

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.

  • Green check mark: The task runs without errors.
  • Red X: The task has warnings or errors, double-click to access the warning or error.
    • Warnings are information only.
    • Errors will prevent the code from running for that specific task. The rest of the solution will run.

Build Errors

Displays any errors encountered during the last build.

Description

The description of this class.


In this section:

  • No labels