Skip to Content
0
Feb 14, 2007 at 03:41 PM

Clear tableviewfilter

66 Views

Hi,

were are using a tableview with a filter.

View:

<htmlb:tableView id = "tbl_mkpmkbr"

table = "//model/mkpmkbr"

visibleRowCount = "6"

fillUpEmptyRows = "FALSE"

design = "ALTERNATING"

selectionMode = "SINGLESELECT"

selectedRowIndex = "<%= model->mkpmkbr_selection %>"

onRowSelection = "mkpmkbr_select"

headerVisible = "TRUE"

headerText = "XXXXX"

filter = "SERVER"

columnFilters = "<%= model->filter_mkpmkbr %>"

sort = "SERVER" >

After reading the data into the internal table, an initial filter is set:

Model -> read_mkpmkbr():

APPEND INITIAL LINE TO filter_mkpmkbr ASSIGNING <filter>.

<filter>-columnname = '/BIC/ZMKPMNID'.

<filter>-SELECTION = MNID.

When the user selects a different filter, we would like to remove the initial filter.

Controller -> do_handle_event():

IF htmlb_event_ex IS NOT INITIAL AND htmlb_event_ex->event_server_name = 'onFilter'.

CASE htmlb_event_ex->event_id.

WHEN 'tbl_mkpmkbr'.

REFRESH model->filter_mkpmkbr.

  • FIELD-SYMBOLS: <afilter> TYPE tableviewfilter.

  • LOOP AT model->filter_mkpmkbr ASSIGNING <afilter>.

  • clear <afilter>-selection.

  • ENDLOOP.

ENDCASE.

ENDIF.

The table contents is deleted. The filter in the page remains magically.

It looks like there is no way to get rid of the initial table filter.

Any hints?

Thanks

Volker Bohmer