RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterPageProducer Class

TAdapterPageProducer generates the proper HTML and server-side script needed to display adapter fields and execute adapter actions.

Pascal
TAdapterPageProducer = class(TCustomAdapterPageProducer);
C++
class TAdapterPageProducer : public TCustomAdapterPageProducer;

TAdapterPageProducer creates an HTML page using content it obtains from a hierarchy of components called Web items. Add components to this hierarchy to define HTML forms and tables. For example, to create an HTML form with a grid, add a TAdapterForm and TAdapterGrid components. The Web items that appear in the TAdapterPageProducer's hierarchy use Adapter components to fetch the information that they display. 

Use the Web Page Module wizard to create a web page that uses the TAdapterPageProducer. You can select TAdapterPageProducer from the drop-down list at the top of the Web Page Module wizard, or add a TAdapterPageProducer component to an existing web page modue. 

Web page modules that use the TAdapterPageProducer provide an editor view called HTML Script. Use this view to see the HTML Script that TAdapterPageProducer generates. The script generated by TAdapterPageProducer is not editable. However, you can copy the generated script from the HTML Script view to a new Web Page Module. You can then edit the copy of the script in the code editor or with an external HTML editor that supports embedded script tags (for example <% %>). 

TAdapterPageProducer uses a template that contains the following special tags: 

<#STYLES> - This tag is replaced by the stylesheet defined by the Styles or StylesFile property. 

<#WARNINGS> - This tag is replaced with design time warnings that indicate possible problems with the hierarchy of web items. 

<#SERVERSCRIPT> - This tag is replaced with the generated HTML/JavaScript. The TAdapterPageProducer will not generate any content if this tag is missing. 

 

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