cancel
Showing results for 
Search instead for 
Did you mean: 

Create a check box using iterator in table view.

Former Member
0 Kudos

Hi,

I am new to BSP, can u pls tell me how to create the check box with iterator,

Promise to reward points.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

just search this forum with key words "checkbox" and "iterator" you will find lot of samples