Skip to Content
author's profile photo Former Member
Former Member

onFilter Table,

Hey Guys,

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

Thanks Stefan

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2011 at 04:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2011 at 05:31 PM

    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..

    onfilter-event-in-table-ui-element

    Cheers,

    Kris.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.