on 01-19-2016 12:38 PM
Hi Experts,
My requirement is to add a new employee/student, so whenever i click on Add button a unique id should be generated. How can i achieve this functionality in Agentry? I know how to generate unique IDs using Rules but i want to know is there any other way also to generate it. Your valuable suggestions will be highly appreciated.
Thanks and Regards,
Mohammed Liyaqath Hussain
Mohammed,
without using rules it is not possible to generate UniqueID in Agentry (Probable you can use OpenUI control). You have to write a rule and the rule will be "Rule Before Data Entry" and in that rule you can simply pass TIMETICKS which will be unique all the time. Real unique id will be generate in Backend.
Hope this helps you
Thanks
Ajitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mohammed,
Typically in Agentry, we generate locally unique ids for newly added objects (employee/student) when they are created on the device. These local ids are temporarily used to allow for multiple adds before the transaction is posted to the backend and the real unique id is created by the backend. This allows us to avoid potential collisions with existing records in the backend or newly added items from another device. As part of the transaction processing the ID on device is then updated with the real id from the backend system.
As an alternative, I suppose you could create an open UI control to generate a random number instead but you will need add additional logic on your transaction processing steps to handle potential collisions.
Is there a reason you don't want to use a rule?
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.