Overview
Script Classes in FrameworX are custom methods that can be called from Tasks, Expressions or Displays. Written in C#, VB.NET, or Python, these classes enable users to develop functionalities that can be used multiple times throughout the soluiton.
On this page:
Table of Contents | ||
---|---|---|
|
Configuring Classes
Classes let youallow 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:
Table of Contents | ||
---|---|---|
|
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,
FactoryStudio comes with the following built-in classes:
- ServerMain—Methods library available for all server tasks.
- ClientMain—Methods library available for all clients.
To configure classes:
you can double-click
onthe newly created row
createdto
go to Code Editor.access the Code Editor, where you can insert the code for the Script Class.
Info |
---|
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:
Info |
---|
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 | |||||||||
Column | Description | |||||||||
Name | Enter a name for the class. The system lets you know if the name is not valid. | |||||||||
Code | Read-only. This specifies the language used for the code for of this taskClass. By default, this is the language you selected when you created the project. From the Code Editor tab, you You can change the code language. To change the project default , go to by accessing Info > Settings. | |||||||||
DomainSelect | The location where the class executes, there are two options: Client—Class
| |||||||||
Content | Read-only. Show the The type of the content in the class | (i. | e.: method or namespace)||||||||
Edit Security | The | EditSecurity | Set the security to enable who can edit the tasks. | |||||||
Build Order | Set the The order to build the classes. | |||||||||
Build Status | The | BuildStatus | Read-only. Status of the class code from the continuous compiling process.
| mark—Class
| X—Class
| . Double
| go to
| class
| application
| ||
Build Errors | BuildErrors | Read-only. Displays any errors encountered during the last build. | ||||||||
Description | Enter a The description of this class | .|||||||||
[Other columns] | For definitions of other columns that are available in this table, see Common Column Definitions. |
- “Using System”
- “System.IO.StremReader”
. |
In this section...
Page Tree | ||||
---|---|---|---|---|
|