Click event

Official Content
This documentation is valid for:

To take place when the user clicks the left button over a control. 

In the case of Web Forms, the event is implemented for the following type of controls: Bitmap, Textblock, Dynamic Combo Box, Combo Box, Sections, and tables (both responsive and common tables).

Notes

  • In web Forms in combo type controls, the event is executed when changing the value contained in the control. (Use ControlValueChanged event instead for this purpose)
  • In web Forms where you have the link property defined on a text block type control apart from the click event, the results can be unpredictable (you can execute the event or take into account the property according to the generator and the version). In any other case, it is not recommended to have both programmed at once.
  • In the case of tables, if the click event is implemented for two or more nested tables, and the inner table is clicked, only the event of that table is executed (not of its containers).

Example

Event &Country.Click
    &City.Clear()
    For each 
        Where CountryCod = &Country 
            &City.Additem(CityCod,CityDsc)
    Endfor
EndEvent  // &Country.Click

In this example, when choosing an option of the 'Country' combo, (as long as the selected value is different from the pre-existing one) its click event is executed by loading the cities that correspond to the selected country in the city combo.

Scope

Objects Transaction object, Web Panel object
Controls Check boxes, Column, Combo boxes, Dynamic combo boxes, Dynamic list boxes, Edits, Image, List boxes, Textblocks, Tables, Sections
Languages .NET, Java

 

 




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.