on 07-21-2011 3:32 PM
Hey Guys,
has anybody a Tutorial, how can I use the onFilter Event (for filtering a Table) in Webdynpro?
Thanks Stefan
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.