Progress 9.1C
Windows XP
HP-UX running Unix
I am attempting to run a program using AppServer, asynchronously. Here's what my code looks like...
* On a window, I have an "OK" button with the following code:
/*** Run Report Program ***/
run clientProgram.p persistent (input value-1, input value-2).
message "..." view-as alert-box.
apply 'close' to this-procedure.
* In the clientProgram.p procedure, the main block contains:
/*** Connect To AppServer ***/
{appserver.i}
/*** Run Report Program ***/
run report.p on hAppSrv asynchronous set hASynch
event-procedure "report-done" in this-procedure
(input value-1, input value-2, output rptDone) no-error.
And the report-done procedure contains:
define input parameter xdone as logical no-undo.
if hSynch:error or
hSynch:stop then
message "ERROR" view-as alert-box error.
else
message "Success" view-as alert-box.
hAppSrv:disconnect().
delete object hAppSrv.
delete object this-procedure.
The problem I'm getting is that once the window procedure with the "OK" button is closed and the user goes to do something else, when the report.p program on the server finishes, I get the error message "Procedure [whatever program the user is in] has no entry point for report-done".
This is my first attempt at an asynchronously called program. What am I missing or doing wrong?
Any answers welcome.
Windows XP
HP-UX running Unix
I am attempting to run a program using AppServer, asynchronously. Here's what my code looks like...
* On a window, I have an "OK" button with the following code:
/*** Run Report Program ***/
run clientProgram.p persistent (input value-1, input value-2).
message "..." view-as alert-box.
apply 'close' to this-procedure.
* In the clientProgram.p procedure, the main block contains:
/*** Connect To AppServer ***/
{appserver.i}
/*** Run Report Program ***/
run report.p on hAppSrv asynchronous set hASynch
event-procedure "report-done" in this-procedure
(input value-1, input value-2, output rptDone) no-error.
And the report-done procedure contains:
define input parameter xdone as logical no-undo.
if hSynch:error or
hSynch:stop then
message "ERROR" view-as alert-box error.
else
message "Success" view-as alert-box.
hAppSrv:disconnect().
delete object hAppSrv.
delete object this-procedure.
The problem I'm getting is that once the window procedure with the "OK" button is closed and the user goes to do something else, when the report.p program on the server finishes, I get the error message "Procedure [whatever program the user is in] has no entry point for report-done".
This is my first attempt at an asynchronously called program. What am I missing or doing wrong?
Any answers welcome.