Question
Use customPickerField with googleMaps
Hello, I am trying to implement a custompickerField, but I still don't understand very well how the suggestFunction and selectedLabels work since I have my DP_addressSugestion rule that receives the address and through the Google Maps API it already returns the filtering. Here is my suggestFunction.
a!localVariables(
local!addressSugestion: rule!DP_AddressGoogleMaps(
address: ri!address,
latitud: -9.5,
longitud: -75
),
if(
local!addressSugestion.success,
a!localVariables(
local!labels: a!forEach(
items: local!addressSugestion.result.places,
expression: index(fv!item, "description", null)
),
local!values: a!forEach(
items: local!addressSugestion.result.places,
expression: index(fv!item, "description", null)
),
a!dataSubset(
data: local!labels,
identifiers: local!values,
)
),
a!dataSubset(
data: {},
identifiers: {},
totalCount: 0
)
)
)
Please help me to understand or some advices to work it
