Versions Compared

Key

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

This section describes the Scripts (programming procedures) that are part of the SPIN component that creates the DefaultNewProject.

Basic Scripting Features

The following are general features about using Scripts.
Some concepts already described in the chapter itself will be presented and use of Scripts in this manual.
Scripts Action.Net can be run on two different domains

  • Server - are scripts that run on the server; and

  • Client - are scripts that run on clients.

A Client script can call scripting methods of the Server type, but the opposite is not possible for architectural reasons.
There are two types of scripts in Action.Net:

  • Task – acts as a task to be performed over a period of time or by the occurrence of an event or trigger;

  • Class - works as a repository of scripting methods. All public methods of a class script are available to all other scripts from the same domain or in the case of a server domain script, also available to client domain scripts.

Task.NotesStartup

Script executed shortly after server startup. In this script the Status lists and annotation module types are initialized. Right after the lists are initialized, the script is disabled.

Task.SPINClientStartup

Script executed shortly after the startup of a client instance. The following are the features of this script:

  • Language dictionary configuration- Configures the language dictionary from the language configured in the project.

  • Client version evaluation - This script evaluates whether the version of the initialized client instance matches the version of the Action.Net installed on the server for tRichClient-type clients only. If the versions are different, a message is shown to the user and the instance is closed automatically.

  • Screen filter startup - Initializes report filters with default values

  • Opening the login screen - Opens the login screen of the application.

  • Disables the script - Disables the script after running it.

Image RemovedImage Added

Anchor
Task.AN_HistorianSave
Task.AN_HistorianSave
Task.AN_HistorianSave

Server domain script that runs every second checking to see if the total minutes for history recording has been reached. If hit, it gives a toggle in the tag @Tag.ZZ_System.TriggerSaveHistorian associated with the history tables created for writing.
The first time it runs, sets the default value (in minutes) for recording the events.

Class.SignallingCommand

Domain class server used in checking command signaling. Contains a public method:
SendCmd – responsible for mounting and sending command with signaling check
The 'SendCmd' method will send the command and periodically check (every 1 second) whether the command was successfully sent, failed, or is still running, showing the result of each check on the alarmscreen. For each command to be sent, only one call from the 'SendCmd' method should be made.

Class.NotesServer

Server domain class that contains all the methods necessary to create, list, modify, and remove annotations. Used by the annotations module described in this manual.

Class.NotesClient

Client domain class that contains all the methods necessary to create, list, modify, and remove annotations. Used by the annotations module described in this manual.

Panel

On this page:

Table of Contents
maxLevel2