on 12-07-2013 5:03 AM
Dear Experts,
Can anyone let me know how to make filter on by default in normal table . I've created a filter using this Link.
But when i click on filter button available in table, the filter row is getting enable. My requirement is by default i need to make the filter on .Pls let me know how to achieve this functionality.
Thanks
KH
for more info: you can take the help of following document.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chandra,
My Requirement is like this as shown in snap shot
1) Initially the filter is off as shown below
2) When i click of the filter button availabe , It is appending initial row for filtering values.
So, now my requirement is i need to show default filter row even without click of filter button .Pls let me know how to achieve this functionlity.
Thanks
KH
Don't create any extra button or attribute like "IS_FILTER_ON'.
Just create 2 node (1. For table, 2. For Filter)
one attribute: TABLE_HNDL type ref IF_WD_TABLE_METHOD_HNDL (in attribute tab of view)
"" Write this code in modify view...
DATA: lr_table TYPE REF TO cl_wd_table.
lr_table ?= view->get_element( 'TABLE' ).
wd_this->TABLE_HNDL ?= lr_table->_method_handler.
lr_table_prod->set_on_filter( '<Filter_Method_name>' ).
"" this code in Filter method(Created with table).
wd_this->TABLE_HNDL->apply_filter( ).
It should work directly. Its working for me too.
<Filter_Method_name> - Method name assign with onFilter property.
"" Write this code in modify view...
DATA: lr_table TYPE REF TO cl_wd_table.
lr_table ?= view->get_element( 'TABLE' ).
wd_this->TABLE_HNDL ?= lr_table->_method_handler.
"" this code in Filter method.
wd_this->TABLE_HNDL->apply_filter( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.