RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
MidProd.TXMLDataEvent Type

TXMLDataEvent is the type of event handlers that occur when an InternetExpress page producer adds an XML data packet to its HTML document.

Pascal
TXMLDataEvent = procedure (Sender: TObject; Request: TWebRequest; XMLBroker: TXMLBroker; var OwnerData: OleVariant) of object;
C++
(Sender: TObject; Request: TWebRequest; XMLBroker: TXMLBroker; var OwnerData: OleVariant) ( TXMLDataEvent)();

TXMLDataEvent is the type for event handlers that occur before and after an InternetExpress page producer translates a DATAPACKET tag into a string of XML.  

Sender is the InternetExpress page producer that is creating an HTML document containing the XML data packet.  

Request is the request message in response to which the InternetExpress page producer is creating the HTML document.  

XMLBroker is the XMLBroker that fetches the XML data packet from the application server and returns it to the InternetExpress page producer.  

OwnerData is application-specific information that allows the InternetExpress page producer to communicate with the XMLBroker and with the provider on the application server. Typically, this parameter is used to communicate persistent state information when the application server is stateless. If the event handler is used for an OnBeforeGetXMLData event, the event handler creates and returns a value in OwnerData which is passed to the XMLBroker's OnRequestRecords event handler, and from there passed to the provider on the application server. If the event handler is used for an OnAfterGetXMLData event, OwnerData is set to the value returned by the provider on the application server on entry into the event handler and is ignored on exit. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!