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

dynamically checkbox creation

Hello,

i have to create dynamically check box based upon number of fields from database.

i found some some solution in sdn which is not workinf for me.

could anyone help me in this.

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2012 at 07:54 PM

    Hi Rakshar,

    I am not sure what you tried and why it is not working, but below is the code for creating Checkbox at runtime:

    cl_wd_checkbox=>new_checkbox( EXPORTING

    bind_checked = 'CN_RBTN.CA_BOX'

    RECEIVING

    control = lo_chk_box ).

    cl_wd_flow_data=>new_flow_data( EXPORTING

    element = lo_chk_box

    RECEIVING

    control = lo_flow_data ).

    lo_chk_box->set_layout_data( lo_flow_data ).

    lo_ele_container->add_child( lo_chk_box ).

    Bind_Checked parameter is used for binding the checkbox to a context attribute.

    Hope this will help you.

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2012 at 11:18 AM

    It would have helped if you had stated which sdn-solution didn't work for you in particular... aside from that, above poster provided you with what you need.

    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.