Hey,
I am trying to configure a Picker Custom Field but am getting the following error:
"Interface Definition: Expression evaluation error at function a!pickerFieldCustom [line 290]: The function 'suggestfunction' is unavailable."
Here is my code:
a!pickerFieldCustom( label: "User Picker", placeholder: "--- Select Borrowers ---", labelPosition: "ABOVE", suggestFunction: a!dataSubset( startIndex: 1, batchSize: -1, data: if( local!view = "Borrower", index(local!borrowers,"borrower",{}), index(local!lenders,"lender",{}) ) ), value: if( local!view = "Borrower", local!selectedBorrowers, local!selectedLenders ), selectedLabels: if( local!view = "Borrower", local!selectedBorrowers, local!selectedLenders ), saveInto: if( local!view = "Borrower", local!selectedBorrowers, local!selectedLenders ), validations: {}
)
where local!borrower and local!lenders are lists of maps
Unfortunately I do not know where to start, any ideas as to how to fix this issue?
Discussion posts and replies are publicly visible
You need to create a suggestion function (expression rule) that takes a string as input and returns a data subset based on the matching results.
Refer to this for more info - docs.appian.com/.../Custom_Picker_Component.html
I see, any idea how that function would look seeing as I need to pass multiple variables?
This is also described in the multiple recipes
https://docs.appian.com/suite/help/23.1/Custom_Picker_Component.html#related-patterns