[Offline Apps] Record Identifiers

Forge Component
Published on 2015-11-19 by Labs
26 votes
Published on 2015-11-19 by Labs

Great work on this, I have a simple app for a client that will be used to record in-the-field sales meetings with farmers that this will be perfect for in poor mobile reception areas. Love the instructions site too.

One question about Id fields.  I've developd using the standard integer field for identifiers, is the going to be a problem i.e. multiple users creating offline records with the same Id number.

If necessary, I could either assign a range to each user for integer identifiers, alternatively I could move to GUIDs.

What do you recommend?


Hi Gavin,

Thanks a lot for your feedack.

Concurrent new records shouldn't be a problem, since the provided libraries will automatically create a unique negative integer for Ids on the client side javascript that when stored to the server will be converted to unique (positive) autonumbers.

This way you can (and should) continue using the default autonumber ids in your entities and these scenarios will be covered.

Tiago Simões

That's great Tiago, well done.  Can't wait to put it in to practice.