SynchronizationEvents.MarkEventAsPending method

Official Content
This documentation is valid for:

Sometimes may occur errors when sending events to the server and it could be useful to mark as pending those events in order to try sending them again later.

Syntax

SynchronizationEvents.MarkEventAsPending(&EventGUID)

Where:

&EventGUID
    Is the GUID of an event that is in the GXPendingEvents table.

Description

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 set the events status to Pending.

Example

Event 'Change To Pending'
    Composite
        &EventGUID = &GxSynchroEventsSDT.CurrentItem.EventId
        SynchronizationEvents.MarkEventAsPending(&EventGUID)
    EndComposite
EndEvent

Where &GxSynchroEventsSDT is the result of the GetEvents method .

Availability

As from GeneXus Tilo Beta 2

Scope

Objects Smart Devices objects, Offline procedures
Languages .NET, Java, Ruby
Platforms Android Smart DevicesApple Smart Devices (iOS)

See also