Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onDataEditAccept - event of object PmgWEdit

Description:
The event is triggered after final change of the object content.
Parameters:
pMe(Object) Reference to the PmgWEdit object where the event rises.
pEvent(Object) Reference 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.

Note:
The event is triggered after the editation end is confirmed - see "Attributes" configurator.

For value changes while editing capturing see the onDataEditing event.

For cancelled editation capturing see the onDataEditCancel event.

 
This event will be called only if the "Control enabled" configurator is checked.
 
This event is also functional in Web panels.
 
For direct data connection between this object 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.
Example:
This example is functional also in Web panels. The value is no assigned directly into the object on the Web server, but just the method designer's in the PmaPanel 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

pMe.PmPanel.Methods.SetMyValue(pMe.Value);

History:
Pm8.03.20: Fixed bug: Web panels - The event was called multiple times after editing was finished.
PROMOTIC 9.0.7 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