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

radio buttons

Former Member
0 Likes
603

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

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.

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
581

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

Read only

Former Member
0 Likes
581

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

Read only

Former Member
0 Likes
582

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.

Read only

Former Member
0 Likes
581

Give radio button 1 with USER-Command....

Example,

PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,

rad2 RADIOBUTTON GROUP rad,

rad3 RADIOBUTTON GROUP rad.