1

I was working on a project, basically it's using MS InfoPath to design a form. I am currently facing an issue with the autonumbering.

Here is the scenario:

  • User submits a form (ID: 1)
  • Admin receives the form (ID: 1) - correct
  • Admin edits the same form (ID: 1)
  • Admin updates/submits the form (max(ID)+1) - wrong

Is there a way to keep the numbering if the 2nd user updates the same form?

4

1 回答 1

0

您可以在提交时使用隐藏字段进行检查。将默认值设置为 0。在提交时添加一条规则,如果隐藏字段的值为 0,则按照您当前的操作设置 max(ID)+1。另外,提交时将此隐藏字段的值设置为1。

当隐藏字段的值为 1(现有形式)时,需要处理第二条规则。在这种情况下,您使用相同的 ID。

于 2015-01-12T21:18:47.847 回答