Hello,
I have a TableView with mulitselect.
Can I suppress the first column with the checkboxes for the line-selection?
Does anybody know about this problem.
Thanks for any advice or path for more information.
Kind Regards
Petra
Request clarification before answering.
Petra,
I suggest you choose SELECTIONMODE as "MULTILINEEDIT" and then fill the table SELECTEDROWINDEX with alll the lines of your Tableview.. for example:
<htmlb:tableView id = "tvmyTAB"
footerVisible = "FALSE"
table = "//mdl_TAB/TT_TABLE"
selectionMode = "MULTILINEEDIT"
allRowsEditable = "false"
iterator = "<%= mdl_TAB->itr_tab %>"
selectedRowIndexTable = "<%= mdl_TAB->selrowtab_TT_TABLE %>"
headerVisible = "false"
visibleRowCount = "150"
width = "100%" >
selrowtab_TT_TABLE will be of Table type of INT4 and the values will be 1, 2, 3, 4,5 and so on..
hope thsi helps..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not at work but does this code disable the selection checkboxes that are appened as the first column of a table when selected for MULTISELECT?
<htmlb:tableView id = "tvmyTAB"
footerVisible = "FALSE"
table = "//mdl_TAB/TT_TABLE"
selectionMode = "MULTILINEEDIT"
allRowsEditable = "false"
iterator = "<%= mdl_TAB->itr_tab %>"
selectedRowIndexTable = "<%= mdl_TAB->selrowtab_TT_TABLE %>"
headerVisible = "false"
visibleRowCount = "150"
width = "100%" />
Akshaya Rao, your code does not actually supress or "remove" that first column of checkboxes however.
Petra,
What you can do is set each column you want the user to edit as "editable" in your Iterator or columnDefinitions then add a button for saving.
Sample code from SBSHTMLB_TABLE, TableViewAllRowsEditable.bsp
<%
data: columnDefinitions type TABLEVIEWCONTROLTAB,
wa type TABLEVIEWCONTROL.
wa-COLUMNNAME = 'carrid'.
wa-EDIT = 'X'.
wa-width = '33%'.
APPEND wa TO columnDefinitions.
CLEAR wa.
wa-COLUMNNAME = 'connid'.
wa-width = '34%'.
APPEND wa TO columnDefinitions.
CLEAR wa.
wa-COLUMNNAME = 'seatsmax'.
wa-EDIT = 'X'.
wa-width = '33%'.
APPEND wa TO columnDefinitions.
%>
<htmlb:tableView id = "test"
selectionMode = "none"
filter = "server"
columnDefinitions = "<%= columnDefinitions %>"
table = "<%= sflight %>"
width = "100%"
visibleRowCount = "8"
iterator = "<%=iterator%>"
allRowsEditable = "X"/>
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.