Official Content

Executes some code when the value of a given input is changed.

Syntax

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.

Scope

Controls: Attribute/Variable
Generators: .NET, Java, AndroidApple

Description

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).

Temporary restrictions

The ControlValueChanged event is not available for the following controls:

Android

  • Prompts associated with fields

iOS

  • Video & Audio fields
  • Multi Wheel
  • Physical Measures
  • Prompts associated with fields

Availability

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.

See also

HowTo: Use ControlValueChanged event

      

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant