cancel
Showing results for 
Search instead for 
Did you mean: 

Table Sorting Parameters COL/COLUMN

Former Member
0 Kudos

We have 2 almost identical WD applications each with a sortable table. However each behaves differently.

In the first application we get 2 parameters when a user clicks a column to sort:

wdevent->get_string( 'COLUMN' ).

wdevent->get_string( 'DIRECTION' ).

In the second application we only get:

wdevent->get_string( 'COL' ).

There is no COLUMN and no DIRECTION!

What is the explanation for this and how can we always get both parameters consistently?

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you sure you aren't getting an onColSelect event instead of a sort in the one application? It is odd that you are getting parameter of COLUMN. That isn't listed as a parameter for any event. All the event handlers are documented here:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/frameset.htm

Have you set a breakpoint in the event handlers and looked at the WDEVENT object in the debugger to see what all parameters are available in each?

Former Member
0 Kudos

That was it, each column had an onAction event which overrode our onSort event on the table. Confusing but thanks!