Composite command

Official Content
This documentation is valid for:

Groups GeneXus code that's executed sequentially up to the last line, unless there is an error that interrupts it.

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
    It details the code to be executed when the event occurs.  At least two commands are needed.

Description

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 this case, the sequence will be interrupted.

Therefore, its two main premises are:

  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.

See Also

Composite examples

Videos

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