Добрый день!
Пытаюсь реализовать обработку события, когда выбирается кусок диаграммы (код ниже):
@Subscribe("depPlanByStatusPieChart")
public void onDepPlanByStatusPieChartSliceClick(Chart.SliceClickEvent event) {
PlanStatus planStatus = PlanStatus.fromId(event.getDataItem().getValue("status").toString());
PropertyCondition condition = PropertyCondition.equal("status", planStatus);
dataManager.load(Plan.class).condition(condition).list();
screenBuilders.lookup(Plan.class, this)
.withScreenClass(PlanBrowse.class)
.withOpenMode(OpenMode.NEW_TAB)
.build()
.show();
}
но у меня вместо планов в конкретном статусе (пусть их будет 5 штук), в PlanBrowse открываются все планы (пусть будет 10 штук). Не понимаю, как прописать условие, чтобы открывались только нужные планы?