GenerateHTMLForm

Description

Creates an HTML Form element containing columns for one or more rows in a DataWindow control or DataStore. This method also returns an HTML Style element containing style sheet information.

NoteObsolete method GenerateHTMLForm is obsolete and should not be used. The Web.PB functionality has been replaced by the Web DataWindow. The Web DataWindow generator component generates HTML and JavaScript to provide data entry, validation, and other DataWindow features.

For more information, see the DataWindow Programmer’s Guide and Working with Web and JSP Targets.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore object

Syntax

PowerBuilder

integer dwcontrol.GenerateHTMLForm ( string syntax, string style, string action { , long startrow, long endrow, integer startcolumn, integer endcolumn {, DWBuffer buffer } } )

Argument

Description

dwcontrol

The name of the DataWindow control or DataStore containing the DataWindow object whose contents are converted into HTML Form syntax.

syntax

String into which the method places HTML Form syntax. This value is passed by reference.

style

String into which the method places HTML style sheet. This value is passed by reference.

action

String specifying the ACTION attribute for the Form element.

startrow (optional)

Value specifying the first row to be converted to HTML Form syntax. The default is 1.

endrow (optional)

Value specifying the last row to be converted to HTML Form syntax. The default is the last row in the DataWindow.

startcolumn (optional)

Column number specifying the first column to be converted to HTML Form syntax. The default is the first column.

endcolumn (optional)

Column number specifying the last column to be converted to HTML Form syntax. The default is the last column.

buffer (optional)

A value of the dwBuffer enumerated datatype specifying the buffer from which the method converts rows. The default is the primary buffer.

For a list of valid values, see DWBuffer.

Returns

Returns 1 if the method succeeds and -1 if an error occurs.

If any argument is null, the method returns null.

See also