on 09-02-2008 12:35 PM
Hi,
I am using the following code to save the data from the tableview.
But in the following line the the row index is not chowing the value.Its alws giving zero..
So what to do to get the respective row which i clicked and what value is coming from that..
ind = tv_data->selectedrowindex.
DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW,
ind type i,
wa type sflight.
tv ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'tableView'
id = 'tv' ).
IF tv IS NOT INITIAL.
DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
tv_data = tv->data.
ind = tv_data->selectedrowindex.
IF ind IS NOT INITIAL.
READ TABLE sflight INDEX ind into wa.
Modify sflight from wa index ind.
endif.
endif.
Hello,
In your code check are you passing the correct id for the table view:
tv ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'tableView'
id = 'tv' ).
Thanks,
Greetson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mahesh,
Are you passing the correct Id value for the table view:
tv ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'tableView'
id = 'tv' ).
You have mentioned as "tv".
Thanks,
Greetson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.