2007 Apr 10 3:00 PM
if you hav 2 radiobuttons in output.how to deactivate one radiobutton when clicking the other one?is there any syntax? points wil b rewarded...urgent...
2007 Apr 10 3:16 PM
Hi..
this will solve your problem..Just Paste this code.
<b>parameters: p_r1 radiobutton group gr1 modif id RD1 USER-COMMAND ucomm,
p_r2 radiobutton group gr1 modif id RD2 default 'X'.
at selection-screen output.
loop at screen.
if p_r1 = 'X'.
if screen-group1 = 'RD2'.
SCREEN-INPUT = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.</b>
Hi,
No need to deactivate for radio button when you select one of radio button.
You can group all the radio buttons.
Please try this.
parameters: p_rb1 radiobutton group rb1,
p_rb2 radiobutton group rb1 default 'X',
p_rb3 radiobutton group rb1.
parameters: p_rb4 radiobutton group rb2,
p_rb5 radiobutton group rb2,
p_rb6 radiobutton group rb2 default 'X'.
Regards,
Ferry Lianto
2007 Apr 10 3:02 PM
Why do you want to decativate the other?
If you group them under same group, then you don't need to bother about habdling themm.
parameters: p_rb1 type xfeld radiobutton group RB1,
p_rb2 type xfeld radiobutton group RB1.If you choose one, then the other will auotomatically deselected(Not deactivated).
Regards,
Ravi
2007 Apr 10 3:11 PM
if they are declred with different groups then how to handle....?
2007 Apr 10 3:17 PM
Hi Sunil,
Try this code:
parameters: p_rb1 type xfeld radiobutton group RB1 user-command UC1,
p_rb2 type xfeld radiobutton group RB1.
parameters: p_rb3 type xfeld radiobutton group RB2 modif id GR2,
p_rb4 type xfeld radiobutton group RB2 modif id GR2.
at selection-screen output.
if p_rb1 = 'X'.
loop at screen.
if screen-group1 = 'GR2'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.Regards,
Ravi
2007 Apr 10 3:04 PM
hi
<b>If you activate one radiobutton it is not necessary to deactivate
the other radiobuttons in this group; this is done automatically.
For example
Set [Documentation] "X"
in transaction SE38 would deactivate the other radiobuttons
[Source], [Variants], [Attributs],
[Text elements].</b>
regards
ravish
<b>plz reward if helpful</b>
2007 Apr 10 3:10 PM
Hi,
PARAMETERS: P_UNIX RADIOBUTTON GROUP RAD1 DEFAULT 'X',
P_LOCALD RADIOBUTTON GROUP RAD1.
the radio button is selected if the value of parameter is 'X;. otherwise it is not slected.
Regards,
Kalyani
2007 Apr 10 3:13 PM
Hi,
see the code...
PARAMETERS: p_a RADIOBUTTON GROUP rad1 DEFAULT 'X',
p_b RADIOBUTTON GROUP rad1.
they both belong to same group so no need to deactivate it manually it will be done automatically.
reward points if helpfull...
regards,
santosh
2007 Apr 10 3:15 PM
Hi,
No need to deactivate for radio button when you select one of radio button.
You can group all the radio buttons.
Please try this.
parameters: p_rb1 radiobutton group rb1,
p_rb2 radiobutton group rb1 default 'X',
p_rb3 radiobutton group rb1.
parameters: p_rb4 radiobutton group rb2,
p_rb5 radiobutton group rb2,
p_rb6 radiobutton group rb2 default 'X'.
Regards,
Ferry Lianto
2007 Apr 10 3:16 PM
Hi..
this will solve your problem..Just Paste this code.
<b>parameters: p_r1 radiobutton group gr1 modif id RD1 USER-COMMAND ucomm,
p_r2 radiobutton group gr1 modif id RD2 default 'X'.
at selection-screen output.
loop at screen.
if p_r1 = 'X'.
if screen-group1 = 'RD2'.
SCREEN-INPUT = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.</b>
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |