Data.XMLWeb DataWindow object property
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.
Controls
DataWindows
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.DataWindow.Data.XMLWeb |
Describe argument:
|
1 |
"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.
For more information about JavaScript caching, see the DataWindow
Programmers Guide.
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.
|
1 |
string ls_transform<br>dw1.Modify("DataWindow.Export.XHTML.UseTemplate =<br>   't_report'")<br>ls_transform = dw1.Object.DataWindow.Data.XMLWeb |