cancel
Showing results for 
Search instead for 
Did you mean: 

space in radio button group

0 Kudos

Hi Thomas,

I have taken the radio button grup by index.i have binded its texts to a attribute TEXT of a node(having KEY and TEXT).when i bind internal table(having 10 rows) to the node ,it populates the radio button group and it shows all the ten text perfectly.

The problem is :

Now I m seeing it as a group of ten radio button.But I want to see it as three groups of 3 radio button ,4 radio buttons and 3 radio buttons. it should show as the groups of 3,4,3 in front end but in back it must be single group coz I can not use three different radio button group.Using three RBG by index will spoil all purpose of selecting single button coz in that case three radio button can be selected.

Wt i tried:

I tried to hide and disable the radio button in between lines.but doing that ,i was nly able to hide text not the radio button.radio button was still there.

Any pointers by anyone will be of great help.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I must have to take only one node not three different nodes and not three different radio button group.

Former Member
0 Kudos

hi Govind,

Proceed as below to achieve this :

1. Create Three RadiobuttonGroup by index. RG1 , RG2 , RG3.

2. bind RG1 to T1 of node N1 , RG2 to T2 of node N2, RG3 to T3 of node N3.

3. Set the lead selection check box of all the three nodes as UnTick.

4. Now you have three groups as you required.

5. In the onSelect of RG1 , Set lead selction of N2 and N3 as 0.

6. Similarly onSelect of RG2 , Set Lead Selection of N1 and N3 as 0.

7. Finally aslo onSelect of RG3 , set lead selection index of N1 and N2 as 0.

8. this way you will be able to select only one radio button at a time.

Sample code for Setting lead selection to 0.

DATA lo_nd_cn_rd TYPE REF TO if_wd_context_node.

  • navigate from <CONTEXT> to <CN_RD> via lead selection

lo_nd_cn_rd = wd_context->get_child_node( name = wd_this->wdctx_cn_rd ).

lo_nd_cn_rd->set_lead_selection_index( 0 ).

I hope it is clear.