Skip to Content
0
Former Member
Sep 29, 2005 at 04:47 AM

I have some problems in getting input value of tableview

22 Views

First of all, I separate my page into three trays by <htmlb:tray>

In the view of the second tray, I use the tableview.

<htmlb:tableView headerText = "Update Confirmation"

headerVisible = "true"

id = "tv_update"

width = "100%"

visibleRowCount = "8"

selectionMode = "MULTILINEEDIT"

filter = "server"

sort = "server"

table = "<%=T_UPDATE%>">

<htmlb:tableViewColumns>

<htmlb:tableViewColumn columnName = "DEL_NO" />

<htmlb:tableViewColumn columnName = "ITM_NO" edit="TRUE" />

<htmlb:tableViewColumn columnName = "BATCH" edit="TRUE" />

</htmlb:tableViewColumns>

</htmlb:tableView>

In the buttom, I have an adjust button.

<htmlb:button id="adjust" text="Adjust" onClick="adjust"/>

In the controller of this view, I try to get value from selected row in DO_HANDLE_EVENT.

class cl_htmlb_manager definition load.

l_tv ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = request

NAME = 'tableView'

ID = 'tv_update' ).

if l_tv is not initial.

l_tv_event = l_tv->data.

clear SELECTEDROWINDEXTABLE.

SELECTEDROWINDEXTABLE = l_tv_event->PREVSELECTEDROWINDEXTABLE.

However, the l_tv_event->PREVSELECTEDROWINDEXTABLE is initial, although I click any row in the tableview