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

Screen painter groups

Former Member
0 Likes
1,381

I have made with screen painter a program that has 2 screens . I want now to be able to have the screen No 1 to be only for viewing and not for editing . I suppose that i can do it with the attributes of the screen (Screen group ) .

Can someone please tell me the way .

Points will be rewarded ....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
798

Hello,

In the PBO of the respective screen create a module... In that u can write this code.

LOOP AT SCREEN.

screen-input = 0.

modify screen.

ENDLOOP.

this makes ur all fields of teh screen not editable status.

Regards,

Neeraj

2 REPLIES 2
Read only

Former Member
0 Likes
799

Hello,

In the PBO of the respective screen create a module... In that u can write this code.

LOOP AT SCREEN.

screen-input = 0.

modify screen.

ENDLOOP.

this makes ur all fields of teh screen not editable status.

Regards,

Neeraj

Read only

Former Member
0 Likes
798

Hi.

In PBO you need some coding as follow

1. Set screen-group1 on screen at "Groups" to 'GRP'

2. In PBO

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_9000.

*

module modify.

PROCESS AFTER INPUT.

  • MODULE USER_COMMAND_9000.

3. Module

module modify output.

loop at screen.

check screen-group1 = 'GRP'. "it is group's name that you have to set in each field on screen

screen-input = '0'.

modify screen.

endloop.

endmodule. " modify OUTPUT

Hope it help.

Sayan.