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

Radiobutton

Former Member
0 Likes
1,451

I have to select two radio buttons,

For one radio button i have to select this existing logic(which i had given below).Now my requirement is with out changing this existing logic i have to select the same logic for second radio button also than i have to do some changes in it.

Please select two radio buttons for same existing logic.

Please help me.

**********************************************

----


  • Start of selection *

----


START-OF-SELECTION.

PERFORM fetch_data.

----


  • End of selection *

----


END-OF-SELECTION.

IF w_hdline = 0.

WRITE : ''(135).

ELSE.

PERFORM write_data.

ENDIF.

----


  • Top of page *

----


TOP-OF-PAGE.

PERFORM header.

&----


1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,430

smaple code

selection screen.

parameters : rb1

rb2

start-of-selection

if rb1 = 'X'.---> if first radio buttion is checked

do this one.

else.

do this one.

endif.

this is sample code only , please check the sytax.

Regards

PRbahu

11 REPLIES 11
Read only

Former Member
0 Likes
1,429

Hi Ali,

Can you be clear with your reqmnt.

is that u want to call the same logic for the 2 radiobutton or what ?

regards,

Navneeth.K

Read only

0 Likes
1,429

yes that i have to call the same logic for the 2 radiobutton also with out doing any changes

Read only

Former Member
0 Likes
1,429

Hi,

At a time only One radiobutton will be selected and used, that is the property of the Radiobutton.

IF you are using two radiobuttons(which are declared as a group) R1 and R2.

Use

If R1 = 'X'.

< some logic for that RB>

elseif R2 = 'X'.

< write other logic>

endif.

reward points if useful

regards,

Anji

Read only

0 Likes
1,429

hi Ali,

at a time you can select only one radiobutton

chk out the foll code

PARAMETERS: R1 RADIOBUTTON GROUP grp,

R2 RADIOBUTTON GROUP grp.

If R1 = 'X'.

< some logic for that RB>

elseif R2 = 'X'.

< write other logic>

endif.

if you want to select both radio button then in start of selection you need to hardcode like this

R1 = 'X'.

R2 = 'X'.

regards,

Navneeth.K

Read only

0 Likes
1,429

hi Ali,

then make the foll. changes

PARAMETERS: R1 RADIOBUTTON GROUP grp,

R2 RADIOBUTTON GROUP grp.

If R1 = 'X' or R2 = 'X'.

< some logic for that RB>

endif.

regards,

Navneeth.K

Read only

0 Likes
1,429

Please check my logic first,For this existing logic i need to select one radion button for start of selection to to header data.

Afterwords i have to select another radio button for the same logic . But after selecting it i will do changes.

Like this please help me to provide two radio buttons to my logic.

Please help me.

Thanks

Read only

Former Member
0 Likes
1,429

In this please help me to select the procedure of two radio buttons.

Thanks

Read only

Former Member
0 Likes
1,431

smaple code

selection screen.

parameters : rb1

rb2

start-of-selection

if rb1 = 'X'.---> if first radio buttion is checked

do this one.

else.

do this one.

endif.

this is sample code only , please check the sytax.

Regards

PRbahu

Read only

Former Member
0 Likes
1,429

Hi Ali,

Is your query solved.

regards,

Navneeth.K

Read only

0 Likes
1,429

I need the radio buttons option like my logic given,Please help me in this.

Thanks

Read only

0 Likes
1,429

ali ,

u are not getting the point.

first radio button for old logic,

second one for new logic.

if RB1 is checked then

here u have to put all ur old code.

elseif RB2 = 'X'.

then here u have to add a new logic.

endif.

Regards

prabhu