cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulate form_fields in do_handle_data for Tableview filtering

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

check out this thread for usage of

CL_HTMLB_MANAGER=>SET_FILTER_ROW_VALUE

Regards

Raja

Answers (0)