Reputation: 115
I created a number sequence in the form using numberSeq class newgetNum Method.
It is creating number sequence perfectly.
But the problem raised after deleting the record without saving the record.
After that creating a new record generates new number rather than the deleted number.
Eg :1. CTRL+N => record "001" is created
2. Delete "001" without saving
3. CTRL+N => record "002" is created
But we want to generate 001 only.
Upvotes: 2
Views: 1530
Reputation: 18051
You will have to set the "continues" flag on the number sequence to reuse deleted numbers.
Also your form should use the NumberSeqFormHandler
class, see the Number Sequence Framework documentation.
Upvotes: 3