RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInetXPageProducer.OnBeforeGetXMLData Event

Occurs before the page producer fetches an XML data packet from an XML broker.

Pascal
property OnBeforeGetXMLData: TXMLDataEvent;
C++
__property TXMLDataEvent OnBeforeGetXMLData;

Write an OnBeforeGetXMLData event handler to take specific action immediately before the page producer requests an XML data packet from an XML broker. Typically, the OnBeforeGetXMLData event handler encodes any values for the provider on the application server as the OwnerData parameter or initializes properties on the XML broker that affect the data packet. 

When the page producer generates its HTML document (that is, when the Content method executes), it adds code to define the XML data packets manipulated in the document. To fetch these XML data packets, the page producer calls an XML broker's RequestRecords method. OnBeforeGetXMLData occurs immediately before the page producer requests an XML data packet. Any value assigned to the OwnerData parameter is passed to the XML broker's OnRequestRecords event handler, and from there to the provider's OnBeforeGetRecords event handler. 

 

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