cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding DynamicToggle Button creation

Former Member
0 Kudos

Hi All,

     Can you please let me know how to create toggle button dynamically in webdynpro ABAP.

How to assign Binding Path to the field properties dynamically during creation

    Thanks in Advance.

Regards,

Lakshmi.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Lakshmi,

While creating toggle button dynamically, you can use the parameter BIND_CHECKED to bind it to the context attribute.

Here, you need to created an attribute CHECKED of type WDY_BOOLEAN in context node ( EX: node name "BUTTON" ).

   CL_WD_TOGGLE_BUTTON=>NEW_TOGGLE_BUTTON(

               exporting

                    BIND_CHECKED = 'BUTTON.CHECKED'

                    ......

                

To know more about dynamic layout creation, please search SCN and I hope that you would get lot of threads. 

Hope this helps you.

Regards,

Rama

Answers (0)