cancel
Showing results for 
Search instead for 
Did you mean: 

onFilter Table,

Former Member
0 Kudos

Hey Guys,

has anybody a Tutorial, how can I use the onFilter Event (for filtering a Table) in Webdynpro?

Thanks Stefan

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Stefan,

You can follow suggestion the from Kris. To add-on to Kris suggestion, for each filter column, you need to create a separate context attribute and bind it to the 'filterValue' property of the TABLE_Column ui element. then only the filter field be enabled for input.

you can refer the DEMO_TABLE application if required.

BR, Saravanan

Former Member
0 Kudos

Hey Guys,

great! ->Question Solvend

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Stefan,

Create one attribute in Attributes tab.

say TABLE_CONTROL typ ref to IF_WD_TABLE_METHOD_HNDL.

For Table we have event ONFILTER .. create one action for this..

wd_this->table_control->apply_filter( ).

In WDDOMODIFYVIEW write this code..

DATA wd_table TYPE REF TO cl_wd_table.
IF ( first_time = abap_true ).
wd_table ?= view->get_element( 'TAB_FLIGHT_DETAILS' ).
wd_this->m_table_handler ?= wd_table->_method_handler.
wd_this->m_table_handler->set_key_attribute_name( 'PERNR' ). // any key field name
ENDIF.

also check this..

Cheers,

Kris.