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: 

call screen and status

Former Member
0 Kudos

Normally when I call screen in a report and when I execute it, on the output I am able to see the status for this screen. (like I can see 'SAVE', 'CANCEL', 'EXIT' etc buttons enabled on standard tool bar).

But when I call screen using statment like:

CALL SCREEN 6000 STARTING AT 1 1

ENDING AT 50 10.

(Even though I declared the attributes of the screen as Normal or dialgoue box), I am not able to see any of the status as above. Can you tell me what could be the reason? What should I do to get those status when using the above statement also? (like starting at and ending at).

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If you are writing a normal report, then the default status will come up. But if you change, either the screen or the default status, then you will have to handle them yourself.

Define a status as a copy of the standard one and then make the necessary changes to it, by removing the unnnecessary ones. Then for the ones you left, you will need to code in your PAI user_command logic. Like below

WHEN 'BACK' or 'CANCEL'.

SET SCREEN 0. LEAVE SCREEN.

3 REPLIES 3

Former Member
0 Kudos

If you are writing a normal report, then the default status will come up. But if you change, either the screen or the default status, then you will have to handle them yourself.

Define a status as a copy of the standard one and then make the necessary changes to it, by removing the unnnecessary ones. Then for the ones you left, you will need to code in your PAI user_command logic. Like below

WHEN 'BACK' or 'CANCEL'.

SET SCREEN 0. LEAVE SCREEN.

0 Kudos

You need to recreate the gui status, this time create it as a status for Modal Dialog box, instead of online. THis will show your buttons in the dialog box.

Regards,

Rich Heilman

Former Member
0 Kudos

hi nuren,

this is satish .hey for ur question i have thought of two possible ways first thing you set a menu for this as (set pf status 'menu1' in PBO and in standard tool bar give a function code for save ,exit ,cancel and write a function code in program for that code in PAI by opening a module.

try this process or else i will tell second process if u donot get this .ok

satish raju

B.Tech

91-9948054163

hyderabad.