cancel
Showing results for 
Search instead for 
Did you mean: 

filter option in table not in alv

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check this thread:

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

DEMO_Table using the image for filter.

Here I am using the link to action in the toggle.

Which property I have to bind for the IS_FILTER_ON .

this binding path is not getting in WDF.

ToolBar Righitems = link to action which property I have to bind for is_filter_on plese help me.

Answers (0)