Skip to Content
0
Sep 28, 2017 at 07:05 AM

calculate values on select/deselect of rows of sap.m.table

744 Views

Hi All,

I have a form where i have a field - netValue and this field follows by a sap.m.table with mode : multiselect.

In the table we have one column - totalPrice , Now on selection of any row the net Value should be calculated like : new netValue = previous net value - selected rows total price.

And if user deselect the row, then it should become netValue = previous net value + selected rows total price.

The user should also have the option of selecting all rows and deselecting all rows.

any pointers will be helpful.

Thanks

_vishal