cancel
Showing results for 
Search instead for 
Did you mean: 

Merge header column of table using sap.m

raina_goyal
Participant
0 Kudos

Hello Everyone,

I have a requirement in which I need to merge the header column of the table. Please find the below screenshot:

I have created table using sap.m and xml view. Please help me as this is an urgent requirement and I am not able to any clue on SDk,blogs or any sample. Please suggest something.

Thanks,

Best Regards,

Raina

Accepted Solutions (1)

Accepted Solutions (1)

himanshupensia
Participant

Hi Raina,

You can create two tables. First one(table1) with three columns only with following properties

  • Name="year", Width 10%,
  • Name="year", Width 10%,
  • Name="sales", Width 80 %

second table(table2) with six columns and items with following properties.

  • Name="", Width 10%,
  • Name="", Width 10%,
  • Name="week", Width 10 %
  • Name="month", Width 10 %
  • Name="YTD", Width 30 %
  • Name="LY YTD", Width 10 %

Just put table 2 after table 1 with no spacing.

Thanks,
Himanshu

el_handous
Participant
0 Kudos

Hello,

I'm having the same issue but I didn't get exactly how you did it raina.goyal and himanshupensia .
Is "name" a property? And under which tag: columns or column?
Besides, I want to use one Toolbar for this whole table. Is it feasible?

Thank you!

himanshupensia
Participant

Hi Mohamed EL HANDOUS,

As in above described case, you can create two tables. First one with 3 columns. and other with 6 columns.

In First table will have no data binding. second may have data binded with it. If we place second table after the first, It will give visualization a expected.

Answers (2)

Answers (2)

rami_reddy4
Participant
0 Kudos

Hi Raina & Himanshu,

I have tried, but unable to design Merger Header column, can you please share sample code of this.

Regards,

Venkat

raina_goyal
Participant
0 Kudos

Hi Venkata,

Apologies for delayed response and I hope your problem would be resolved now. But still the issue persists can you please share your code, so that we can have a look what is missing.

Thanks,

Best Regards,

Raina

raina_goyal
Participant
0 Kudos

Thanks Himanshu, It worked.