‎2007 Apr 24 5:30 AM
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.
&----
‎2007 Apr 24 5:43 AM
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
‎2007 Apr 24 5:40 AM
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
‎2007 Apr 24 5:55 AM
yes that i have to call the same logic for the 2 radiobutton also with out doing any changes
‎2007 Apr 24 5:40 AM
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
‎2007 Apr 24 5:44 AM
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
‎2007 Apr 24 5:58 AM
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
‎2007 Apr 24 6:04 AM
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
‎2007 Apr 24 5:40 AM
In this please help me to select the procedure of two radio buttons.
Thanks
‎2007 Apr 24 5:43 AM
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
‎2007 Apr 24 5:51 AM
‎2007 Apr 24 5:57 AM
I need the radio buttons option like my logic given,Please help me in this.
Thanks
‎2007 Apr 24 6:00 AM
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