Codecore Logo
Quick Search
»
Advanced Search »

Scripting

RSS

Scripting Language Reference

  • Scripting Language Reference
    The J9Script scripting language can be used to create powerful rules, web pages, and touch screen interface actions.

Basic Data Types

  • String
    Represents text; that is, a series of characters (letters, numbers, symbols, etc).

  • Number
    Represents a signed IEEE 64-bit (8-byte) double-precision floating-point number ranging in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values.

  • Boolean
    Represents a Boolean value of true or false.

  • Dictionary
    Represents a collection of key/value pairs that are ordered based on the key/index. The key is a case-insensitive string.

  • DateTime
    Represents an instant in time, typically expressed as a date and time of day.

  • TimeSpan
    Represents a time interval (duration of time or elapsed time).

  • Array
    The Array object is used to store a set of values in a single variable name.


  • Exception
    Represents an error that occurred during script execution.

  • Object
    Used only as the return type for a method or a parameter type of a method to specify that the return value or parameter value can be any data type.

  • Null Reference
    The null keyword is a literal that represents a null reference, one that does not refer to any object.

  • void
    Used only as the return type for a method to specify that the method does not return a value.

Advanced Datatypes & Objects

  • Image
    Represents an image file for a graphics image in one of the following formats: BMP, GIF, EXIF, JPG, PNG and TIFF.

  • Math
    Provides constants and static methods for logarithmic, and other common mathematical functions. This object can not be instantiated in a script.

  • FileSystem
    Provides static methods for common file system operations. This object can not be instantiated in a script.



  • OleDbConnection
    Represents an OLE DB connection to a data source (such as a database). With a client/server database system, it is equivalent to a network connection to the server.

  • OdbcConnection
    Reresents an ODBC connection to a data source (such as a database). With a client/server database system, it is equivalent to a network connection to the server.


  • RegEx
    Represents an immutable regular expression.

Elve Objects

  • System
    Provides base automation system methods and properties, such as Sleep() and Log().

  • EventArgs
    Many device events have arguments associated with them which can be referenced from the rule's script using the this object. This object is instantiated by the event and can not be created in a script.

  • Device
    All devices (driver instances) defined in the configuration can be referenced in a script by their user defined name. These objects can not be instantiated in a script.

  • DeviceContainer
    This object contains information about a device and a reference to the device if it is running. Use the methods in the System Object to get a reference to device containers.

TouchScreen Objects

The following objects are only available from within touch screen control action scripts. These objects can not be instantiated in a script.

  • TouchScreen
    Scripts run from a touch screen control action can reference their touch screen and touch screen controls using the TouchScreen keyword. The TouchScreen object is instantiated by the associated touch screen and can not be created in a script.

  • TopTouchScreen
    This is similar to the TouchScreen object but references the touch screen at the top of the touch screen hierarchy.

  • this
    Scripts run from a touch screen control action, can reference the current control, using the this keyword. The this object is instantiated by the associated touch screen and can not be created in a script.

  • Label
    The label control is used to display static or dynamic text with an optional background image, background color, and/or border.

  • Button
    A button control is used to execute a script when it is pressed. The button's image can be changed when it is depressed.

  • Boolean
    A boolean control is used to display an image based on the result of a true/false (boolean) expression. This can be used as a checkbox for example.

  • Slider
    The Slider control enables the user to adjust a numeric value in a finite range along a horizontal or vertical axis.

  • CoverArt
    Displays the cover art for a specified media player device's current playing track.

  • InnerTouchScreen
    An inner touch screen control is used to display a separate touch screen within the current touch screen. This allows nesting of touch screens within each other. The touchscreen shown in the control can be changed for example when a button is pressed in the current touchscreen.

  • SpinnerList
    The spinner list control contains a list of name/value pairs, with the selected item's name being displayed in the control.

  • DeviceList
    The device list control displays all the current devices that are running for a particular device type.

  • PagedList
    The paged list control contains a list of name/value pairs, with multiple items of the list being shown vertically. The selected item's name is highlighted in the control.

  • WebBrowser
    A web browser control is used to display web a page. Web Browser controls will always appear above other control types in the viewer.

Elve Web Objects

The following web objects are only available from within J9 Server Pages (J9SP) web applications. These objects can not be instantiated in a script.

  • Request
    Enables the web application to read the HTTP values sent by a client during a Web request.

  • Response
    Encapsulates HTTP-response information from the web application.

  • Server
    Provides helper methods for processing Web requests.

  • Application
    Enables sharing of global information across multiple sessions and requests within the web application.

  • Session
    Provides access to session-state values as well as session-level settings and lifetime management methods.
Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.