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, its 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 to 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 Work With for Smart Devices – Behavior through Events
Start Video Events in Smart Devices




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