当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > AppML HTML 报告
The <htmlreport> element contains the elements of an HTML report.
<htmlreport>元素嵌套了一个HTML报告的元素。
By adding an <htmlreport /> element after the <database> element, the AppML Report Service will generate an HTML report based on the SQL defined in the <database> element:
通过在<database>元素之后添加一个<htmlreport />元素,该AppML报告服务将产生一个基于定义在<database>元素中SQL的HTML报告:
<?xml version="1.0" ?> <appml> <database> <htmlreport /> </appml> |
View the output produced by the AppML HTML Report Service
查看由AppML HTML 报告服务输出的结果
View the XML source file
查看XML 源文件
To create more advanced HTML reports, look at the examples in the attributes and sub elements below.
创建更多高级的HTML报告,见下面属性列表和二级元素列表中的案例。
The <htmlreport> element may have the following attributes:
<htmlreport>元素可以包含下列属性:
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
filters | off | Removes the filter function for the report 删除报告的过滤函数 |
name | name | Specifies a unique name for the <htmlreport> 为<htmlreport>指定一个独立的名称 |
redirect | ||
src | src | Defines a reference to an <htmlreport> element stored in an external AppML file 将一个参数定义在一个外部AppML文件中的<htmlreport>元素中 |
The <htmlreport> element may have the following child elements:
<htmlreport>元素可以包含下面的子元素:
Element 元素 | Description 描述 |
---|---|
break | Defines breaks in the report 在报告中定义换行符 |
footer | Defines a footer that will be displayed after the HTML report output on the page 定义一个显示在HTML报告结果页面之后的页脚 |
header | Defines a header that will be displayed before the HTML report output on the page 定义一个显示在HTML报告结果页面之前的页眉 |
section | Divides the report-data into sections 叫报告数据拆分成片断 |
stylesheet | Defines a stylesheet for the HTML report 为HTML报告定义一个样式表 |
sql | Defines an SQL statement for the HTML report 为HTML报告定义一个SQL语句 |
table | Provides a way to define the style and layout of the report table 提供一个定义样式和报告表布局的方式 |
title | Defines a title for the HTML report 为HTML 报告定义一个标题 |