Skip to Content
avatar image
Former Member

Merge Cells in sap.ui.table.Table

Hi,

I need to merge cells in UI Table based on the data that I'm binding from a dynamically created mode.

I have gone through some of the posts on the same query but I wasn't able to find a solution to my problem. I do not want to use ids for the cells to achieve this as it would create a problem when I have only a certain number of visible rows at a time in the ui table.

And there doesn't seem to be a direct property like mergeDuplicates in the m table.

sapuitable-with-duplicate-data.png

I've attached an image of the table and how I want to merge the data.

Thanks

Stephanie

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 07, 2017 at 07:42 AM

    Use the sap.m.table. In it, use the property mergeDuplicates in sap.m.column.

    For reference, check the following threads:

    https://archive.sap.com/discussions/thread/3725533

    https://archive.sap.com/discussions/message/16293038#16293038

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • coz, it looks for common values and merges it. Empty space is also a value and hence other columns without data get merged.

      Other than, this there is not direct config to only merge columns with data. Check if it's possible to control the merging duplicated for a specific column.

      Regards,

      Sharath