get selected rows using checked-box in sap.ui.table
i'm unable to figure out the best way to get all the selected rows using checked boxes. and use them to call a odata create service.
i'm thinking of like this:
1. create an empty js var > onselect of check box > push the selected row (with all column values) into js var
2. wn use click on submit button, use submitbatch function to push all the data into service.
is this proper way of doing? or any better way to get the selected values using api and use them to submit batch?