Mobile App - Data Synchronization - Server Data Type to Local Attribute Type

Mobile App - Data Synchronization - Server Data Type to Local Attribute Type

  

hi there,

I am curious about:

1. How a server data type can be implemented to an attribute of local entity? 

2. Can i conclude that when a record is created, the local has a local id for that record, so when it is synchronized to server, a new id is generated for the server entity?

and compared with this:


where LocalToDoId is from the server, can it be a race condition where the local id won't be synch with the server? i mean:

t0: create toto...online... id of local 3... id generated from server =3

t1: create todo..offline... id of local 1... id generated from local = 1

t2: create todo..offline... id of local 2... id generated from local = 2

t3: create todo..offline... id of local 3... id generated from local = 3 ... instead of created, it updates the record in t0???

How is the mechanics behind generating id either in server side an local side? Thank you.

regards,

A

Anybody helps?

regards,

A