Official Content

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 Objects for Native Mobile applications development, Offline procedures
Languages .NET, Java, Ruby
Platforms Android platformApple platform

See also

 





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