Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Switch to another galaxy style library during runtime

Switch to another galaxy style library during runtime

  • Last UpdatedJul 19, 2024
  • 1 minute read

AVEVA OMI includes the Style namespace with two attributes.

  • CurrentStyle is a string that is the name of a Galaxy Style Library. CurrentStyle can be included in a script to change to another Galaxy Style Library during runtime.

    CurrentStyle is retentive. A ViewApp starts with the Galaxy Style Library that was active when the ViewApp was previously stopped.

    The CurrentStyle attribute operates in the MyViewApp.Style namespace. CurrentStyle is specified in a script with the MyViewApp.Style prefix in the form MyViewApp.Style.CurrentStyle.

  • Styles.CSV is a comma-separated string that is a list of the defined galaxy styles. The value is read-only and is non-retentive. It is defined by the list of galaxy styles defined in the Galaxy Style Library. This list is configured in the IDE.

    Note: The CurrentStyle and Styles.CSV attributes are available for use only in AVEVA OMI ViewApps. The CurrentStyle attribute cannot be used in an InTouch HMI application because the MyViewApp. prefix is regarded as a configuration error.

    Attribute

    Data Type

    Read/Write

    Initial Value

    Description

    CurrentStyle

    String

    Yes

    Retentive

    Loads the name of a Galaxy Style. During runtime, the value of CurrentStyle can be changed to the name of another Galaxy Style. The appearance of graphics in the running ViewApp are updated with the element styles of the new, active Galaxy Style.

    Styles.CSV

    String

    Read Only

    No initial value

    Gets the list of available Galaxy Styles in CSV format. During runtime, shows the styles as a comma separated string. The value is automatically updated when new styles are added to the Galaxy Style Library in the IDE.

TitleResults for “How to create a CRG?”Also Available in