on 10-23-2006 1:34 PM
Hello expert,
I try to select data with a method <b>getdata()</b> in my <u>model</u> and then the the <u>result into my tableView</u>.
the Problem how cann bind my model with my tableView.
<b>The Model- method is:</b>
METHOD getdata .
lfld_tabname = 'SFLIGHT'.
FIELD-SYMBOLS:
<fstable> TYPE ANY TABLE.
CREATE DATA itab_table TYPE STANDARD TABLE OF (lfld_tabname).
ASSIGN itab_table->* TO <fstable>.
SELECT * FROM (lfld_tabname)
INTO TABLE <fstable>.
ENDMETHOD.
<b>The Layout is like this:</b>
<htmlb:tableView id = "id"
design = "ALTERNATING"
headerText = "Header Text"
onNavigate = "onMyNavigate"
onRowSelection = "onMyRowSelection"
fillUpEmptyRows = "true"
footerVisible = "false"
filter = "NONE"
onClientRowSelection = "X"
visibleRowCount = "10"
selectionMode = "lineEdit"
table = "<%= %>"
/>
Thanks in Advance.
Regards.
adid
If you use MVC and model data binding, you should just save the table in an attribute like "results" and bind it to your tableview.
<htmlb:tableView id = "results"
table = "//model/results"
allRowsEditable = "FALSE"
headerVisible = "FALSE"
columnHeaderVisible = "TRUE"
footerVisible = "TRUE"
keyColumn = "AUFNR"
sort = "CARRID"
width = "100%"
selectionMode = "SINGLESELECT"
onRowSelection = "onMyRowSelection"
visibleRowCount = "15"
emptyTableText = "<%= otr(ZTEST/NO_CARRIERS_AVAILABLE) %>" >
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.