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

AVEVA™ Operations Management Interface

Export overridden text strings

  • Last UpdatedDec 11, 2024
  • 2 minute read

After exporting a graphic, the XML file’s String element specifies the original string and the new substituted string with the Old and New attributes. The ElementID attribute specifies the specific text element to be overridden.

<SubstituteStrings>

<String Old="TextBox1" New="TextBox2" ElementID="A.Text1"/>

<SubstituteStrings>

In this example, the TextBox1 text string was overridden by the new substituted text string TextBox2. The string substitution occurred in Symbol B that substituted the text of the text element in Symbol A.

Text strings can be overridden within graphics that are embedded within other graphics. Consider an example that shows Symbol A embedded in Symbol B, which is embedded in Symbol C. Two string substitutions are made to a single text element.

Overriding an exported graphic's text strings

The export XML file’s SubstituteStrings element shows the text string override information.

<SubstituteStrings>

<String Old="TextBox2" New="TextBox3" ElementID="B.A.Text1"/>

<SubstituteStrings>

Notice the Old and New attributes show the text strings of the most recent string substitution before Symbol C was exported. Also, the ElementID attribute indicates Symbol A containing text element Text1 is embedded in Symbol B in the form ElementID="B.A.Text1".

The programmatic API can export an embedded graphic containing multiple text elements with the same text string that is overridden by different string substitutions. Consider an example that shows Symbol A embedded in Symbol B. Two string substitutions are made to a single text string in two text elements of embedded Symbol A.

Overriding an exported graphic's text strings

The export XML file’s SubstituteStrings element shows the text string override information with a String element for each text override.

<SubstituteStrings>

<String Old="TextBox1" New="TextBox2" ElementID="B.A.Text1"/>

<String Old="TextBox1" New="TextBox3" ElementID="B.A.Text2"/>

<SubstituteStrings>

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