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

Dialog Programming with list-processing

Former Member
0 Likes
538

Hi,

I have a requirement to display an output in classic list report. This report will have a button at the top that will direct you to another classic list report when clicked. I created a screen with button. I called this screen in the END OF SELECTION part of my program. In the PBO of my screen, I put in the codes with WRITE statements. I used LEAVE TO LIST-PROCESSING and SUPPRESS DIALOG before the write statements so I can write in the screen. The problem is, when I click on my button, it does not go to the PAI. During debug, after all the WRITE statements, it gets out of the call screen already. The PAI is not processed.

Can anyone show me how to do this correctly?

Thanks,

Lalyn

2 REPLIES 2
Read only

MarcinPciak
Active Contributor
0 Likes
418

Hi,

As you suppress the dialog it is only displayed once (its PBO is executed only once) then it end its life. With LEAVE TO LIST-PROCESSING you are now in classical list, so any action which takes place here should be handled with AT USER-COMMAND event block. PAI doesn't get trigger as the screen is suppressed already.

This should help

Regards

Marcin

Read only

Former Member
0 Likes
418

At user command event block can help.