GenerateXHTML – PB Docs 126

GenerateXHTML method (DataWindows)

Description

Generates the
inline content of the Web DataWindow in XHTML.

Controls

DataWindow type

Method applies to

Web

Server component

Syntax

[Web DataWindow server component]

Argument

Description

dwcontrol

The name of the server-side DataWindow
control you want to generate in XHTML.

page

An array for passing page variables.
The page variables must be defined as String datatypes.

Return Values

Integer. 1 indicates success, and –1 indicates failure.

Usage

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.

For information about the advantages and limitations of each
rendering format, see the DataWindow Programmers Guide.

The GenerateXHTML method delivers the DataWindow
in XHTML to the client browser and it generates a CSS style sheet
and JS files that are cached on the client side and referenced in
the XHTML source.

Examples

The following JSP example specifies subdirectories
of the current application directory to publish the CSS and JS components
of the Web DataWindow and generates the DataWindow in XHTML:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x