a!localVariables( local!locationsList:rule!AT_getAddresses(addressId: null), -- getting an error at this line.{ a!sectionLayout( label: "Address", contents: { a!radioButtonField( label: "Radio Buttons", labelPosition: "COLLAPSED", choiceLabels: local!locationsList, choiceValues: local!locationsList, saveInto: {}, choiceLayout: "STACKED", validations: {} ) } )})
Discussion posts and replies are publicly visible
In the below line of code if I use numbers like 1 or 2 or 3 I am getting an error. Otherwise, if I use below syntax no issues.
local!locationsList: rule!AT_getAddresses_ER(addressId: null)
Thanks for your quick responses.
To confirm, have we got it partly solved and the last error remaining is using any number in your query rule?
Yah, it is partly solved.
I'm 90% sure your issue is that the query rule AT_getAddress_ER has an input of `addressId` that isn't an array. To use "in" within your a!queryFilter() it would need to be an array. It works with null as you have `ignoreFiltersWithEmptyValues` set to true.