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

Grey out field in Module pool programming

Former Member
0 Likes
5,960

Hi all

i have to grey out some fields in Module pool programming.. Can somebody please help me in this.

Regards

jai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,204

Hi,

If you want to grayout the fields from Program, then you need to use LOOP AT SCREEn and ENDLOOP in the PBO event.

or elese, you can gray out the fields using the Field attributes, just double click the screen field in the layout, there in the attributes, you will find a checkbox fro grayout

Regards

Sudheer

4 REPLIES 4
Read only

Former Member
0 Likes
2,204

hi

in the properties of that field set inputfield as uncheck....

Read only

Former Member
0 Likes
2,205

Hi,

If you want to grayout the fields from Program, then you need to use LOOP AT SCREEn and ENDLOOP in the PBO event.

or elese, you can gray out the fields using the Field attributes, just double click the screen field in the layout, there in the attributes, you will find a checkbox fro grayout

Regards

Sudheer

Read only

Former Member
0 Likes
2,204

Hi,

use it in pbo if u want to get it always.if u want to grayout after clicking a button then writs code in the pai(below the okcode of that button).

loop at screen.

if screen-name = 'field u want 2 grayout'.

screen-input = '0'.

modify screen.

endif.

endloop.

rgds,

bharat.

Read only

Former Member
0 Likes
2,204

Hi

1) you want particular field to be gratout all the time just uncheck the Input only

mark from the attribute of Screen field

2) For runtime u can put below code in PBO of the Screen.

loop at screen.

  • condition

if screen-name eq <fieldname>.

screen-input = 0

endif.

modify screen.

endloop.

Thanks

Reward if useful