on 01-07-2008 10:07 AM
how to change the visibility of a screen element if a specified condition is satisfied?
Hi,
check this:
if the screen element is called P_TEST for example, you can hide it with the following code in the PBO module of your screen
LOOP AT SCREEN.
if screen-name cs 'P_TEST'.
if <HERE IS YOUR CONDITION.....>.
screen-active = 0.
MODIFY SCREEN.
endif.
endif.
ENDLOOP.
If this element is in the selection-screen, you could do the following:
PARAMETERS: p_test(1).
AT SELECTON-SCREEN OUTPUT.
LOOP AT SCREEN.
if screen-name cs 'P_TEST'.
screen-active = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
If you just need to show the element but not allow for input, then you can change screen-active = 0. with screen-input = 0.
Please reward if it helps.
Regards,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.