Progress
Open Client
Developer’s Guide
Cancelling a Request
AppObjects, SubAppObjects, and ProcObjects have a
_cancelAllRequests()
method that a client can call to:The
_cancelAllRequests()
method operates on a request according to its state as follows:
- QUEUED — Cancels the request and throws an Exception.
- RUNNING — Forwards a STOP request to the 4GL interpreter, which handles it according to normal 4GL STOP condition rules.
- STREAMING — Initiates the close of any currently open output result sets, but does not call the
close()
method. You must then execute theclose()
method on all affected output result sets to complete the closure. For large result sets, this is more efficient than using theclose()
method alone. For more information on theclose()
method, see the "Passing TEMP-TABLE Or TABLE-HANDLE Parameters" section.NOTE: If there are no requests in the following states when you execute_cancelAllRequests()
, the method has no effect.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |