2

我使用 numberSeq 类 newgetNum 方法在表单中创建了一个数列。

它正在完美地创建数字序列。

但是在删除记录而不保存记录后出现问题。

之后,创建新记录会生成新号码而不是删除的号码。

例如:1。CTRL+N => 记录“001”已创建

2. Delete "001" without saving

3. CTRL+N => record "002" is created

But we want to generate 001 only.  
4

1 回答 1

3

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.

于 2012-04-29T20:16:14.073 回答