[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Cancel Request From...

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
I’m still thinking about what good /useful behavior for Cancel would be – especially what happens after the code says “Cancel”. (so should we return an error? Should we return what’s in the Response already? Just stop and assume you’ve done it all? Or something else – there is an OperationError event; I’m thinking that there could be an OperationCancel to give you control of that). Regardless of that though … - You should be able to just set the value of the Error property to an instance of a (say) AppError. The DOH’s HandleException method will take care of turning it into JSON or whatever. - You cannot set the StatusResponse in code at the moment (the DOH does it already and I believe that PASOE doesn’t pass it along either) , so don’t bother with that. - You should NOT use the WebResponseWriter yourself, the DOH will call it later and you may see odd messages in your logs (or weird double-headered responses in your client).

Continue reading...
 
Status
Not open for further replies.
Back
Top