Sync data created in offline mode

Discuss the Offline version of Servoy that allows you to run Servoy applications on and offline by using synchronization technology like Mobilink and SQL Remote.

Sync data created in offline mode

Postby ylockson » Sat Dec 01, 2012 2:00 pm

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?
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am

Re: Sync data created in offline mode

Postby mboegem » Mon Dec 03, 2012 2:46 pm

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
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1366
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: Sync data created in offline mode

Postby ylockson » Mon Dec 03, 2012 4:34 pm

Marc,

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

Regards.
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am


Return to Servoy Offline Client

Who is online

Users browsing this forum: No registered users and 1 guest

cron