You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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:

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

  • Client: Task executes on each client system. These are tasks that apply locally (on the user's computer).
  • Server: Task executes on the server system. These are tasks that apply across the application, that is, globally.

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.

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

The root page @parent could not be found in space v10.

  • No labels