onDataEditAccept - event of object PmiText

The event fires after editing the item value is ended.
pMe(Object) Reference to the graphic item where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.

The pEvent parameter is not used here because this event does not need any additional information.

The event fires after the finished editation is confirmed.

In order to call such event, it is necessary to enable the Type of editing configurator.

This event will be called only if the Control enabled configurator is checked.
This event is also functional for Web panels.
For direct data connection between this item value and the application variable it is much easier to use the data binding in the Text configurator. The onDataEditAccept event may be used only for more complex concepts of value acquiring, or another reasons for difference recognition.
In the event, the value of the graphic item is copied into the Temperature variable, that is located in the Data1 object (of the PmData type).

This example is not functional for Web panels because the Web client value cannot be directly assigned to other objects in the Web server.

VBScriptSelect and copy to clipboard

pMe.Pm("../Data1/#vars/Temperature").Value = pMe.Value
This example will be functional also for Web panels. The value is no assigned directly into the object on the Web server, but just the method designer's of PmPanel object is called. This method is then called on the server and there it is possible to save the transmitted value anywhere.
JavaScriptVBScriptSelect and copy to clipboard

PROMOTIC 8.3.30 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