on 08-05-2015 2:36 PM
I have implemented the following Web Dynpro for Java code in order to allow my users to sort table results by clicking on a column heading. Unfortunately, when a user clicks on a column heading the table results remain unchanged. Can someone please tell me what is causing the issue?
Import the file TableSorter.java and edit the package to match the location
Create a new context value attribute (Java native type) on the View
Create a new action (Sort) on the View
Add Java code to method onActionSort
Here’s the context Node that it’s sorting
Add Java code to method wdDoModifyView
Here’s the Table UI element info on the View
Organize imports to include TableSorter
Associate the onSort event with the Sort action on the Table UI element on the View
Hi Scott,
There are a lot a versions of the TableSorter class (for 6.4, 7.0 and 7.3).
Just for testing:
1) Remove the 'Sort' handler from the events of table (in some version of the TableSorter the connection between the table and the event is in the class code)
2) Make sure that your table columns doesn't have events attached to it (again, this is done in the class code).
Also, what is your J2EE version?
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do we have to mention sort state of column to be sorted with?
Regards,
Amey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
looks fine.
can you debug to see what is going there?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.