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: 

Radio button

Former Member
0 Kudos

Hi all,

How to create only one radi o button ?

6 REPLIES 6

Former Member
0 Kudos

hi,

PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .

Close the thread if problem is solved.

but once u click u will not be able to deselect. u have to do it programatically.

Message was edited by: Manoj Gupta

LucianoBentiveg
Active Contributor
0 Kudos

There is no logic in create only one radio button.

Replace it for checkbox.

Regards.

Former Member
0 Kudos

from help....see the part in <b>BOLD</b>...

Addition 13

... RADIOBUTTON GROUP radi

Effect

The parameter appears on the selection screen as a radio button. All parameters assigned to the same group radi in this way, form a group of radio buttons on the selection screen. When one is selected, all of the others are not selected. The name of the radio button group can be up to four characters long.

When you define a radio button parameter, you cannot specify a length. However, you can use the LIKE addition to refer to a field with length 1 and type C or the TYPE addition to specify length 1 and type C.

The addition does not affect the way in which the parameter is displayed (as in the AS CHECKBOX additino). You can arrange the parameters as you like using the SELECTION-SCREEN statement.

Notes

You can assign a user command to the radio button group using the USER-COMMAND ucomm addition. Since all of the buttons in the same group have the same command, you can only use this addition with the first parameter in the group.

<b>A RADIOBUTTON group must have at least two parameters, of which only one (at most) can have a DEFAULT addition. The DEFAULT value must be 'X'.</b>

In the database INCLUDE DBldbSEL, RADIOBUTTON parameters, like all others, must have the addition FOR TABLE dbtab. All of the parameters in a group must belong to the same table dbtab.

You cannot use a group name radi in a program if it has already been used in DBldbSEL.

Unlike in the case of "normal" parameters, the system does not jump to the AT SELECTION-SCREEN ON p event (in fact, it is syntactically not allowed). Instead, there is an event AT SELECTION-SCREEN ON RADIOBUTTON GROUP radi for the entire group. If this event contains a Error or Warning message, the entire radio button group is ready for input when the selection screen is redisplayed.

Former Member
0 Kudos

HI Priya,

There is no point in creating one radio button.

U can replace it with checkbox..

Rgds,

Prakash

former_member927251
Active Contributor
0 Kudos

Hi Priya,

Use the following :

PARAMETERS: r1 RADIOBUTTON GROUP rad1.

Also, refer the demo programs :

DEMO_AT_SELECTION_ON_RADIO

DEMO_DYNPRO_CHECK_RADIO

DEMO_SEL_SCREEN_PARAM_RADIOB

<b>Reward points if it helps and close the thread.</b>

Regards,

Amit Mishra

Message was edited by: Amit Mishra

Former Member
0 Kudos

Hi,

There is no use of Creating only one Radio button.

Radio button purpose is to select either one option or other.

Better you use Checkbox in this case instead of creating Radio button.

Thanks,

Pramod