Hi,
I have a search page that contains some dropdownlist boxes and 2 tableviews. When I select a value from the dropdownlist box I populate the first tableview.On selecting a row from the first tableview I display values in second tableview.
My problem is that after I display data for one search criteria and select another search criteria I want to refresh my tableview selectedrowindex. All the rows should be deselected. Now I am getting the new data but the row I selected initially is remaining as such.
Regards
Tejaswini
When defining the tabelview, utilize the attribute selectedRowIndex and relate it to a page attribute(eg. selectedrowindex type int4 ).
If you use the selectionMode = "SINGLESELECT"
the following would work.
Clear this page attribute in "inputprocessing", whenever you want to deselect the selected row.
<htmlb:tableView id = "tv1"
.......
selectionMode = "SINGLESELECT"
..................
onRowSelection = "onRowSelection"
......
selectedRowIndex = "<%= selectedrowindex %>"
.......
>
Add a comment