HTMLDW

Description

Specifies whether HTML generated for the DataWindow object provides updates and interactivity.

Applies to

DataWindow objects

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.HTMLDW = value

Describe and Modify argument:

"DataWindow.HTMLDW { = ' value ' }"

Parameter

Description

value

The value to be assigned to the property. Value can be a quoted DataWindow expression.

Values are:

  • Yes – DataWindow HTML generation uses the HTMLGen properties.

  • No – DataWindow HTML generation is a read-only. table as described for the Data.HTMLTable property.

Usage

When HTMLDW is set to Yes, the generated HTML supports data entry and takes advantage of browser features that enable user interaction when used with a page server (as described for the Data.HTML property). The generated HTML can be used to produce a page that displays a subset of retrieved rows and can include JavaScript code requesting additional pages with other subsets of the retrieved rows.

The resulting HTML can be used as a Web DataWindow control, which is a cooperation between a server component, a page server, and a client Web browser. The server component produces the HTML and the page server incorporates it into a Web page.

NoteHTMLDW set to Yes The HTMLDW property is set to Yes automatically when you create an instance of the generic Web DataWindow server component (DataWindow/HTMLGenerator120 for EAServer). In this case, you do not need to set this property in the DataWindow painter or in a script.

The user interacts with the DataWindow in the client browser, and actions produced by buttons in the DataWindow object are sent back to the page server. The page server calls methods of the server component to request processing for the data in the DataWindow object, including applying actions, updating data, and scrolling to other subsets.

For more information, see the DataWindow Programmers Guide. To affect the level of DataWindow features in the resulting HTML, or to produce master/detail links between two Web DataWindow controls, see HTMLGen.property.

DataWindow features that will not be rendered into HTML include:


In the painter

Select the DataWindow object by deselecting all controls; then select or clear the Web DataWindow check box on the General tab in the Properties view.

Examples

Example 1

dw1.Object.DataWindow.HTMLDW = "yes"

Example 2

setting = dw1.Describe
		("DataWindow.HTMLDW")

Example 3

dw1.Modify("DataWindow.HTMLDW = 'yes'")