Discussion
2
Replies
1929
Views
Posted: June 1, 2015
Last activity: June 2, 2015
Dynamic Population of values based on current month/day/year
Hi Team,
I have the following requirement.Could you please help us to accomplish this.
1.I have a dropdown, where year value will be displayed to select like 2012,2013,2014.
These values should be populated in such a way from the current year it should display previous 7 years alone. In the next year it should change dynamically
likewise we need for month also.
Thanks for ur replies in advance.
You can use a DynamicSelect control in the UI.While populating the list for the dropdown, you can call CurrentDateTime function and truncate the year part to fetch current year. Iterating it 7 times, you can subtract the year by 1 in each iteration and append it to results.