on 01-08-2008 9:23 AM
Hi,
I am new to BSP, can u pls tell me how to create the check box with iterator,
Promise to reward points.
use the below code in the iterartor.
method if_htmlb_tableview_iterator~get_column_definitions.
field-symbols: <def> like line of p_column_definitions.
append initial line to p_column_definitions assigning <def>.
<def>-columnname = 'Check'.
<def>-edit = 'X'.
<def>-width = '1'.
<def>-title = 'Check'.
endmethod
declare the m_row_ref type structuretype of the table view table.
method if_htmlb_tableview_iterator~render_row_start.
m_row_ref ?= p_row_data_ref.
endmethod.
method if_htmlb_tableview_iterator~render_cell_start.
data: chk type zflag.
when 'check'.
chk = m_row_ref->include_exclude.
p_replacement_bee = cl_htmlb_checkbox=>factory(
id = p_cell_id
checked = chk ).
endmethod.
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just search this forum with key words "checkbox" and "iterator" you will find lot of samples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.