I have a browse page and a popup of filters. I need to get the selected filters from the popup to browse page
Now i am opening the popup on a button click from browse page and in popup a map with id and selected value is created. How could i get the value to the browse page
Code
@Subscribe("filterConfig")
public void onFilterConfigClick(Button.ClickEvent event) {
Map filterValuesMap = new HashMap<>();
List<UniqueUploadFilter> filters = new ArrayList<>(filtersToShowMap.values());
filterValuesMap.put("filters", filters);
screenBuilders.screen(this)
.withScreenClass(UniqueUploadLogFilterPopup.class)
.withOptions(new MapScreenOptions(filterValuesMap))
.build()
.show();
}
and in the close button click of the pop up i have
@Subscribe("okBtn")
public void onOkBtnClick(Button.ClickEvent event) {
Map<Integer, String> filterValuesWithName = currentFragment.fetchFilterValues(false);
close(StandardOutcome.DISCARD);
}
Need to pass filterValuesWithName to the browse page(First code section) on close of the popup