Page 1 of 1

Sync data created in offline mode

PostPosted: Sat Dec 01, 2012 2:00 pm
by ylockson
An explanation on how Servoy would sync data in the following case would be appreciated:
1. Let's say several users (working offline) create the same product (it's bar code being a candidate key – meaning that the product table should not contain records with duplicate bar codes). The primary key of the product table is of type UUID so as to support multi-tenancy and data synchronization.
2. The users then follow up and create order details for that product.

Questions:
1. Is third party software still required for synchronization with Servoy 6.x?
2. How is synchronization activated?
3. How would Servoy (or third party software) know not to create the same product more than once given that definition of candidate keys is not supported (by Servoy)?
4. How would Servoy (or third party software) create order details for same products but with different PK values?

Re: Sync data created in offline mode

PostPosted: Mon Dec 03, 2012 2:46 pm
by mboegem
Hi ylockson,

For syncing external data with Servoy you can use the webservices plugin, which allows you to communicate with the Servoy application server via REST-protocol.
I think this covers your first question.

Question 2 is more or less depending on 'when is the external client able to connect to Servoy'

The remaining 2 questions are all up to yourself, depending on the business rules you define.

For all of the above:
Servoy does not have a 'working' module to make your syncing happening just by entering some details.
Servoy gives you the tools to make it happen, but you will have to do the thinking yourself making that you are in full control when it comes to deciding how things are supposed to work.

If your question is about mobile syncing, take a look at this thread (which is not Servoy 6.x by the way...):
https://www.servoy.com/forum/viewtopic.php?f=16&t=19041

Re: Sync data created in offline mode

PostPosted: Mon Dec 03, 2012 4:34 pm
by ylockson
Marc,

Thanks for your response. Am new to Servoy and thought that syncing was built-in & straight forward...

Regards.