on 01-09-2006 7:05 PM
Hi,
after adding a row to my tableview based table (OnInputProcessing) I'd like to have this row show up automatically (pre-)selected. Anybody an idea of how to do this?
Thanks a bunch!
Wolfgang
Shailaja,
thanks for your answer. Unfortunately I tried that already and it is not working.
I got it to finally to work by setting the attribute selectedRowIndex of the tableview in the 'Layout'!
Wolfgang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Wolfgang,
Try like this:
data: tv_data TYPE REF TO cl_htmlb_event_tableview,
tv TYPE REF TO cl_htmlb_tableview.
tv ?= cl_htmlb_manager=>get_data( request = runtime->server->request
name = 'tableView'
id = 'myTableView1' ).
IF tv IS NOT INITIAL.
tv_data = tv->data.
//**** check here if your table is not empty***//
tv_data->SelectedRowIndex = tv_data->PREVSELECTEDROWINDEX.
endif.
Regards,
Shailaja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.