当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > Name 属性

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 Name 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 295 ::
收藏到网摘: n/a

The name attribute specifies a unique name for the <htmlreport> element.
name属性为<htmlreport>元素指定了一个独立的名称。

This enables the AppML Report Service to run a number of different reports based on the same AppML description.
它可以使AppML报告服务运行基于相同AppML描述的不同报告。

Example
案例

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
</database>

<htmlreport name="ten_most_expensive">
<title>10 MOST EXPENSIVE PRODUCTS</title>
<sql>
SELECT TenMostExpensiveProducts AS [Product Name],
UnitPrice AS [Price per Unit]
FROM [Ten Most Expensive Products]
ORDER BY TenMostExpensiveProducts
</sql>
</htmlreport>
<htmlreport name="category_sales_1997">
<title>CATEGORY SALES FOR 1997</title>
<sql>
SELECT CategoryName,CategorySales
FROM [Category Sales for 1997]
ORDER BY CategoryName
</sql>
</htmlreport>
</appml>

View the "Ten most expensive" report produced by the AppML HTML Report Service
查看由AppML HTML 报告服务输出的“Ten most expensive [最昂贵的十个]”报告

View the "Category sales 1997" report produced by the AppML HTML Report Service
查看由AppML HTML 报告服务输出的“Category sales 1997 [1997年销售目录]”报告

View the XML source file
查看XML 源文件


评论 (0) All

登陆 | 还没注册?