I have a form in which I want to have number field and that should be auto increment. Is there any way to achieve this ?
Asked
Active
Viewed 265 times
1
-
1Increment based on which previous value? – Aug 14 '18 at 09:05
-
Yes Increment based on previous value. – user8030367 Aug 17 '18 at 05:19
2 Answers
2
There's an aspect called countable
aspect, and it does just that. However, it works with it's own property - countable
- so if you're looking to use your own property - you will need to write some code.
http://avantec.se/2013/12/05/howto-create-an-auto-increment-field-on-an-object-in-alfresco/

Lista
- 2,186
- 1
- 15
- 18
-
Thank you for the reply. But I asked about alfresco BPM. Aspects are related to ECM. How to make number field auto increment in BPM? – user8030367 Aug 17 '18 at 05:17
0
Write a task listener. The task listener can be responsible for looking up the latest number, incrementing it, then setting the process or task variable with the new value.

Jeff Potts
- 10,468
- 17
- 40