Application Development 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: 

urgent

Former Member
0 Kudos

Hi Experts,

How to hide the check box in Selection screen.(there r two if first one is selected and second one should not displayed on screen and vise versa).Please explain me.

Thanks & Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Write this in AT selection-screen output.

if chkbox1 = 'X'.

loop at screen.

if screen-name = 'CHKBOX1'.

screen-active = 0.

modify screen.

endif.

endloop.

else if chkbox2 = 'X'.

loop at screen.

if screen-name = 'CHKBOX2'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

also when using parameters for check box add 'USER COMMAND' also.

reward if useful

6 REPLIES 6

VXLozano
Active Contributor
0 Kudos

You can use a lot of time doing a hard work with the AT SELECTION-SCREEN events to do it, but I think it's not a wise movement.

Use radio-buttons to do that thing.

If you use hidden checkboxes, your users will never be able to change their minds in your selection screens

Message was edited by:

Vicenç Lozano

For additional information about the Radio-buttons, use the help (normal F1) with the PARAMETERS sentence. It's easy to understand and has few pretty good samples.

Former Member
0 Kudos

In the event AT SELECTION SCREEN OUTPUT you can do a LOOP AT SCREEN and turn off the ACTIVE indicator. Use the debugger to determine what the name of the field is that you want to hide.

So something like

LOOP AT SCREEN.

IF SCREEN-FIELDNAME = 'the name'.

SCREEN-ACTIVE = '0'.

MODIFY SCREEN.

ENDLOOP

Regards

Former Member
0 Kudos

Write this in AT selection-screen output.

if chkbox1 = 'X'.

loop at screen.

if screen-name = 'CHKBOX1'.

screen-active = 0.

modify screen.

endif.

endloop.

else if chkbox2 = 'X'.

loop at screen.

if screen-name = 'CHKBOX2'.

screen-active = 0.

modify screen.

endif.

endloop.

endif.

also when using parameters for check box add 'USER COMMAND' also.

reward if useful

Former Member
0 Kudos

hi,

in order to do that you have to handle the code

in AT SELECTION-SCREEN OUTPUT.

AND IN SCREEN we have a option visible

make it as 'X' or space as per you requirement.

Regards,

Srinivas

Former Member
0 Kudos

hi,

try like this,

parameters: c1 type checkbox,

c2 type checkbox.

AT SELECTION-SCREEN OUTPUT.

if c1 = 'X' and screen-name = 'C2'.

loop at screen.

screen-input = 0.

modify screen.

endloop.

else.

loop at screen.

screen-input = 0.

modify screen.

endloop.

endif.

if helpful reward some points.

with regards,

Suresh Aluri.

Former Member
0 Kudos

hi,

follow this logic.......

**logic for declaration field as check-boxes..

PARAMETERS: a AS CHECKBOX,

b AS CHECKBOX.

****keep logic in at screen-screen ouput event to changing the fields dynamically .

   AT SELECTION-SCREEN OUTPUT.
          IF a = 'X'
          LOOP AT SCREEN.
               SCREEN-name1 = 'b'.
               SCREEN-invisible = 1.
              MODIFY SCREEN.
         ENDLOOP.
        ELSEIF  b = 'X'.
                LOOP AT SCREEN.
               SCREEN-name1 = 'a'.
               SCREEN-invisible = 1.
              MODIFY SCREEN.
         ENDLOOP.
   ENDIF.

regards,

Ashok reddy