Executes some code when the value of a given input is changed.
Event &VarOrAtt.ControlValueChanged
Event_code
EndEvent
Where:
&VarOrAtt
Any variable or attribute that is on a layout. The event will be triggered once the control loses focus or, in some cases, the value has been set.
Event_code
The code that will be executed when the event is triggered. The moment depends on the control. For example:
- Edit controls execute the event once it loses focus, not when every key is pressed.
- Wheel controls execute it once the wheel stops spinning, not when the user spins for each value.
The objective of this event is to give constant feedback to the user. It is very useful for giving feedback or updating tightly related data.
Note: If the value of the field is changed programmatically (by code), the ControlValueChanged event is not going to be executed (for example, an assignment on another User event).
The ControlValueChanged event is not available for the following controls:
- Prompts associated with fields
- Video & Audio fields
- Multi Wheel
- Physical Measures
- Prompts associated with fields
This event is available as of GeneXus X Evolution 2 Upgrade 4 in iOS and Android, and as of GeneXus 15 Upgrade 6 in Web too.
HowTo: Use ControlValueChanged event