generateHTML

generateHTML(includeDefaultSessionInfo: Boolean;
             useControlNames:           Boolean;
             generateFormDataOnly:      Boolean;
             internetExplorerOnly:      Boolean): String;

When the generateHTML method of the Form class is called on a form object, it generates the HTML string for that form from the string returned from the receiver. You can then perform one of the following actions.

Use this method to reduce generation and Windows resource overhead in situations where the data seldom changes or it is not necessary to have the most current data available.

When the generateHTML method is called to generate an HTML string, the HTML is generated without word wrapping when the wordWrap property is set to false. Set this property to true if you want an HTML string in a table cell generated with word wrapping.

The parameters for the generateHTML method are listed in the following table.

Parameter Set this parameter to true if you want …
includeDefaultSessionInfo JADE to automatically generate the hidden fields that are sent with the form for session control.
useControlNames JADE to use control names instead of oids in the HTML generation. Note that control names may be duplicated when there are cloned controls that have not been given another name. If the control was an input field (for example, a text box), the Web browser will return multiple name-value pairs with the same names. It is your responsibility to handle this situation.
generateFormDataOnly JADE to generate only the HTML between the <FORM> and </FORM> tags, inclusive. You can then insert this string in a user template that sets up the header and footer parts of the Web page, for example.
internetExplorerOnly To generate Internet Explorer 4.0 (and above) specific code.

See also the Form class generateHTMLStatic method.