on 04-13-2010 5:26 AM
Hi,
I want filter option in table same as alv.
For this I created the node filter in that declared the attributes for the table coulumns. and binded to the each column filtervalue.
created the linktoaction in the table for filter...
in that action written: DATA: l_node TYPE REF TO if_wd_context_node.
in any case clear the table's filter strings
l_node = wd_context->get_child_node( if_View_name=>wdctx_filter ).
l_node->invalidate( ).
if the filter is off: show the whole shebang
wd_this->table_method_hndl->apply_filter( ).
here I am getting the error like Access via 'NULL' object reference not possible..
how can I know IF_WD_TABLE_METHOD_HNDL this interface is used in which class.
Please help me the same
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I did the same in the example DEMO_TABLE. I am getting the error null object refference.
DATA TABLE_METHOD_HNDL type ref to IF_WD_TABLE_METHOD_HNDL.
create object TABLE_METHOD_HNDL type CL_WDR_TABLE_METHOD_HNDL.
CALL METHOD wd_this->TABLE_METHOD_HNDL->APPLY_FILTER( ).
here I am getting the error.
Check the wddomodifyview method of the view 'SORT_AND_FILTER_VIEW' of comp ' DEMO_TABLE'.
In this you are getting reference of table method handler and then storing it as view attribute
Get reference to the Filter & Sorting API
wd_this->TABLE_METHOD_HNDL ?= l_table->_method_handler.
Hope this helps.
Regards
Manas Dua
User | Count |
---|---|
87 | |
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.