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: 

Disable Screen-Input for checkbox in report selection screen.

Former Member
0 Kudos

I have defined one Selection Screen parameter as follows:

PARAMETERS: CCCDoc as CHECKBOX USER-COMMAND check DEFAULT 'X'.

Now, When Selection Screen comes up I want to have this check box greyed out. I tried this code but is not working for me. What differently should I be doing?

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = CCCDoc.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Please advise.

- Rohit.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Make sure to wrap the parameter name in quotes.



AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'CCCDOC'.  "<-- wrap and capitalize
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Make sure to wrap the parameter name in quotes.



AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'CCCDOC'.  "<-- wrap and capitalize
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Regards,

Rich Heilman

former_member194669
Active Contributor
0 Kudos

Hi,


IF SCREEN-NAME = 'CCCDOC'.    "<<< In quotes

aRs

0 Kudos

geeee

I tried everything except capitalizing it. Even had tried quotes.

Guess sometimes you do need someone to make it work for you

Thanks Guys...Most appreciated.

PS: Sorry aRs I wasnt able to award you both 10 pts...I tried. Thanks all the same.

Message was edited by:

rohit singh