cancel
Showing results for 
Search instead for 
Did you mean: 

sorting TreeByNestingTable column

Former Member
0 Kudos

Hi all,

I have implemented my table as discussed here:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on creating a tree structure in a table - 27.htm

Now I'm trying to sort my table columns as described here:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on creating tables in web dynpro - 11_0_.htm

Unfortunately I cannot get it to work. The icons for ascending and descending appear, however, it does not sort my table columns.

Is it all possible to sort using these TreeByNestingTableColumn UI element components?

And if yes, how can it be done?

Can you please suggest?

Regards,

Harm de Laat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go through this blog

/people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s

Regards,

Rajeev

Former Member
0 Kudos

This looks very promissing however, when I paste the TableSorter class into my project, it cannot resolve imports, and has some other import problems:

import com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDAbstractTableColumn;

import com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTableColumnGroup;

import com.sap.tc.webdynpro.clientserver.uielib.standard.api.WDTableColumnSortDirection;

All seem to cause compilation problems.

I'm using NWDS 2.0.15. Anything I should know here?

Please suggest?

Regards,

Harm

former_member182372
Active Contributor
0 Kudos

Hi Harm,

This blog describes WD <b>"for SAP NetWeaver 04s"</b>. That can cause your problems.

The problem with TreeByNestingTable is that it uses recursive nodes instead of "flat" one. So, logic from TableSorter is not really appropriate for this. Logic for sorting of tree (which actually represents recursive node) is more complex.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi All,

Do you guys have solution ofr sorting TreeByNestingTable column? Please let me know.

Appreciate your time

Som

Answers (0)