Using -HTMLFORM

In the deployment environment, the -HTMLFORM command enhances the functionality of your Web page by enabling you to include HTML commands in your procedures. You can use all standard HTML elements in your Web page, including character styling, hyperlinks, graph images, tables, forms, and frames. The content must be self-contained in a single answer set.


Top of page

Example: Using -HTMLFORM to Save Two Tabular Reports in an HTML Form
TABLE FILE CENTORD
SUM
   LINEPRICE
BY
   PRODCAT AS 'Product Category'
HEADING
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLE *
.....
.....
ENDSTYLE
ON TABLE HOLD AS HOLD1 FORMAT HTMTABLE 
END
TABLE FILE CENTORD
SUM LINEPRICE AS 'Sales'
BY STORE_CODE AS 'Store'
BY PRODCAT AS 'Category'
WHERE STORE_CODE EQ '4003NY' OR
STORE_CODE EQ '1003CA'
HEADING
" "
" "
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLE *
.....
.....
ENDSTYLE
ON TABLE HOLD AS HOLD2 FORMAT HTMTABLE 
END 
-HTMLFORM SALES

After you use the -HTMLFORM command to save two tabular reports in an HTML form, ReportCaster can distribute the form. Two tabular reports in an HTML form are shown in the following image.

HTML tabular reports image


WebFOCUS