Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

radio button

Former Member
0 Likes
740

hi ..

I have a screen say 100.

on which i have 2 radio buttons which are take from the dictionary table .

Eg:

  • Male * Femal

I need to click only one of them .

but when i run the program both are getting selected.

so what shall i do in order to see only one radiobutton selected when i run prog

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
714

hi,

need to assign both radiobutton variable to same group.

parameter: p_alv radiobutton group rad1 default 'X',
                         p_lst radiobutton group rad1.

Then you will be able to select any one of them

6 REPLIES 6
Read only

Former Member
0 Likes
715

hi,

need to assign both radiobutton variable to same group.

parameter: p_alv radiobutton group rad1 default 'X',
                         p_lst radiobutton group rad1.

Then you will be able to select any one of them

Read only

0 Likes
714

this is the case when u have a selection screen..... here it is a web-dynproscreen

so i dont have parameter statment

Read only

0 Likes
714

Select both the radiobuttons and right click and select radiobutton group---> define.

regards,

Advait

Read only

tarangini_katta
Active Contributor
0 Likes
714

Hi,

While create the screen Make the 2 radio buttions under a radio button Group.

Then only one radio button will be checked.

I think it will solve u r problem.

Thanks,

Read only

Former Member
0 Likes
714

Hi,

First of all you will have to select both the radio buttons ,right click and define them under a radio button group.

After that depending upon the value in the dictionary set the radio button.

IF tbl-person = 'Male'.

radio1 = 'X'.

ELSE IF tbl-person = 'Female'.

radio2 = 'X'.

ENDIF.

Here 'tbl' is the name of the dictionary table and 'person' is the field which is being checked.

Hope this is useful.

Regards,

Deepthi.

Read only

Former Member
0 Likes
714

Hi Guest,

Grouping 2 radiobuttons will solve the problem. In a group of radiobuttons, one and only can be selected at one point of time.

Hope this will help you.

Regards

Sravan