Skip to Content

How to merge the Duplicate rows in Sap.ui.table Control.

Hi All,

I have a requirement to merge the duplicate row data. I am using sap.ui.table as my volume of data is high for me.

I am aware of the property mergeDuplicates in sap.m.table. But In need same sort of implementation in sap.ui.table.

For using sap.ui.table reasons are:-

  • UI look & feel is very clean in ui.table.
  • Secondly, I have many columns to show so, need use Scroll Container for m.table implementation. Which is not the case in ui.table.

Kindly let me know your your views and how to achieve this.

Regards,

Sandeep

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 29 at 08:47 PM

    You can always use the read function of the odatamodel, remove the duplicates from the result and put it in a json model.
    Example for deleting duplicates: https://wsvincent.com/javascript-remove-duplicates-array/

    But should be better to do this in the backend. UI should be dumb and simple:)

    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.