Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

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

    Hi,

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

    ALEX

    Add comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

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

    Hi!

    thanks for the quick answer.

    Add comment
    10|10000 characters needed characters exceeded