on 12-04-2007 3:48 AM
I've got a very strange problem while sorting table columns in WebDynpro Java.
I followed every step in the tutorial and imported the TableSorter.java into my project. But the columns in my table is still unsortable. I tried every effort but failed to make it sortable. Anyone encountered the same problem with me? Thanks in advance!
PS: I strictly followed the tutorial chapter 11's steps so do not tell me refer to that tutorial.
Hi Sam,
In the table columns ,sort icon is available?? Have u tried to check whether the onSort action is getting called or not??
put some print statement in onSort event handler & check.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sumit,
There's no sorting icons displayed in my table columns. And also there's no sorting links in the columns. The onSort action was not called also.
I noticed that in the tutorial the table's sort action is dynamically binded instead of filling in the table's sort action field.
Thank you and looking forward to your help.
Hello Sumit,
I've just searched the forum again and found a post answered by Armin Reichert:
"A possible reason might be that you have added table columns using the "GroupedColumns" aggregation (which is default in NW04s) but your TableSorter code still assumes that the columns are in the "Columns" aggregation (was default in NW04)."
The way to resolve this issue is simple as follow:
Replace
for (Iterator it = table.iterateColumns(); it.hasNext(); ++index)
by
for (Iterator it = table.iterateGroupedColumns(); it.hasNext(); ++index)
in your TableSorter.java.
I tried this and it worked! Thank you Sumit.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.