cancel
Showing results for 
Search instead for 
Did you mean: 

How to group any table rows with a title ?

Former Member
0 Kudos

Hi masters!

Please I need to group some data in a grid, how could I do that ?

In order to ilustrate this, follow an example of the data:

name, category, value

name1, 1, 120

name2, 1, 132

name3, 1, 50

name4, 2, 130

name5, 3, 100

name6, 3, 101

name7, 3, 95

And I should show this data in a grid grouped by category but each category has a description that will be hard code, like this:

name, value

Category 1 - Prefered Movies

name1, 120

name2, 132

name3, 50

Category 2 - Rated Movies

name4, 130

Category 3 - Simple Movies

name5, 100

name6, 101

name7, 95

I created one Table in webdynpro but its just show the data with out this rows group or I still don´t know how to do that

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I solved this problem creating one table to each to group.

Former Member
0 Kudos

Hi,

To combine the fields belonging to one column, the value TableColumn.groupingValue must be bound to the dataSource. The consecutive fields that have the same values for groupingValue and selectedCellVariant are merged into one field.

Former Member
0 Kudos

Hi Michel,

One work around would be bind Table Column's "groupingValue" property with DataSource value attribute.

See the below link for more help on table:

http://help.sap.com/saphelp_nw04s/helpdata/en/b5/ac884118aa1709e10000000a155106/frameset.htm

Thanks

Sandy

Former Member
0 Kudos

In version 7.1 you can use the TableRowGrouping element to achive this.

Armin