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

Manipulate form_fields in do_handle_data for Tableview filtering

Hi @ all!

I'm trying to manipulate the form_fields in do_handle_data to concatenate a '*' to entered filtervalues in a tableview. So far I got it like that:

  data: new_form_fields type tihttpnvp.

  field-symbols <fs> type ihttpnvp.

  new_form_fields = form_fields.

  loop at new_form_fields assigning <fs>.
    if <fs>-name cs 'filter_'
        and <fs>-value is not initial
        and not <fs>-value cs '*'.
      concatenate <fs>-value '*' into <fs>-value.
    endif.
  endloop.
  request->set_form_fields( fields = new_form_fields ).
  call method super->do_handle_data
    exporting
      form_fields     = new_form_fields
      global_messages = global_messages.

But this code only works if tableview's filterColumns is not bound from the model. Even if I changed the filterColums-Table from do_handle_data. My table filterColumns has some Inputs, Dropdowns and TristateCheckbox defined.

My Tableview:

    <htmlb:tableView id              = "tvantraege"
                     headerText      = "<%= antragmodel->tableheader %>"
                     width           = "100%"
                     headerVisible   = "false"
                     design          = "STANDARD"
                     visibleFirstRow = "1"
                     visibleRowCount = "<%= application->eing_rows %>"
                     fillUpEmptyRows = "true"
                     showNoMatchText = "true"
                     filter          = "server"
                     columnFilters   = "<%= antragmodel->filter %>"
                     sort            = "server"
                     selectionMode   = "NONE"
                     table           = "//ANTRAGMODEL/ANTRAGSLISTE"
                     tabIndexCell    = "true"
                     iterator        = "<%= tv_iterator %>"

Thanks in advance.

Sebastian

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 25, 2006 at 09:13 AM

    You can simply use the following methods to get and set the filter row values.

    CL_HTMLB_MANAGER=>SET_FILTER_ROW_VALUE

    CL_HTMLB_MANAGER=>GET_FILTER_ROW_VALUE

    Regards

    Raja

    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.