on 04-06-2011 3:43 PM
Hi All,
I have searched the forums and cant come up with a workable solution.
I have a WD table ui control. When sorted by a column the icon remains even after a subsequent event is fired. I thought there would be a clear sort method but to no avail and have tried below too.
lr_header = lr_payments_table->get_header( ).
lr_header->set_image_source('NULL').
Is it possible (in ABAP) to access the column header and default the sort icon back to "not sorted".
Thanks All
David
I am not sure if i understand you correctly. If you need to make the sort icon to disappear then you have to set the sort state to none for that column.
See the code snippet here. Execute this code when you need to clear the sort column icon.
DATA:
lo_table_method_hndl TYPE REF TO if_wd_table_method_hndl,
lt_column TYPE cl_wd_table_column=>tt_table_column,
lo_column TYPE REF TO cl_wd_table_column.
lo_table_method_hndl ?= io_table->_method_handler.
lt_column = lo_table_method_hndl->get_all_columns( ).
LOOP AT lt_column INTO lo_column.
IF lo_column->get_sort_state( ) <> cl_wd_table_column=>e_sort_state-not_sortable.
lo_column->set_sort_state( cl_wd_table_column=>e_sort_state-none ).
ENDIF.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.