Skip to Content
0
Nov 10, 2005 at 08:32 PM

Tableview ->SET_FILTER_ROW_VALUE then cannot change value

19 Views

I have the following tableview:

        <htmlb:tableView id               = "MyTableViewID"
                         headerText       = "My Table View"
                         headerVisible    = "True"
                         design           = "alternating"
                         filter           = "SERVER"
                         sort             = "SERVER"
                         table            = "<%= my_tv_table%>"
                         iterator         = "<%= my_iterator %>" />

I am using the following to preset a filter value for a table view:

              CALL METHOD CL_HTMLB_MANAGER=>SET_FILTER_ROW_VALUE
                EXPORTING
                  REQUEST      = request
                  ID           = 'MyTableViewID'
                  COLUMN_INDEX = col_index
                  VALUE        = ' '.

The table used by the tableview is filled with all possible values, and the filter is pre-filled using the above code. The displayed table correctly displays only those entries that match the pre-filled filter value.

My problem is then the user is unable to change the pre-set filter value to "refilter" the table. If you blank out the displayed filter value and press Enter, the pre-set value is just redisplayed with no change in the displayed rows.

Is there way I can pre-set the filter value AND allow the user to change or delete the filter value when the tableview is displayed?