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

Changing Screen attribute at runtime.

Former Member
0 Likes
571

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
517

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
Read only

Former Member
0 Likes
517

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

Rob

Read only

Former Member
0 Likes
518

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

Read only

0 Likes
517

You should have taken Rob's advise earlier.

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

Read only

Former Member
0 Likes
517

<copy&paste_removed_by_moderator>

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