Here in line no 350 for choice labels I need name and for choice values I need ID but in choice values when I am giving here its throwing me the above error.
Can anyone let me know hw to solve it.
Discussion posts and replies are publicly visible
Hi,
Looks like issue with typecasting as local variable could be of dictionary type.If your choice values are list of text string and you are trying to store them in integer rule input value then you could get such error.
Try to compare your local values with below and see if it helps:
a!localVariables( local!selectedModeOfRequest: { {"name": "In Person", "id": "1"}, {"name": "Call", "id": "2"}, {"name": "Mail", "id": "3"} }, { a!dropdownField( label: "Dropdown", labelPosition: "ABOVE", placeholder: "--- Select a Value ---", choiceLabels: local!selectedModeOfRequest.name, choiceValues: tointeger(touniformstring(local!selectedModeOfRequest.id)), value: ri!selected.id, /*id is Number*/ saveInto: ri!selected.id, searchDisplay: "AUTO", validations: {} ) } )