on 07-10-2006 3:24 PM
Hello,
I display data in a tableview:
<% create object iterator. %>
<htmlb:tableView id="lief01"
table="<%=model->ERGEBNIS_lief01%>"
allRowsEditable="true"
rowCount="7"
iterator = "<%=iterator%>" />
and then, in my iterator I have to change the characteristics of one of the columns (it must show up as checkbox):
METHOD if_htmlb_tableview_iterator~render_cell_start .
DATA: cb TYPE REF TO cl_htmlb_checkbox,
lr_row_data TYPE REF TO zdxg_clust_lief01. "<-- Structure
lr_row_data ?= p_row_data_ref.
IF p_column_key = 'ZDXG_LIFZ_AA'.
cb = cl_htmlb_checkbox=>factory( id = p_cell_id
text = ' '
disabled = 'TRUE'
textdirection = 'LTR' ).
cb->_checked = lr_row_data->zdxg_lifz_aa. "<- either ' ' or 'X'
p_replacement_bee = cb.
ENDIF.
ENDMETHOD.
when the value is ' ', the checkbox shows up. When the value is 'X', the cell is empty. There´s no marked checkbox.
Does any one know why ??
Thanks a lot.
Hi,
to show your checkbox, shouldn't diabled be equal to False
and _checked TRUE/FALSE depending on the default situation?
grtz
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.