Versions Compared

Key

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

Overview

Script Classes in FrameworkX 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
maxLevel3


Configuring Classes

Classes let you 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 displays (code behind).

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:

  • Go to Scripts > Classes.
  • Select a class name, or select the insert row (first row) to create a new class.
  • Enter or select information, as needed.
  • Then you can double-click on the row created to go to Code Editor.


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 this task. By default, this is the language you selected when you created the project. From the Code Editor tab, you can change the code language. To change the project default, go to Info > Settings.

Domain

Select where the class executes:

  • Client—Class executes on each client system. These are classes that apply locally (on the user's computer). For example, report generation.
  • Server—Class executes on the server system. These are classes that apply across the application, that is, globally.|

Content

Read-only. Show the type of the content in the class (i.e.: method or namespace)

EditSecurity

Set the security to enable who can edit the tasks

BuildOrder

Set the order to build the classes

BuildStatus

Read-only. Status of the class code from the continuous compiling process.

  • Green check mark—Class runs without errors.
  • Red X—Class has warnings or errors. Double-click to go to the warning or error. Warnings are information only. Errors will prevent the code from running for that specific class. The rest of the application will run.|

BuildErrors

Read-only. Displays any errors encountered during the last build.

Description

Enter a description of this class.

[Other columns]For definitions of other columns that are available in this table, see Common Column Definitions.
    • Apply all namespaces that will be used in your code, e.g.
      • “Using System”
      • “System.IO.StremReader”
    • Click Save.
 

In this section...

Page Tree
root@parent
spacesV10