Description
A string containing the row data content of the DataWindow object in XHTML format.
Obsolete property
Data.XHTML 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.XHTML
Describe argument:
"DataWindow.Data.XHTML"
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 XHTML document to the string ls_XHTML. To generate the string, the final statement invokes the XML Web DataWindow generator to generate the XHTML, CSS, and JavaScript components, applying the t_report template to the generated XHTML and CSS style sheet.
string strXHTML dw1.Modify("DataWindow.Export.XHTML.UseTemplate = 't_report'") strXHTML = dw1.Describe("DataWindow.Data.XHTML")