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

trigger screen PAI

former_member533538
Participant
0 Likes
1,546

Hi experts,i create a dialog program with 1 main screen 1300,6 subscreens,the main screen has a button 'Display' and 'Edit' function code,my requirement is like this:if i am working in one subscreen 1302 with edit staus,then i click display button,it would pop up a save confirm box with 'yes' 'no' 'cancle' button,if i click 'yes' button, i want the program go through the subscreen 1302 PAI flow logic,how can i archive it? now the program only trigger  screen 1302 PAI when i click 'display' button,thanks.

5 REPLIES 5
Read only

Clemenss
Active Contributor
0 Likes
890

Hi damon leung,

if your subscreen calling logic is implemented correctly then it should work, but what? You want a pop up save confirm box in 1302 PAI, but you say 1302 PAI is triggered when you click 'display'. So what is the question?

Do you have the CALL SUBSCREEN in PBO and PAI of main screen?

Regards

Clemens

Read only

0 Likes
890

Hi clemens,because the user said he need to show error check message after click 'YES' save confirmation button,no need to show message when he click 'display' button.since the YES click event is always after display click event,so my questoin is whether we can trigger 1302 PAI after i click YES button or not?

Read only

Former Member
0 Likes
890

do you have an FCODE assigned to the EDIT function?

Read only

0 Likes
890

yes,EDIT has been assigned FCODE.

Read only

Former Member
0 Likes
890

Hi,

In flow logic of main screen 1300.

PROCESS BEFORE OUTPUT.

  MODULE STATUS_1300.
CALL SUBSCREEN:SA1 INCLUDING PROGRAM '1302',

                                SA2 Including program '1303'.
   PROCESS AFTER INPUT.

CALL SUBSCREEN :SA1,

                                 sa2.
   MODULE USER_COMMAND_1000.

If you want to trigger PAI flowlogic of 1302 screen i.e., subscreen you need to write call subscreen in pai of main screen.(which is shown in above code).