Generates the inline content for the XHTML Web DataWindow. This method is for use with JSP targets only.
PSDataWindowClass and PSWebDataWindowClass objects
DWObject.GenerateXHTML({page[ ] variables})
Argument |
Description |
---|---|
DWObject |
A variable that contains a reference to an instance of PSDataWindowClass or PSWebDataWindowClass. |
page |
An array for passing page variables for objects of type PSDataWindowClass. The page variables must be defined as String datatypes. |
Integer. 1 indicates success, and -1 indicates failure.
At runtime, GenerateXHTML performs the tasks required to generate the dynamic XHTML, including retrieving the action context and generating the XHTML inline. Connection errors, including database error messages, are also generated inline.
The following table shows when it is best to use the HTML, XHTML, or XML Web DataWindow:
HTML Web DataWindow use |
XHTML Web DataWindow use |
XML Web DataWindow use |
---|---|---|
When the HTMLGen.PageSize property is not assigned a value (row count per page changes) |
When you want more industry-standard Web pages than HTML can provide and the ability to customize pages using an XHTML export template |
When the HTMLGen.PageSize property is assigned a value (row count per page stays the same), and you want industry-standard Web pages and the ability to customize pages using an XHTML export template |
Small amounts of data |
Small amounts of data |
Large amounts of paged data |
In the following example, the DataWindow object htmlDwObj1 generates XHTML and maintains the page variables called “MyParam1” and “MyParam2”:
htmlDwObj1.GenerateXHTML("MyParam1", "MyParam2");