Closed pribavkindenis closed 5 years ago
Minimal reproducible example:
Inside com.haulmont.refapp.web.ui.pivot.PivotSampleScreen#initTipsPivotTable method add a CellClickEvent listener to tipsPivotTable:
com.haulmont.refapp.web.ui.pivot.PivotSampleScreen#initTipsPivotTable
CellClickEvent
tipsPivotTable
tipsPivotTable.addCellClickListener(event -> { // Your implementation here });
Click on the cell pointed by the green arrow.
Expected behavior:
CellClickEvent provides DataItem objects each of them contains TipInfo object satisfies the following conditions:
DataItem
TipInfo
sex == "Female" smoker == true day == "Fri" time == "Dinner"
Actual behavior:
CellClickEvent does not provide DataItem objects.
com.haulmont.charts.gui.components.pivot.PivotTable.CellClickEvent contains a new field usedDataItems which is a list of DataItem used in the clicked cell value generation.
com.haulmont.charts.gui.components.pivot.PivotTable.CellClickEvent
usedDataItems
Minimal reproducible example:
Inside
com.haulmont.refapp.web.ui.pivot.PivotSampleScreen#initTipsPivotTable
method add aCellClickEvent
listener totipsPivotTable
:Click on the cell pointed by the green arrow.
Expected behavior:
CellClickEvent
providesDataItem
objects each of them containsTipInfo
object satisfies the following conditions:Actual behavior:
CellClickEvent
does not provideDataItem
objects.