Skip to main content
August 29, 2024
Solved

increment three digit counter

  • August 29, 2024
  • 3 replies
  • 0 views

hi, 

I am currently incrementing a counter based on a the count of similar records in the database. 

counter should start from 001. it defaults to 1 for me , when I am simply setting the counter to 000 and increment by 1. 

Expectation is 001 and not 1

any help is appreciated.

    Best answer by stefanhelzle0001

    A counter typically is an integer number. That is the technical internal value. To display such a value to the user, you somehow need to transform it into a string. Appian is doing this for using some default logic, but you can use the text() function to format your string in the way you want.

    3 replies

    sarathkumr268295
    August 30, 2024

    What exactly is the requirement? Any reason to have 001 and not as 1??

    stefanhelzle0001
    August 30, 2024

    A counter typically is an integer number. That is the technical internal value. To display such a value to the user, you somehow need to transform it into a string. Appian is doing this for using some default logic, but you can use the text() function to format your string in the way you want.

    August 30, 2024

    Thanks , I used the text function it is working