An object reference to a Progreses.Lang.OERequestInfo class that provides information returned from an AppServer about its response to an AppServer client request.
Data type:
Access:
Applies to:
Note: The object reference returned by this attribute is of type Progress.Lang.Object. In order to access the OERequestInfo properties of this instance, you must cast any reference to this attribute down to a Progress.Lang.OERequestInfo reference.The following code fragment retrieves the client context identifier (CCID) that is returned from a call to the remote procedure, remote.p:
DEFINE VARIABLE hAppSrv AS HANDLE NO-UNDO.DEFINE VARIABLE ccid AS CHARACTER NO-UNDO.DEFINE VARIABLE rRspInfo AS Progress.Lang.OERequestInfo NO-UNDO.CREATE SERVER hAppSrv.hAppSrv:CONNECT( ).RUN remote.p ON SERVER hAppSrv.rRspInfo = CAST(hAppSrv:RESPONSE-INFO, Progress.Lang.OERequestInfo).ccid = rRspInfo:ClientContextId.You can also access this attribute from inside of an ABL event procedure that runs when an associated asynchronous remote procedure call completes. This attribute is read-only on the asynchronous request object handle that you access within the event procedure using the SELF system handle.The following code fragment defines an event procedure (AsynReqIsDone) that you might use to access this attribute in response to an asynchronous remote procedure call:
DEFINE VARIABLE ccid AS CHARACTER NO-UNDO./* Assume the following procedure has been specified as the *//* event procedure for an asynchronous remote procedure call */PROCEDURE AsynRqIsDone:DEFINE VARIABLE rRspInfo AS Progress.Lang.OERequestInfo NO-UNDO.rRspInfo = CAST(SELF:RESPONSE-INFO, Progress.Lang.OERequestInfo).ccid = rRspInfo:ClientContextId.DELETE OBJECT SELF.END.This event procedure accesses the CCID that is returned from the AppServer and assigns the value to the ccid variable defined in the enclosing external procedure.
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |