Local data to Server database

Local data to Server database

  

Hello,

I'm building an app, and i need to agregate the local database into server database. At this moment the logic Server >> Local is working fine, but what i really need is the following (in bold):

- The app works must of time offline mode

- Users can save forms in local database (Done)

- When the phone or tablet go´s online the local data will sync with server database (my problem)

Thanks

Solution

You have a NetworkStatusChanged block under Private of MobiliePatterns.

You could place that in your bottom bar with a local action OnNetworkStatusChanged that will trigger the event IsOnine and then get your local entity and run a server action to CreateoOrUpdate your server entity.


Solution

Hi!

Works just fine! Thanks!

Carlos Conde wrote:

You have a NetworkStatusChanged block under Private of MobiliePatterns.

You could place that in your bottom bar with a local action OnNetworkStatusChanged that will trigger the event IsOnine and then get your local entity and run a server action to CreateoOrUpdate your server entity.