Search code examples
androidgenexusgenexus-sd

Executing a process in server after synchronization in Genexus Smart Devices


In an Android app developed in Genexus Ev3 U4, I need to execute a process in the server after the synchronization ends. The process is an external process in SQL server that uses the recently added records to generate a report.

How could I do that?


Solution

  • The procedure GxAfterEventReplicator (under folder GxSynchronization) is called after the replicator applied all the BC operations incoming from the device to the server database.

    This procedure receives a variable &EventResults of type GxSynchroEventResultSDT which holds information about the BCs applied due to synchronization.

    You may then modify this procedure to add a call to a SQL stored procedure by issuing a sql command.