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

TableView with filter

Hello,

I'm using TableView with a filter-line and MVC. My problem is the following: I want to remember the "filter-value" the user makes but don't know how to get this filter-value (I've checked the class htmlb_event in the do_handle_event-method of my controller).

Does someone know how to get this value?

<htmlb:tableView id = "tableview"

filter = "server"

table = "<%= model->table %>"

columnFilters = "<%= filters %>"

iterator = "<%= iterator %>" />

thanks in advance

A. Schulz

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2004 at 08:14 AM

    Hi,

    I would recommend you read the form fields from your request.

    ALEX

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2004 at 08:45 AM

    Hi all,

    At the moment, the only way to get the filter value back is to evaluate the receiving form fields:

    Syntax for each filter is:

    tableviewId '-filter_' columnIndex

    data: str         type string,
          value       type string,
          name        type string,
          columncount type i,
          id          type string.
    
    columncount = 3.
    id = 'myTableId'.
    DO columncount TIMES.
      str = sy-index.
      CONDENSE str NO-GAPS.
      CONCATENATE id '-filter_' str INTO name.
      value = request->get_form_field( name ).
    ENDDO.

    Best wishes,

    Steffen Knoeller

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2004 at 12:55 PM

    Hi!

    thanks for the quick answer.

    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.