I am trying to create a custom filter with cascading values across two parameters. Both parameters should allow for multi selection (list) and the second parameter contains a param where clause filtering the available values based on the selection of the first parameter.
I have this filter working with a single selection on the second parameter but as soon as I check the “List” setting on the second parameter I am presented with the following error and stack trace when trying to select values for this parameter. It seems like the popup selection window is not being passed the param where clause properly or something.
java.lang.NullPointerException
at com.haulmont.cuba.gui.data.impl.AbstractCollectionDatasource.getQueryParameters(AbstractCollectionDatasource.java:259)
at com.haulmont.cuba.gui.data.impl.AbstractCollectionDatasource.createDataQuery(AbstractCollectionDatasource.java:495)
at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.beforeLoadData(CollectionDatasourceImpl.java:635)
at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.loadData(CollectionDatasourceImpl.java:609)
at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:161)
at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:119)
at com.haulmont.cuba.gui.dynamicattributes.DynamicAttributesGuiTools.createOptionsDatasourceForLookup(DynamicAttributesGuiTools.java:268)
at com.haulmont.cuba.gui.components.listeditor.ListEditorPopupWindow.createComponentForEntity(ListEditorPopupWindow.java:276)
at com.haulmont.cuba.gui.components.listeditor.ListEditorPopupWindow.initAddComponentLayout(ListEditorPopupWindow.java:169)
at com.haulmont.cuba.gui.components.listeditor.ListEditorPopupWindow.init(ListEditorPopupWindow.java:124)
at com.haulmont.cuba.gui.WindowManager.init(WindowManager.java:1247)
at com.haulmont.cuba.gui.WindowManager.initWrapperFrame(WindowManager.java:1236)
at com.haulmont.cuba.gui.WindowManager.createWindow(WindowManager.java:581)
at com.haulmont.cuba.gui.WindowManager.openWindow(WindowManager.java:750)
at com.haulmont.cuba.web.WebWindowManager.openWindow(WebWindowManager.java:158)
at com.haulmont.cuba.gui.components.listeditor.ListEditorDelegateImpl$1.actionPerform(ListEditorDelegateImpl.java:121)
at com.haulmont.cuba.web.gui.components.WebButton.performAction(WebButton.java:46)