Ram Kumar Posted March 11, 2014 Share Posted March 11, 2014 Hi all, I am trying to set default value to drop down list property control. Document.Properties["SelectedYear"]=max(year) [This one not working] Is there any way to set latest(maximum) year for this property 'SelectedYear'For example : If the 2015 data comes into dashboard, I want to show 2015 as default selection in the drop down list. Link to comment Share on other sites More sharing options...
Aditya Singh 3 Posted October 23, 2015 Share Posted October 23, 2015 You can use sorting on that column under Edit --> Column Properties. Link to comment Share on other sites More sharing options...
Ray Gable Posted October 23, 2015 Share Posted October 23, 2015 Unfortunately, columns of type Date can not be sorted -- but, you can use IronPython to retrieve the maximum value from a column and have the drop down populated with that value. Here's an example: Link to comment Share on other sites More sharing options...
Ram Kumar Posted October 23, 2015 Author Share Posted October 23, 2015 Thank you Ray :) Link to comment Share on other sites More sharing options...
HITESH SAHOO Posted May 29, 2020 Share Posted May 29, 2020 [urgernt]Hi, I need exactly the same solution for one of my request. Answer stated Mr. rgablejr below works but I cannot change any other dropdown, it reset to max year. Please help.. Link to comment Share on other sites More sharing options...
HITESH SAHOO Posted May 29, 2020 Share Posted May 29, 2020 [urgernt]Hi Sir, Above code works and changes to max year value, but I cannot change any other dropdown, it always reset to max year. Please help.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now