Skip to Content
author's profile photo Former Member
Former Member

Create a check box using iterator in table view.

Hi,

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

Promise to reward points.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 08, 2008 at 09:33 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 05:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.