ReturnValue - property of object PmiRoot

The output value on closing the panel.
ReturnValue As Variant
oRoot.ReturnValue = val
Property access for read and write.

This property is also functional for Web panels.

Defining this method is often important, for example, if opening a modal window for data editing. The ReturnValue property is then used as output value.

See How to work with modal windows.

If the OpenView method vas used to open this panel and the oExtra.onClose entry was defined, then while closing this panel the designer's method defined here is executed. This designer's method has two parameters oSystem and oPrivate represented by PmMap type objects. The output value of the closed pan can be obtained in this method by using the oSystem.ReturnValue property.
For the old procedure of modal window opening by the PmPanel.OpenViewModal method, this value is used as method return value.
This property can be set, for example, in the onPanelStopEnd event when the panel is being closed. But it can also be set any time before that.
See also:
Sets an array of three values into the output value.
Example for JavaScript language:
var val0, val1, val2;
val0 = 1024;
val1 = 3.14;
val1 = "text";
oRoot.ReturnValue = Pm.CreatePmArray().Array1(val0, val1, val2);
Example for VBScript language:
Dim val0, val1, val2
val0 = 1024
val1 = 3.14
val1 = "text"
oRoot.ReturnValue = Array(val0, val1, val2)
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice