Hi,
I have a browser with some aggregated values, which i cast to some fields. The total aggregation is presented perfectly, but when i filter on a period the aggregation result is change except the value that is casted to fields. This value remains the same. My question how can i get the values also to change when i filter.
This is my code:
@Inject
private GroupTable payrollItemsTable;
@Inject
private CurrencyField totaleWerknemersBelasting;
@Inject
private CurrencyField totaleWerknemersSolBelasting;
@Inject
private CurrencyField totaleAov;
@Subscribe
public void onAfterShow(AfterShowEvent event) {
Map<Object, Object> results = payrollItemsTable.getAggregationResults();
Object totaleNormalebelastingId = payrollItemsTable.getColumn("totaleNormalebelasting").getId();
totaleWerknemersBelasting.setValue((BigDecimal) results.get(totaleNormalebelastingId));
Object totaleSolidariteitsbelastingId = payrollItemsTable.getColumn("totaleSolidariteitsbelasting").getId();
totaleWerknemersSolBelasting.setValue((BigDecimal) results.get(totaleSolidariteitsbelastingId));
Object totaleAovId = payrollItemsTable.getColumn("totaleAov").getId();
totaleAov.setValue((BigDecimal) results.get(totaleAovId));
}
screenshot: