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

Filter using DropDown in Tableview

Hi everyone,

I tried following example

/people/sap.user72/blog/2005/05/05/bsphowto-filter-using-dropdown-in-tableview

but with the addition, that i prepared a "normal" BSP. Now, I have the problem, to get the selected dropdown value...How can i get this in the event "OnInputProcessing"?

thanx and best regards

Andi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on May 11, 2005 at 10:20 PM

    If you are using <b>filter="SERVER"</b> for the tableview you should not need to manually use this value anywhere.

    However, if you want to use it, have a look at this class and its methods, especially the following one:

    <b>CL_HTMLB_EVENT_TABLEVIEW=>GET_ROW_FILTER_VALUE</b>

    With some basic understanding of the eventing system you should be able to achieve what you need. Have a look at these two weblogs:

    <a href="/people/brian.mckellar/blog/2004/07/18/bsp-in-depth-using-the-htmlb-event-system In-Depth: Using the HTMLB Event System</a>

    <a href="/people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events Programming: Handling HTMLB Events</a>

    Cheers,

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2005 at 05:19 AM

    Hi Andi,

    You can also check the filter example in "SBSPEXT_TABLE " bsp application .

    To get the selected dropdown value you can use the "GET_ROW_FILTER_VALUE" METHOD of CL_HTMLB_EVENT_TABLEVIEW class.

    check this ex code .

    ********OnInputprocessing********

    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.

    data: sel type string.

    • Scenario 1: Read event from manager.

    DATA: event TYPE REF TO CL_HTMLB_EVENT.

    event = CL_HTMLB_MANAGER=>get_event( request ).

    IF event IS NOT INITIAL AND event->name = 'tableView'.

    DATA: tableview_event TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.

    tableview_event ?= event.

    sel = tableview_event->GET_ROW_FILTER_VALUE( COLUMN_INDEX

    ).

    ENDIF.

    ENDIF.

    *********************************

    I hope this will be of some help.

    Regards

    Monica

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2005 at 11:41 AM

    Hi Max, Monica,

    thank you for your answer.

    @Max

    Your right, I don't need the selected dropdown value...

    @Monica

    The Filter Example BSP Application <b>SBSPEXT_TABLE</b> was very helpful.

    I have found the mistake. I forgot to fill the column <b>name</b> of the filter table;-)

    best regards

    Andi

    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.