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.
Hi Petra,
How your users will multi-select items in tableView?
Dany
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
<i>> Just do a F1 on the attribute "selectionMode" in the Tag Browser in SE80 for more info.</i>
Really? 😄
The question was: if you set the selectionMode attribute to MULTISELECT and, contemporary, you wan't your users don't see any checkbox, how they can multi-select rows they are seeing?
Then set selectionMode attribute directly to NONE.
Simply this.
Dany
Dany, I'm sorry but what you just wrote doesn't make sense.
Petra, and do correct us if we are wrong. Wants to have the user able to edit or select multiple rows. However to do this she has to use MULTISELECT or MULTILINEEDIT and she doesn'T want the checkboxes in the first column that are automatically appended.
Therefore she basically has one choice in order to give the user the ability to choose what to edit and not have the checkboxes -> see my code above
Or do you have another code sample that works?
Okay,
Then Render all rows and Columns using inputfields( width 100%)using the Iterator and then have the Selection Mode = NONE and all rows editable = TRUE.
I know we use it a couple different places at work. Mix and match few combinations and we can it to work.
'Shay
For example :
Try this Code in the IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS method
Message was edited by: Akshaya Rao
Well Petra, it looks as though everyone seems to agree so I'll post the code for you again.
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"/>
I don't think you'll get any other choice. But you don't need inputfields as marking the column to "EDIT" will let you edit inline.
Akshaya Rao is correct the better way would be to create an Iterator for this but the easy way to test would be just making the columnDefintions on your page first.
Akshaya Rao remember the C in code is a small letter c if you can edit that and correct it then perhaps Petra might get another good example of code to try.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 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.