Posted: 9 Nov 2016 23:42 EST Last activity: 11 Nov 2016 10:10 EST
How to Generate Multiple ID Sequence for Internal Database
I need to make an auto increment PK in property value so that whenever (a)multiple data is save, the value of property of the PK is incrementally change increase by 1.
(Ex: there are 5 input data, the last index of data is 46. The result will be: 47,48,49,50,51)
I've already read many post about generate ID, but please kindly tell me if there were any method that can be used efficiently/effectively.
Oh! By the way, I make a declare expression to ensure the value of the maximum index of (PageList of PK property + 1) also set it to whenever is used and the result as expected. It only works properly with 1 data. If multiple data was invoked then it will be Status Fail when in Obj-Save step method.
Hello Marissa, that post that you share is the one that my co-worker ask and it works with external database but unfortunately, the result was same but we continue try to solve this problem. (result: only can be invoked for 1-time use only a.k.a 1 data, if more then Fail)
Do you have another method you've already try and works? Thanks. :)