当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > AppML XML 报告

APPML
AppML 简介
AppML 案例
AppML 案例说明
AppML 网络服务
案例研究简介
案例研究:数据库
案例研究:AppML
案例研究:HTML 报告
案例研究:HTML 表单
案例研究:目录
案例研究:产品
案例研究:托运人
案例研究:供应商
案例研究:客户
案例研究:雇员
案例研究:应用程序
案例研究:下载
AppML FAQ
AppML 文档
AppML 数据库元素

APPML 中的 AppML XML 报告


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

The <xmlreport> element contains the elements of an XML report.
<xmlreport>元素嵌套了XML报告元素。


The <xmlreport> Element
<xmlreport>元素

By adding an <xmlreport /> element after the <database> element, the AppML XML Report Service will generate an XML report based on the SQL defined in the <database> element. The AppML XML report root element is <table>. The first element after <table> is <sql>, which lists the SQL used in the description. Then there will be one <row> element for each record in the SQL. The <row> element contains one element for each field in the SQL:
通过在<database>元素之后添加一个<xmlreport />元素,该AppML XML报告服务将产生一个基于定义在<database>元素中SQL的XML报告;AppML XML 报告的根目录是<table>;在<table>之后的第一个标签是<sql>,它罗列了在描述中使用的SQL。此时,在SQL的每天记录之中都会出现一个<row>元素。<row>元素在SQL的每个字段中嵌套了一个元素:

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</database>
<xmlreport />
</appml>

View the output produced by the AppML XML Report Service
查看由AppML HTML 报告服务输出的结果

View the XML source file
查看XML 源文件

To create more advanced XML reports, look at the examples in the attributes and child elements below.
创建更多高级的XML 报告,见下面的属性案例和子元素列表中的案例。


<xmlreport> Attributes
<xmlreport>属性

The <xmlreport> element may have the following attributes:
<xmlreport>元素可以包含下面的属性:

Attribute
属性
Value
Description
描述
name name Specifies a unique name for the XML report. This enables the AppML Report Service to run a number of different reports from the same AppML description
为XML 报告指定一个独立的名称。这可以使得AppML报告服务运行一组来自于相同AppML描述的不同的报告
src src Defines a reference to an <xmlreport> element stored in an external AppML description file
将一个参数定义在一个外部AppML描述文件中的<xmlreport>元素中


<xmlreport> Child Elements
<xmlreport>子元素

The <xmlreport> element may have the following child elements:
<xmlreport>元素可以包含下面的子元素:

Element
元素
Description
描述
sql Defines an SQL statement for the XML report
为XML报告定义一个SQL语句


评论 (0) All

登陆 | 还没注册?