‎2012 May 15 6:07 PM
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.
‎2012 May 15 6:20 PM
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
‎2012 May 16 1:19 AM
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?
‎2012 May 15 9:32 PM
‎2012 May 16 1:20 AM
‎2012 May 16 4:56 AM
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).