cancel
Showing results for 
Search instead for 
Did you mean: 

How to group table rows using GroupedColumn?

Former Member
0 Kudos

Hi all,

i know by binding the grouping value to a context, it can merge rows into one. but this only works if the two rows are adjacent.

if the context looks like this:

value 1

value 2

value 1

value 2

it can not group them together

how to group them together and merge the rows?

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi erv2,

You can sort the rows based on value first. Then you can have the rows having similar value rows adjacent. Then you can merge them.

Regards,

Sayan Ghosh

Former Member
0 Kudos

hi,

thanks for the reply, do you have some sample codes for sorting a table against one column?

Edited by: erv2 on Sep 18, 2008 10:16 AM

Former Member
0 Kudos

Hi erv,

U need to use the TableSorter class for this.

You can download the TableSorter.java class from the tutorial Working with Tables in Web Dynpro.

Here you can select the project A) Creating Tables and download the Ready-to-use project. The lick to download project is:

[/docs/DOC-8061#46|/docs/DOC-8061#46]

Once you have downloaded the tutorial, you can find the TableSorter.java class in this path

TutWD_Table/src/packages/com/sap/tc/webdynpro/tests/utils

For more information refer to this blog:

[|/docs/DOC-8061#46]

Regards,

Sayan Ghosh