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

AVEVA™ Operations Management Interface

Write an HistoricalTrendApp named script

  • Last UpdatedJul 17, 2024
  • 2 minute read

You can write named and event handler scripts from the Layout editor after the HistoricalTrendApp has been placed onto a layout pane. The Layout script editor supports the MyContent namespace to write named scripts specifically for the HistoricalTrendApp when it is content placed on a layout pane.

The Layout script editor includes the AutoComplete feature, which shows a positional drop-down list of namespaces, content types, and the methods or properties associated with HistoricalTrendApp content.

Write an HistoricalTrendApp named script

  1. Open the layout and show the items listed in the Toolbox tab.

  2. Select the HistoricalTrendApp from the Toolbox list to show its preview thumbnail.

    The Toolbox pathway to the HistoricalTrendApp is:

    _Default Content > 4. Apps > AVEVA OMI Apps > HistoricalTrendApp

  3. Drag and drop the preview thumbnail onto a layout pane.

  4. Select Script from the menu bar of the Layout editor to open the script editor.

  5. Create a named script.

    1. Select the red plus circle to show the Add NewScript dialog box.

    2. Select Named Script, assign a name to the script, and select Add to close the dialog.

      The new script appears beneath the Named Scripts area at the left of the editor and the window focus is set to the script canvas to begin writing script code.

  6. Enter your script code.

    A named script intended for a HistoricalTrendApp placed on a layout pane uses the MyContent namespace and its content name is assigned by its Name property in the Properties grid of the Layout editor. Place a period immediately after the item you selected from the AutoComplete list. AutoComplete shows the next positional list of items based on your previous selections in the script statement.

    AutoComplete provides a list of properties and methods that can be included in the script based on the MyContent.NameProperty prefix of the script statement.

    • For .NET methods and properties, refer to .NET documentation on the Microsoft web site.

    • For descriptions of legacy HistoricalTrendApp methods and properties, refer to the ArchestrA Trend Client User Guide that is delivered with System Platform 2020. The document is a PDF file located on the computer hosting the System Platform IDE.

      C:\Program Files (x86)\ArchestrA\Framework\Docs\1033\aaTrendClient.pdf

  7. Validate your script code using the script validation tool shown at the right of the script editor menu bar.

  8. After making any script corrections, save and exit from the Layout script editor.

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