Using -HTMLFORM

In the deployment environment, the -HTMLFORM command enhances the functionality of your webpage by enabling you to include HTML commands in your procedures. You can use all standard HTML elements in your webpage, 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 Display Two Tabular Reports in an HTML Page
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

The -HTMLFORM command runs the specified .HTM file located on the WebFOCUS Reporting Server path. The following example displays the two tabular reports in an HTML page. The HTML page that will be distributed is shown in the following image.

HTML tabular reports image


WebFOCUS