Hi Team,
I have a dropdown field in which once user selects the value, based on it the grid below displays the result.
a!dropdownField( label: "", labelPosition: "", placeholder: "Years Available", choiceLabels: local!years, choiceValues: local!years, value: local!selectedYear, saveInto: { local!selectedYear, a!save(ri!selectedYear, local!selectedYear), a!save(local!GridData, wherecontains(tointeger(local!selectedYear), tointeger(index(ri!engagement,"clientYearEnd",null()))) ),a!save(local!selectedIndex, null), a!save(ri!selectedEngagements, null), a!save(local!data, null) } )
The local!GridData is used in the data parameter of the gridField but here it is not getting any value. Can anyone please suggest what needs to be done?
Thanks
Discussion posts and replies are publicly visible
What is the intended output? wherecontains() gives you the indexes of values in a list.
Additionally, I wouldn't recommend "hardcoding" (as it were) the desired output value of a filter into its SaveInto. That logic should be handled dynamically in the relevant Local Variables (and/or queries).