1
0
-1
2 answers
- 210
You need to reset the value of the "counter" variable every day. Maybe through a process that executes everyday and run a beenshell or something to reset the value to 0 or 1
Add your comment... - 10-1
In "environment variable name", set it to "counter#date.ddMM-yyyy#"
Meaning, every new day, it will use new variable and it starts with 0.
- Danial Jefri
Hi
Regarding your answer, Joget does not accept symbol either than underscore in their env. var. name.
Thank you for replying to my post.
- Bastiana
Go to adv tools > json defintion
Set it directly into the property.
Add your comment...
Hi
I have created an Reference ID with ID Generator field and it is work. However, I want to change it so that the counter reset by day.
For example on 2nd November, there were 36 forms submitted. so the reference ID is up to 0211-2021-CMR-000036. Tomorrow, when another form is submitted, the reference ID should reset to 0311-2021-CMR-000001. But instead in my case, it just continues to 37, 38 and so on. This could be due to me using a counter. I read previously that I need to use HASH variable, but I am not sure how.