HtmlSave Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The HtmlSave method uses the current DATATABLE data to create HTML code in the format as specified by the style parameter. The method uses the following format:

 

[label]

{object}.HtmlSave

[GIVING {return}]:

 

 

 USING [[*FileName=]{filename}][:

 

 

[*Style=]{style}][:

 

 

[*Options=]{options}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

Optional. A Character String Variable that returns the generated HTML code.

filename

Optional. A Character String Variable or literal that specifies a file name to be written with the generated HTML code.

style

Optional. A Numeric Variable or decimal number that specifies the format used as described below.

options

Optional. A Numeric Variable or decimal number to control the behaviors of this method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The {filename} and {options} parameters are implemented for future use.

  2. The EOS flag is set if the {return} variable is too small and the return data must be truncated.

  3. The ZERO and OVER flag are always cleared.

  4. The style specifies the type of HTML output to be generated. The supported styles are defined as follows:

  5.  

    Value

    Constant

    Meaning

    1

    $TBL_HTML_LISTVIEW

    Default if style is not used

    2

    $TBL_HTML_CARDS

    Cards

 

 

See Also: Method Syntax, DATATABLE Methods

 



PL/B Language Reference HtmlBind Method (DATATABLE) HtmlUpdate Method (DATATABLE)