322
Views
3
Comments
Solved
Local data to Server database
Question

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

UserImage.jpg
Carlos Conde
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.


2021-05-22 07-04-11
Nuno Bernardo

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.




UserImage.jpg
Nishant Gupta

I am new in Outsystems platform and trying to learn it.

How I can fetch data from my local existing SQL Server database, If I have no database on cloud?

Someone can help me on this?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.