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

AVEVA™ Operations Management Interface

Example layout script with the GraphicRepeaterApp

  • Last UpdatedJul 16, 2024
  • 1 minute read

Layout scripts can be used to provide reference values for the custom properties of the GraphicRepeaterApp.

The following example shows a simple layout script that provides a string and an object reference for the two Name and Value custom properties of a repeatable graphic.

MyContent.GraphicRepeaterControl1.Data = " ""Pump1"",PLCSim.Triangle1," +

" ""Pump2"",PLCSim.Triangle2," +

" ""Pump3"",PLCSim.Triangle3," +

" ""Pump4"",PLCSim.Triangle4,"+

" ""Pump5"",PLCSim.Triangle5," +

" ""Pump6"",PLCSim.Triangle6," +

" ""Pump7"",PLCSim.Triangle7," +

" ""Pump8"",PLCSim.Triangle8,"+

" ""Pump9"",PLCSim.Triangle9";

The following table describes some of the details of the layout script.

Script Components

Description

MyContent.GraphicRepeaterControl1

Instance name of the GraphicRepeaterApp specified by the Name property on the app's Property page.

Data

Data property of the GraphicRepeaterApp.

The Data property is the only property that can be changed at runtime by scripting.

""Pump1""

Static string enclosed by double quotation marks for the Name custom property of the repeatable graphic

PLCSim.Triangle1

Object reference for the Value custom property of the repeatable graphic.

" ""Pump1"",PLCSim.Triangle1," +

...

" ""Pump9"",PLCSim.Triangle9";

Script shows the repeatable graphic nine times with different assigned string and object reference values.

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