cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Sorting Table Results

BuckeyeScott
Explorer
0 Kudos

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




Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182374
Active Contributor
0 Kudos

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

former_member197472
Active Participant
0 Kudos

Do we have to mention sort state of  column to be sorted with?

Regards,

Amey

junwu
Active Contributor
0 Kudos

looks fine.

can you debug to see what is going there?