on 03-11-2008 9:05 AM
hi
I have applied sort functionality to the Table columns. It is working fine but I need to read the table column name before sorting ( On which column user trying to sort ).
Thank you all,
Rama...
hi rama krishnan.......
you can make use of the method get_key_attribute_name in the interface if_wd_table_method_hndl... this will solve it.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex
Thank you very much for your valid input.
But I am facing one problem here. To get sort functionality I added following logic in WDDOMODIFYVIEW method.
DATA wd_table TYPE REF TO cl_wd_table.
CHECK first_time = abap_true.
wd_table ?= view->get_element( 'TABLE_NAME' ).
wd_this->table_control ?= wd_table->_method_handler.
wd_this->table_control->set_key_attribute_name( 'COL_NAME1' ).
here I hard coded first column name(i.e. COL_NAME1). Is it correct?
and added following code in SORT ACTION of table i.e.
wd_this->table_control->apply_sorting( ).
To get column name I am using the method in SORT ACTION of table which you mentioned but always I am getting COL_NAME1 only....
Please help me how can I rectify this...
Thank you
Rama
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
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.