cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting Columns

Former Member
0 Kudos

Hi,

I want to sort rows of a table.

How should I do that? I tried to change the columns indexes but I don't know if it's possible.

Regrads

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Khaytaah,

Please go through this..

Cheers,

Kris.

Answers (2)

Answers (2)

Former Member
0 Kudos

In addition to what already mentioned here above. You need to get the instance of the Table UI from the view in wddomodify method and assign to the table handler.

see the help [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b5/ac884118aa1709e10000000a155106/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b5/ac884118aa1709e10000000a155106/content.htm]

See in your system demo_table component for more code snippets.

former_member199125
Active Contributor
0 Kudos

Go to view attributes tab

create

table_control type if wdtable_method_hndl.

then create one event for ONSORT event of the table and and give action name say " on_test_sort'

then in method tab

wd_this->table_control->apply_sorting( )