Hi Folks,
I have generated a continuous number sequence for my custom EDT "XXX" through code. Everything works fine. But I wanna know is there any way we could get the previously generated number sequence if it's not written to database.
Scenario:
Step 1: Created a new record in my form which generates a number sequence XXX0001 for my custom EDT and saved the record
Step 2: On creating another new record and this time a number sequence of XXX0002 gets generated but this time "Cancel" button is clicked and XXX0002 is not written to the database as records doesn't save the record.
Step 3: After creating new record, now the system generates the number sequence XXX0003 even though XXX0002 is unused for my record.
Goal: I want to find a way to generate XXX0002 in third step instead of XXX0003.
Can anyone please suggest? Appreciate your time.