Application Development 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: 

default radiobutton

Former Member
0 Kudos

is it possible to declare 2nd radio button as default one in screen which i hav created in se51.

6 REPLIES 6

Former Member
0 Kudos

Hi,

In PBO do like this

P_RAD1 = space.

P_RAD2 = 'X'.

Regards,

Satish

Former Member
0 Kudos

Hi,

You can create two or more radio buttons in a group.

see radio buttons work with in a group.means only one radio button will select and other buttons are not working at that moment.so if you want to declare a radio button on a se51 you can do that.

if it is check box then there is no problem.

because if you have more than one check,you can select or de select the check boxes according to your requirement.

regards,

swami

Former Member

In Radiobutton automatically it will come.

Whenever u crea a radiobutton,

u select all the radiobuttons.

and Goto menu EDIT->Grouping->RadiobuttonGroup->Define

hope it will useful.

- Selvapandian Arunachalam

Former Member
0 Kudos

Hi Kavitha,

It is possible to make second radio button as default one.we have to write this below logic in PBO EVENT ok..

loop at screen.

if screen-name = 'RADIOBUTTON2'.

radiobutton1 = space.

radiobutton2 = 'X'.

endif.

modify screen.

endloop.

Award points if helpful.

Kiran Kumar.G.A

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 11, 2008 9:53 AM

0 Kudos

Hi,

but when i use ur code i cant select first radiobutton.

Former Member
0 Kudos

Hi Kavitha,

Parameter <p> is created with type C and length 1, and is assigned to group <radi>. The maximum length of string <radi> is 4. You can use additions TYPE and LIKE, but you must refer to a field of type C with length 1. You must assign at least two parameters to each <radi> group. Only one parameter per group can have a default value assigned using the DEFAULT addition. The default value must be 'X'. If you do not use the DEFAULT addition, the first parameter of each group ist set to 'X'.

When the user clicks a radio button on the selection screen, the respective parameter is assigned the value 'X', while all other parameters of the same group are assigned the value ' '.

REPORT DEMO.

PARAMETERS: R1 RADIOBUTTON GROUP RAD1,

R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X', This gives u a default one.

R3 RADIOBUTTON GROUP RAD1,

Reward if helpful.

Thankyou,

Regards.