Solved
Save a value in a custom Picker
Hello, does anyone know how I can make a custom picker to save the value if it is not in the list?
The code is that:
a!pickerFieldCustom(
label: "Tipo de entrada",
labelPosition: "ABOVE",
maxSelections: 1,
suggestFunction: rule!ERYM_FiltroComponente(
filter:_ ,
labels: local!tipoEntrada,
identifiers: local!tipoEntrada
),
selectedLabels: a!forEach(
items: ri!expediente.tipoEntrada,
expression: index(local!tipoEntrada, wherecontains(fv!item, local!tipoEntrada))
),
value: ri!expediente.tipoEntrada,
saveInto: ri!expediente.tipoEntrada,
showWhen: a!isNotNullOrEmpty(ri!expediente.inTipoExpediente),
),