(FlowUI) correct component for picking multiple entities?

What’s the correct component for picking multiple entities now actually?

I tried with the MultiValuesPicker, but this component doesn’t support entities.

Follow-up question: When is Vaadin 23.2 (and multi select box) planned to be supported?

I actually implemented the multi select box component on my own already, but the other components will then fail to work if I override the vaadin version in my build.gradle to 23.2.8 (see (FlowUI) entityComboBox in detail screen not working - #3 by klaus )

1 Like

HI,

multiValuePicker supports any value, but it has no default action for selecting entities, but it can be easily implemented, e.g.:

<multiValuePicker id="usersPicker" width="25em">
    <actions>
        <action id="select" icon="SEARCH"/>
        <action id="clear" type="value_clear"/>
    </actions>
</multiValuePicker>
@ViewComponent
private JmixMultiValuePicker<User> usersPicker;

@Autowired
private DialogWindows dialogWindows;

@Subscribe("usersPicker.select")
public void onUsersPickerSelect(ActionPerformedEvent event) {
    dialogWindows.lookup(this, User.class)
            .withMultiValueField(usersPicker)
            .open();
}

Screenshot 2022-11-17 at 19.46.51

Regads,
Gleb

2 Likes

Thanks @gorelov !