cancel
Showing results for 
Search instead for 
Did you mean: 

Table filter

Former Member
0 Kudos

Hi,

I am looking to add a filter option for only a particular table column for WDA . The property 'isfilter' for colum is been checked. when i click the icon its not displaying an entry column to filter values. Could you pls help out with this..

Thanks,

vind

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Have you also bound an attribute to the FilterValue property and added an event handler for the action onFilter.

Former Member
0 Kudos

Hi,

as Thomas wrote above, you have to bind FilterValue property of TableColumn to attribute of another context node (so you have to create context node named filter for example and in it create string attribute on which you have to bind FilterValue property).

Then in attribute tab of view create attribute go_table_method_handler type if_wd_table_method_hndl.

In method of your view place this:

if firsttime = 'X'.

data lo_table ?= view->get_element( id = 'id_of_your_table' ).

wd_this->go_table_method_handler ?= lo_table->_method_handler.

endif.

then create event for onFilter action where place this code:

wd_this->go_table_method_handler->apply_filter().

Regards Jiri

Answers (0)