cancel
Showing results for 
Search instead for 
Did you mean: 

Vertical scroll in WD TABLE not working

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Paul,

Please share the code for WDDOMODIFY method.

Also, check weather the scrollable property is not deactive.

-Manish

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Paul,

When you disable the filter try to turn off the filter instead of setting it as blank. It might help.

-Manish

former_member217546
Participant
0 Kudos

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.