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: 

Changing Screen attribute at runtime.

Former Member
0 Kudos

Could you please give me a code for changing the attribute of a screen at runtime.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

add the following code in PBO

loop at screen.

if screen-name = 'NAME_OF_FIELD_HERE_IN_CAPS'.

set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF)

e.g. screen-output = 1.

modify screen.

endif.

endloop

if the field is part of a table control, put the above code within the the loop...endloop of the table control in PBO

4 REPLIES 4

Former Member
0 Kudos

Please search the forum. You'll find this question has been asked and answered many times before.

Rob

Former Member
0 Kudos

add the following code in PBO

loop at screen.

if screen-name = 'NAME_OF_FIELD_HERE_IN_CAPS'.

set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF)

e.g. screen-output = 1.

modify screen.

endif.

endloop

if the field is part of a table control, put the above code within the the loop...endloop of the table control in PBO

0 Kudos

You should have taken Rob's advise earlier.

Now you and all your Guests are going to loose everything....

Former Member
0 Kudos

<copy&paste_removed_by_moderator>

Edited by: Julius Bussche on Sep 4, 2008 9:26 PM