‎2006 Sep 22 2:48 PM
Hi,
I am calling next screen in PAI using the following code.
CALL SCREEN 500 starting at 5 5
ending at 20 20.
In new screen 500 the default button ( 'X' Button on top-right corner) for 'CLOSE WINDOW' is not working.
How can I make it active.
Thanks in advance.
Jaison.
‎2006 Sep 22 3:00 PM
Hi,
in pf-status define function code
as E Exit command (MODULE xxx AT EXIT-COMMAND)
Regards
amole
‎2006 Sep 22 2:53 PM
in the PAI of that screen,
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
MODULE CANCEL INPUT.
SET SCREEN 0.
ENDMODULE.
‎2006 Sep 22 2:55 PM
Hi,
you need to make a PF-STATUS for this Winodw, in that you need to create a Cancel button and write the code for that button, i mean in the PAI event, write the leave screen or Call screen <No>.
Regards
Sudheer
‎2006 Sep 22 3:00 PM
Hi,
in pf-status define function code
as E Exit command (MODULE xxx AT EXIT-COMMAND)
Regards
amole
‎2006 Sep 22 3:02 PM
Hi,
SET PF-STATUS 'ZABC'.
Double click on ZABC, goto the Menu bar and On the Cancel button, write CANCEL. Double click the ICON and type the Function Text as CANCEL.
Activate the Pf-status.
In the PAI write
AT USER-COMMAND.
CASE OKCODE.
WHEN 'CANCEL'.
leave to screen 0.
ENDCASE.
Best regards,
Prashant