Bde.DBBdeWeb.TQueryTableProducer.Content

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Content: string; override;

C++

virtual System::UnicodeString __fastcall Content();

Description

Returns the HTML representation of the query results.

Call Content to run the query with the parameters taken from the HTTP request message and retrieve the resulting HTML representation. If the MethodType of the request is mtGet, the parameters for the query are the QueryFields property of the request. If the MethodType of the request is mtPost, the parameters for the query are the ContentFields property of the request.

After running the query, Content calls the OnCreateContent event handler. If the OnCreateContent event handler indicates that the Content method should continue, Content returns the Header property, followed by an HTML table image of the records in the query, followed by the Footer property. If the OnCreateContent event handler indicates that the Content method should not continue, Content returns an empty string.

The string returned by Content can be used as the Content property of the response object associated with the request message.

See Also