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 button and checkbox

Former Member
0 Likes
624

Hello guyz,

A requirement...in which

I have 2 radio buttons and a checkbox,

The checkbox has to be enabled only if the second radio button is selected..

how cud i do that???

Reg,

Zid.

Hello guyz,

A requirement...in which

I have 2 radio buttons and a checkbox,

The checkbox has to be enabled only if the second radio button is selected..

how cud i do that???

Reg,

Zid.

4 REPLIES 4
Read only

Former Member
0 Likes
594
Read only

Former Member
0 Likes
594

PARAMETERS:

p_part1 RADIOBUTTON GROUP r1 USER-COMMAND radio DEFAULT 'X',

p_part2 RADIOBUTTON GROUP r1,

p_pc2 as checkbox MODIF ID sc2 .

AT SELECTION-SCREEN OUTPUT.

*If p_part1 is selected

IF p_part1 EQ 'X'.

LOOP AT SCREEN.

IF screen-group1 EQ 'SC2'.

screen-output = '0'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Read only

0 Likes
594

hello rajesh..

i already tried this.. it's not working.

please help in otherways.

Read only

Former Member
0 Likes
594

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: rad1 RADIOBUTTON GROUP grp  USER-COMMAND umd,
rad2 RADIOBUTTON GROUP grp DEFAULT 'X'.
SELECTION-SCREEN : END OF BLOCK b1.

PARAMETERS : pick AS CHECKBOX MODIF ID mod .

AT SELECTION-SCREEN OUTPUT.

  IF rad1 EQ 'X' .

    LOOP AT SCREEN.

      IF screen-group1 EQ 'MOD'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  ENDIF.