How to reset ID Generator Field Counter Annually

Confluence User - 04 Sep, 2017

Hi

 

Similar to what listenwell asked earlier this year in

ID Generator Field Counter change by year

 

Is there a way to reset the ID generator environment variable back to 0 when a year changes from 2017->2018.

2017|0017 

2018|0001

Is there a way to update the counter environment variable through Joget itself or would I need to use a database update tool or other tools to perform this action.

I have no problems changing the year, I only need to reset the counter every new year.

Thanks

 

forms;plugins;database

4


05 Sep, 2017
confluenceUser
confluenceUser

i think you can use date hash variable in "Environment Variable Name" eg. "counter_#date.yyyy#". So, in each year a new Environment Variable is used to generate the id like following.

counter_2017, counter_2018, counter_2019 & so on.

14 Sep, 2017
confluenceUser
confluenceUser

The year is not the problem, I'm looking on a way to reset my counter to 0 after every year. As the rolling number will just keep continuing after from 2017->2018

18 Oct, 2017
confluenceUser
confluenceUser

Once the year changes, the counter will be reset because it is essentially using a different env variable name.

16 Dec, 2021
confluenceUser
confluenceUser

Hi panda


I tried implement your method, however I cannot create the environment Variable Name with '#'. I am using version DX7 Enterprise Trial.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print