Data.XMLWeb (obsolete)

Description

A string containing browser-specific JavaScript that performs the XSLT transformation on the browser after the XML Web DataWindow generator generates all necessary components.

Obsolete property

Data.XMLWeb is obsolete and should not be used, because the Web DataWindow technology is obsolete.

The Web Generation tab and JavaScript Generation tab are preserved for the backward compatibility only.

Applies to

DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.Data.XMLWeb

Describe argument:

"DataWindow.Data.XMLWeb"

Usage

If any of the Export.XHTML properties have been set, the string that is generated reflects the values of these properties.

The resulting XHTML string contains a <form> element that supports data input, which works with separate client scripts for data validation and events.

This JavaScript is either dynamically generated and/or statically deployed. To generate static JavaScript, select HTML/XHTML from the Format to Configure drop-down list on the JavaScript Generation page in the DataWindow painter Properties view, specify names for the files you want to generate, and click the Generate File button.

The generated XHTML string also includes:

  • XHTML input elements

  • XHTML and JavaScript for navigation based on DataWindow button controls with scrolling actions

  • State information about the modification status of data items

JavaScript for navigation passes the state of the DataWindow back to the page server in two variables: objectname_action and objectname_context. It also passes back any page parameters defined in the HTMLGen.SelfLinkArgs property. All applicable HTMLGen.property values also affect the way the XHTML is generated.

The resulting XML Web DataWindow is a client-side control for a Web page, such as a JSP page, with events and methods that can cooperate with a server component for a Web-based data entry application.

Examples

The following statements set the template used by the DataWindow dw1 to t_report and return the generated XSLT transformation to the string ls_transform. To generate the string, the final statement invokes the XML Web DataWindow generator to generate the XML, XSLT, CSS, and JavaScript components, applying the t_report template to the generated XSLT and CSS style sheet.

string ls_transform
dw1.Modify("DataWindow.Export.XHTML.UseTemplate = 't_report'")
ls_transform = dw1.Object.DataWindow.Data.XMLWeb