Official Content

The Offline Database Object only allows the Start event. It is intended for variables initialization and other processing that could be needed before table synchronization happens.  That is why it is executed before the conditions apply in the synchronization.

Syntax

Event Start
        Event_code
EndEvent

Where:

Event_code
   Code associated with the event. 

Sample

Event Start
    &DeviceID = ClientInformation.Id
    For Each
    where DeviceID = &DeviceID
        &SalesAreaID = SalesAreaID
    EndFor
EndEvent

And then this variables can be used in the Conditions tabs like shown in the following code stub:

SalesAreaID = &SalesAreaID;
CustomerStatus = CustomerStatus.Active;

Availability

This feature is available since GeneXus Tilo Beta 2.

See Also

Offline Database object
Offline Database Object conditions

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