Jump to content

How to set current year in drop down list when the report is opened


Areerat Mukdakan

Recommended Posts

Hi Chloe,

 

You don't need to use CurrentDateTimeProperty. I was able to acheive it with a different script (script uses lubridate package)

script:

output = as.integer(year(now()))

----------------------------------------------

I set the output parameter to theproperty (integer type) used in the dropdown. The dropdown containsunique values in Year column (has to be an integer column for this example but you can make it work with other types as well). Attaching the dxp in this reply for your reference. Hope this helps.

 

Best,

Raghav

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...