Hi guys,
SuggestionPickerField does not send rpc to client on setValue. You can update SuggestionPickerField when it is attached to datasource, by updating entity value triggers change event as expected. But it is possible to use suggestionPickerField with metaclass and entity class, without datasource, so it would be great to have setValue working correctly.
Use-case you have large dataset eg. city-zip code entity. You dont want to load 100k rows into lookup field. So advice is to use suggestionPickerField. But you want to have newOptionHandler funcionality of lookup field for better ergonomy ->
create Enter press handler, on enter you get input value, you create new entity, perist to database and set this new value into component, but UI wont be updated so it looks like it is not created.
There are 3 options to get around this at the moment, call searchexecutor, call show suggestions or destroy component and recreate it and inject it into parent component. Only destroying and recreating wont need user interaction, others require user to pick new record from suggestions.
Thank you for any help.