Hi ,
I want to diplay two filters one is Date and another one is on Year.
Date filter should be display of value of Year filter only.
By Year filter should display current year and Date should be current year date.
I have both in multidropdown separately without dependent to each other.
My requirement is to make dependent.
local!year: year( today() ), a!multipleDropdownField( label: "Date", choiceLabels:todate( reject( fn!isnull, union( local!dateList, local!dateList ) ) ), choiceValues: reject( fn!isnull, union( local!dateList, local!dateList ) ), value: local!date, saveInto: { local!date, a!save( local!pagingInfo.startIndex, 1 ) }, placeholderLabel: "All" ), a!multipleDropdownField( label: "Year", choiceLabels: reject( fn!isnull, union( local!yearList, local!yearList ) ), choiceValues: reject( fn!isnull, union( local!yearList, local!yearList ) ), value: local!year, saveInto: { local!year, a!save( local!pagingInfo.startIndex, 1 ) placeholderLabel: "All" )
Discussion posts and replies are publicly visible
Can you clarify what you mean by dependent on each other? Is it a a one way where year will dictate date possible values? Or two ways where you would want a selection of a date to affect year (if this, what would be the point?)
Also, is your list of date values a preset list?
Yes always Year should reflect on Date drop down. I am using both values to calling my Table grid expression rule to fetch data from query rule (Passing in date,year filters)