mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 18:27:56 +08:00
Create own filter for each metaClass name in EntityRestore screen. #PL-2128 Fixed
This commit is contained in:
parent
4921f0edd5
commit
62abf190d4
@ -71,6 +71,9 @@ public class EntityRestore extends AbstractWindow {
|
||||
return getMessage("actions.Refresh");
|
||||
}
|
||||
});
|
||||
primaryFilter.setVisible(false);
|
||||
tablePanel = getComponent("table-panel");
|
||||
entities.setOptionsMap(getEntitiesLookupFieldOptions());
|
||||
|
||||
Window layout = getComponent();
|
||||
layout.remove(primaryFilter);
|
||||
@ -146,7 +149,8 @@ public class EntityRestore extends AbstractWindow {
|
||||
entitiesTable.setDatasource(entitiesDs);
|
||||
|
||||
filter = componentsFactory.createComponent(Filter.NAME);
|
||||
filter.setId("primaryFilter");
|
||||
String filterId = metaClass.getName().replace("$","");
|
||||
filter.setId(filterId + "GenericFilter");
|
||||
filter.setFrame(getFrame());
|
||||
filter.setStyleName(primaryFilter.getStyleName());
|
||||
filter.setXmlDescriptor(primaryFilter.getXmlDescriptor());
|
||||
|
Loading…
Reference in New Issue
Block a user