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

AVEVA™ Engineering

Fast Access to Lists, Selectors and Textpanes using DO Loops

Fast Access to Lists, Selectors and Textpanes using DO Loops

  • Last UpdatedOct 30, 2024
  • 1 minute read

Sometimes you may have large quantities of data in list, selector or textpane gadgets and you may find that accessing the data using the selection() methods may be very slow.

The PML textpane mechanism allows fast access to these gadgets.

With a textpane gadget you can use do list so that the do counter takes the value of the replacement-text for each of the currently selected rows of the list in turn:

do !field list !!FormA.listC

 $P Selected field replacement-text is $!field

enddo

For a selector gadget you must use do selector so that the do counter takes the displayed value of each of the currently selected rows of the list in turn:

do !field selector !!FormA.SelectorB

 $P Selected field replacement-text is $!field

enddo

For a textpane gadget you must use do pane so that the do counter takes the value of each of the displayed lines in turn:

do !line pane !!FormA.TextPaneD

 $P Text line value is $!line

enddo

Note:
That on exit from the loop PML destroys the do variable for each of these gadget types.

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