cancel
Showing results for 
Search instead for 
Did you mean: 

Row grouping in dynamic table

Former Member
0 Kudos

Hi,

I created a dynamic table and the data can be seen as output for the dynamic table selected. now i have 2 queries

1) I want to make a field as key and group data according to this row in this dynamic displayed table

e.g.: Field1 Field2

A 1

2

B 4

5

2) I want to put a first static row on all the dynamic fields and put a action on those links

e.g.: Field1 Field2

setting setting

A 1

2

B 4

5

Any pointers will be of help.

Thanks,

kinshuk

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Kinshuk

1. Grouping rows You have to code in wdDoModifyView method

get the table column and use method SET_GROUPING_VALUE to the attribute on which you want to group.

2. You have to use Cell Variant to have links in the first row and normal output in the rest of the rows.

for that you have to code in wdDoModifyView()

you can make use of this standard webdynpro component WDR_TEST_TABLE, see the view SUMMARY which has a similary coding in WDDOINIT and WDDOMODIFYVIEW methods..

here the coding is to have different type of cells in different rows, you can replace the code to have Links.

Regards

Abhimanyu L