on 11-21-2007 7:03 AM
Hi All,
I have a table view in my application.
now my requirement is to make a line(first line) selected by default initially ( when the page is loaded ).
I tried the following code in the do_init( ) but didnt worked..
tv_head ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'headerlist' ).
IF tv_head IS NOT INITIAL.
tv_head_data = tv_head->data.
ENDIF.
*
tv_head_data->SELECTEDROWINDEX = 1.
Can Anyone Help ?..
Any suggestion / Hint really appreciated ( Points ).
Thanks, Sudeep..
<htmlb:tableView id = "TV_SERVER"
headerVisible = "true"
footerVisible = "true"
design = "alternating"
columnWrapping = "TRUE"
fillUpEmptyRows = "TRUE"
navigationMode = "BYLINE"
visibleRowCount = "8"
selectionMode = "LINEEDIT"
filter = "SERVER"
filterButtonText = "Filter"
table = "<%= lt_server %>"
width = "50%"
selectedRowIndex = "<%= ROW_INDEX %>"
keepSelectedRow = "FALSE"
selectedRowKey = "SERVERID">
create the attribute "ROW_INDEX" with type INT4 in your htm page....
in the class also declare a attribute "ROW_INDEX" with type INT4....
in the DO_INIT set ROW_INDEX = 1.
in the DO_REQUEST ...
lirv_page->set_attribute( name = 'row_index' value = ROW_INDEX ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.