Methods available for this action

<< Click to Display Table of Contents >>

Manual > Server Creation Guide > Action Edition > Action Reference > Script Ver2 (SC2) >

Methods available for this action

Methods available in Script Ver2 actions

The methods available from the Script Ver2 action are as follows:

 

Root Object

(root)

Common Methods

 

You can use the methods listed in "Common Methods" in the Control Reference.

 

* Methods that are marked with a circle in the supported "Script Actions" in the Control Reference can be used.

 

Route Methods

 

You can use the methods listed in "Root Methods" in the Control Reference.

 

* Methods that are marked with a circle in the supported "Script Actions" in the Control Reference can be used.

 

new operator

The new operator allows you to create objects. The new operator allows you to use the following objects in your scripts:

 

 

Text dump control

 

(TextDump)

Enables output to a text file.

 

For the properties and methods that can be used, please refer to "Text dump control" in the control reference.

 

Direct query database(SQL) control

 

(DirectQueryDB)

It allows you to connect to a database and issue queries.

 

For the properties and methods that can be used, please refer to "Direct query database(SQL) control" in the control reference.

 

Historical data control

 

(HistoricalData)

Get time series data from Historical data server

 

(Available methods)

・AddField

・DelField

・ClearField

・ReadHistoricalData

 

(Available Properties)

・HDSRequestType

 

For property and method specifications, please refer to "Historical data control".

 

 

 

Here is an example of using the new operator:

var objDirectQueryDB;
event OnInitialize()
{
	// Create database object
	objDirectQueryDB = new DirectQueryDB;
}

 

Arithmetic Objects

(Math)

 

Methods

Among the methods listed in "Root Methods" in the Control Reference, the methods beginning with "Math." can be used.

 

* Methods that are marked with a circle in the supported "Script Actions" in the Control Reference can be used.

 

 

 

hint

The methods available from scripts in Script Ver2 are those marked with "○" for "Script Action" in the lists of common methods and root methods in the Control Reference. Similarly, the methods marked with "○" for "Script Action" in the "Supported" section on each method's page are also available.