Composite command

Official Content
This documentation is valid for:

The code block Composite-EndComposite groups GeneXus code. This code is executed sequentially to the last line, except when an error in any of such lines occurs, in which case the sequence will be interrupted.

Therefore, the two main premises are as follows:

  1. If one of the instructions (calls or assignments) fails, the rest are not executed.
  2. Error messages (automatic ones as well as loaded by the developer) are displayed on the device screen.

Syntax

Event 'ClientEventName' | Control.AssociatedControlEvent
Composite
Event_code
EndComposite
EndEvent

Where:

ClientEventName
Is the user event name.

Control
Is the control name that you program the event AssociatedControlEvent

AssociatedControlEvent
Is one of the events associated with controls (such as tap, long tap, drag, drop, PageChanged, ControlValueChanged, etc. -depending on the control type-)

Event_code
At least two commands are needed, it details the code to be executed when the event occurs.

See also

Composite examples

Videos

Start Video Grammar of Events on the Client Side and Composite Command
Start Video Events in Mobile Applications