SynchronizationEvents.GetEvents method

Official Content
This documentation is valid for:

The GetEvents method gives the developer the ability to access the stored events for processing.
This is useful for example when there are events that returned with errors from the server, to get the error messages.


&SynchronizationEventList = SynchronizationEvents.GetEvents(&EventStatus)

Type returned

    Is a variable based on the EventStatus domain and it represents the status of the events to filter. Its possible values are:

Values Name
1 Pending
2 ProcessingServer
3 ConfirmedServer
4 RejectedServer
5 CanceledUser

Note: If &EventStatus equals 0, then the GetEvents method does not filter by the status of the events.


Returns a SynchronizationEvent value that represents the collection of events with status &EventStatus stored in the GXPendingEvents table.


As explained in the SynchronizationEvents external object document, the GXPendingEvents table will be used to store all the changes made in the device in order to send them later to the server. With this method it is possible to access those registries and optionaly filter by the EventStatus of those events.


Event refresh
   &SynchronizationEventList = SynchronizationEvents.GetEvents(EventStatus.Pending)

Where &SynchronizationEventList is based on SynchronizationEventList SDT and this variable is going to be displayed in a panel's layout as a SD Grid. 


As from GeneXus Tilo Beta 2


Objects Objects for Native Mobile applications development, Offline procedures
Languages .NET, Java, Ruby
Platforms Android platformApple platform

See also