cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic creation of Radio Button Group

Former Member
0 Kudos

Hi,

I need to create a Radio Button Group dynamically and add Radio buttons to it.

I am able to create the Radio buttons dynamically. Could someone help me how to create Radio Button Groups.

I tried creating the Radio Button Group using the following code

DATA : lr_radiobuttongrp type REF TO CL_WD_RADIOBUTTON_GROUP_BY_IDX.

call method CL_WD_RADIOBUTTON_GROUP_BY_IDX=>NEW_RADIOBUTTON_GROUP_BY_IDX

EXPORTING

bind_texts = 'test'

RECEIVING

control = lr_radiobuttongrp.

cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_radiobuttongrp ).

lr_container->add_child( lr_radiobuttongrp ).

But when I run it I am geting a dump "subnode viewname.ME does not exist".

Thanks,

Suvarna.

Edited by: Suvarna Chittor on Aug 12, 2008 12:10 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

what is 'test' in bind text parameter

you should provide the name in Capitals along with the node name,

if the node name is TEXTS and the context attribute under this node is TEXT then you have to pass

TEXTS.TEXT

also provide the VIEW parameter to the call

Abhi

Edited by: Abhimanyu Lagishetti on Aug 12, 2008 12:26 PM

Former Member
0 Kudos

Hi Abhi,

I have tried the way you have told. But not able to solve it.

Could you please send some link or code as how to create a Radio button Group at runtime.

Thanks,

Suvarna.