Skip to Content

How to capture non-selected rows in sap.m.table with multiselect mode?

Hi All,

Need some help in one scenario. Is there any way to get non-selected rows in sap.m.table with multiselect mode? Basically I need to post all table rows to oData with a flag as true for selected rows and flag as false for unselected rows.

Regards,

Nooruddin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 08 at 07:19 AM

    hi Nooruddin Shaik.

    When you are looping around the items of the table in order to pass to Odata, you can check the isSelected property of the item which will tell you if the item is selected or not.

    You can get all items of table by using

    oTable.getItems()

    Now you can loop around the items and get the required result.

    Example: if you want to check the First item was selected or not, you can use the below mentioned code.

    oTable.getItems()[0].isSelected()

    Thanks,

    Vaibhav

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.