I have the following filtration implemented from a comboBox. Is it possible to make this filtration for multiple selections from a comboBox?
<propertyFilter id="licenseFilter" property="license.name" operation="EQUAL" dataLoader="organizationsDl" visible="false"/>
<comboBox id="licenseCombo" allowCustomValue="false"/>
@ViewComponent
private ComboBox<String> licenseCombo;
@ViewComponent
private PropertyFilter licenseFilter;
private List<String> getLicenses(){
return dataManager.load(License.class).all().list().stream().map(License::getName).toList();
}
@Subscribe("licenseCombo")
public void onLicenseComboComponentValueChange(final AbstractField.ComponentValueChangeEvent<JmixComboBox, Object> event) {
licenseFilter.setValue(event.getValue());
}
@Subscribe
protected void onInit(InitEvent event) {
licenseCombo.setItems(getLicenses());
}