PML Customisation User Guide

Gadget Set : List Gadgets : Multiple Choice List Gadgets
You can read the current selections in a multiple-choice list using the selection() methods. This will return the replacement-texts:
You can read back the current Dtexts or Rtexts as an array or simply as strings:
At PDMS11.6 AVEVA introduced support for Extended Selection Mode for multi-selection lists, whereby CTRL and SHFT keys can qualify the list selection. As a result a whole set of UNSELECT events followed by a whole set of SELECT events can result from a single (atomic) user action. These events are presented in sequence, but AppWare cannot tell where the sequence starts or ends.
At PDMS11.6Sp1 AVEVA have introduced new START and STOP batch actions to bracket the sequence of UNSELECT and SELECT event actions.
For maximum upwards compatibility, the START and STOP batch actions are only notified to PML if you have assigned an open callback, since this is the only way that different event types (actions) can be differentiated.
AppWare which used open callbacks and worked at PDMS11.6 will continue to work if the SELECT and UNSELECT meta-events were explicitly differentiated in the callback, as shown below, because the new START and STOP events will be ignored
If you experience a change in behaviour, then you may need to rewrite your callback to explicitly handle the new START and STOP events and modify the list content or its selection only on receiving the STOP event action.

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo