on 04-18-2013 1:31 PM
Hi experts,
I'm switching on/off filter in the WD TABLE. I'm doing it in WDDOMODIFY method of the view, but vertical scroll dosen't work if the filter row is not visible. When the filtering is on, everything works fine. Any ideas? Thank you.
Best reards
Paweł Smuda
Hi Paul,
Please share the code for WDDOMODIFY method.
Also, check weather the scrollable property is not deactive.
-Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manish,
here is the code:
l_table ?= view->get_element( 'TABLE' ).
wd_this->go_table_method_handler ?= l_table->_method_handler.
lo_nd_action = wd_context->get_child_node( name = wd_this->wdctx_action ).
lo_el_action = lo_nd_action->get_element( ).
lo_el_action->get_attribute(
EXPORTING
name = `IS_FILTER_ON`
IMPORTING
value = lv_is_filter_on ).
IF lv_is_filter_on = abap_true.
l_table->set_on_filter( 'FILTER' ).
lo_el_action->set_attribute(
name = 'FILTER_CAPTION'
value = 'Table filter delete' ).
ELSE.
*clear filter values
lo_nd_t_pmb_md_filter = wd_context->get_child_node( name = wd_this->wdctx_t_pmb_md_filter ).
lo_el_t_pmb_md_filter = lo_nd_t_pmb_md_filter->get_element( ).
lo_el_t_pmb_md_filter->set_static_attributes(
static_attributes = ls_t_pmb_md_filter ).
IF wd_this->go_table_method_handler IS NOT INITIAL.
wd_this->go_table_method_handler->apply_filter( ).
ENDIF.
*end clear filter values
l_table->set_on_filter( '' ).
lo_el_action->set_attribute(
name = 'FILTER_CAPTION'
value = 'Table filter show' ).
ENDIF.
BR
Paul
Hi Paul,
I have checked in my system.Below code is working fine for Off and On, and scroll bar also working fine.Please debugg modifyview method after clicking for scroll bar as modifyview will be triggered every time when click on scroll bar.Please check the code in else part.If everything is perfect then I guess we have to search for SAP NOTE..
IF WD_COMP_CONTROLLER->GP1 = 1.
CALL METHOD lr_table->set_on_filter
EXPORTING
value = '' . "'ONFLTR' .
ELSE.
CALL METHOD lr_table->set_on_filter
EXPORTING
value = 'ONFLTR' .
ENDIF.
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.