1
0
-1

Hi,

 I have used ID Generator Field for to generate reference id for my apps and used environment variable name to call counter. My reference id number has year ex : 2016011.

Is it possible to reset back to 1 when year change to 2017. I want it start again 2017001 not 2017012.

 

Thanks.

 

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      Hi

      Good news! After months of intensive development, we're proud to announce the beta for Joget Workflow Version 6 is now available for download at http://www.joget.org/joget-workflow-v6/#next

      Read what's new in Joget workflow Version 6 at http://www.joget.org/joget-workflow-v6/

        CommentAdd your comment...
      1.  
        1
        0
        -1

        yes. i already used hash variable. But how to reset back to 1 (ex:2017001) automatic by system when year changed.

        1. Anders

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

        CommentAdd your comment...
      2.  
        1
        0
        -1

        Hi, you could try to use the Hash Variable#DateHashVariable in your environment variable eg 

        Environment Variable Name: ref-#date.yyyy#
        Format: #date.yyyy#???

         

          CommentAdd your comment...