GenerateXMLWeb – PB Docs 150

GenerateXMLWeb method (DataWindows)

Description

Generates the
XML content and the XSLT and CSS style sheets for a Web DataWindow,
which is transformed to XHTML on the client side.

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

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

The GenerateXMLWeb function uses the resource
base and publish paths for a DataWindow object to determine where
it generates XML, XSLT, CSS, and JS files. If a resource base or
a publish path is not specified for a DataWindow object, the GenerateXMLWeb function
creates a TEMP directory on the server where the XML, XSLT, CSS,
and JS files are stored.

At design time, you can override the resource base and publish
paths by making Modify calls on the DataWindow
object in the Source view before you call GenerateXMLWeb.
The following example creates separate subdirectories for XML, XSLT,
CSS, and JS files:

At runtime, the client browser displays an XHTML page that
it transforms from XML using XSLT applied with CSS and JS files
that it gets initially from the server. However, in most cases,
after the initial loading of the page, the client does not need
to go back to the server to obtain layout (XSLT) or styling (CSS)
information, as these remain in the browser’s cache. This
provides greater efficiency and scalability for your Web applications.

Examples

In the following example, the Web DataWindow component
generates the XML document, XSLT and CSS style sheets, and JS files
for the content, structure, styling, and client-side functionality
of the Web DataWindow:

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