RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLBroker.OnGetErrorResponse Event

Occurs when there are errors applying updates to the application server.

Pascal
property OnGetErrorResponse: TGetErrorResponseEvent;
C++
__property TGetErrorResponseEvent OnGetErrorResponse;

Write an OnGetErrorResponse event handler to generate the response message after an update request encountered errors or to initialize a ReconcileProducer before it generates the response. 

The Sender parameter is the XML broker that applied updates to the application server and received back a delta packet of update errors. 

ErrorCount is the number of update errors found by the application server before it halted the update operation. 

XMLErrors is a string of XML returned by the application server. It is a delta packet containing all the updates that could not be applied. 

Request is the original request message that contains the delta packet of updates from the Web browser. 

Response is the emerging response message that will be sent to the Web browser in response to the update request. Fill in the properties of this object to generate a response (such as an error message or a reconcile form) that indicates the errors in XMLErrors. 

Handled indicates whether the event handler completed filling out Response. Set Handled to true if the event handler completes the response for the Web browser. Leave Handled as false if ReconcileProducer should generate the content of Response.

Note: If the OnGetErrorResponse event handler does not set Handled to true and there is no ReconcileProducer, the XML broker raises an exception.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!