2007 Oct 18 9:45 AM
on a selection screen i have 4 radio buttons and two date fields and two time fields. if a radio button r1 is selected then the input fields for date and time should be greyd out. i have already written the code... however it is not triggering on one click we need to double click or press enter.. any solution for this.... i'm pasting a part of my code...
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = 'X' AND SCREEN-GROUP1 EQ 'S1' .
SCREEN-INPUT = 0.
MODIFY SCREEN.
MODIFY SCREEN.
if R1 = 'X' AND SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R7 ='X' AND SCREEN-GROUP1 EQ 'S12'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2007 Oct 18 9:51 AM
give user command to the 1st radio button.. then no need of entering or clicking.. directly after selectiob of radio button yuo'l get the grayed out field...
PARAMETERS: p_r01 RADIOBUTTON GROUP rad1 MODIF ID sc1 USER-COMMAND cli,
p_r02 RADIOBUTTON GROUP rad1 MODIF ID sc2 DEFAULT 'X',
p_r03 RADIOBUTTON GROUP rad1 MODIF ID sc3.
on a selection screen i have 4 radio buttons and two date fields and two time fields. if a radio button r1 is selected then the input fields for date and time should be greyd out. i have already written the code... however it is not triggering on one click we need to double click or press enter.. any solution for this.... i'm pasting a part of my code...
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = 'X' AND SCREEN-GROUP1 EQ 'S1' .
SCREEN-INPUT = 0.
MODIFY SCREEN.
MODIFY SCREEN.
if R1 = 'X' AND SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R7 ='X' AND SCREEN-GROUP1 EQ 'S12'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2007 Oct 18 9:51 AM
Hi,
try like this.USE usercommand...it will work...
DECALRE parametrs like this
PARAMETERS : R1 RADIOBUTTON GROUP S1
USER-COMMAND app,
R1 RADIOBUTTON GROUP S12.
reward if helpful.
Regards,
Nagaraj
2007 Oct 18 9:51 AM
Hi Vicky,
Did you define user comman for radiobutton ?
The defination of radio button should be as
p_r1 radiobutton group g1 user-command c1 .
Thanks and regards
Satya
2007 Oct 18 9:51 AM
give user command to the 1st radio button.. then no need of entering or clicking.. directly after selectiob of radio button yuo'l get the grayed out field...
PARAMETERS: p_r01 RADIOBUTTON GROUP rad1 MODIF ID sc1 USER-COMMAND cli,
p_r02 RADIOBUTTON GROUP rad1 MODIF ID sc2 DEFAULT 'X',
p_r03 RADIOBUTTON GROUP rad1 MODIF ID sc3.
2007 Oct 18 9:55 AM
Give radio button 1 with USER-Command....
Example,
PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,
rad2 RADIOBUTTON GROUP rad,
rad3 RADIOBUTTON GROUP rad.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |