Skip to main content
December 8, 2023
Question

enumerate function

  • December 8, 2023
  • 1 reply
  • 0 views

How to populate a dropdown list of years between 1990 to 2023 using enumerate function

    1 reply

    December 8, 2023

    enumerate(2023-1990+1)+1990

    You can use below logic and get the values from any limit:

    a!localVariables(
    local!startingYear:1990, /*Instead of hard coding you can use constant*/
    local!currentYear: year(now()), /*In your case this value is 2023*/
    enumerate(local!currentYear-local!startingYear+1)+local!startingYear
    )