当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > AppML 案例说明

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

APPML 中的 AppML 案例说明


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

This chapter explains the main parts of the AppML description from the previous chapter.
这章将讲述来自于前一章的AppML描述的主要部分。


AppML Example
AppML案例

The XML file below is the AppML description from the previous chapter:
下面的XML文件是前一章关于AppML的描述:

<appml>
<title>CUSTOMERS</title>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>
Select CompanyName, City, Country from Customers
</sql>
</database>
<filters>
<query>
<field>CompanyName</field>
</query>
</filters>
<htmlform />
<htmllist />
<htmlreport />
</appml>

An AppML description always starts with <appml> and ends with </appml>. The description must be saved as an XML file (.xml).
一个完整的AppML描述通常以<appml>开始,以</appml>结束。该描述必须以XML文件(.xml)存储。

The <title> element defines a default title for the application.
<title>元素为应用程序定义了一个默认的标题。

The <database> element contains information about the database connection.
<database>元素包含了关于数据库链接的信息。

The <filters> element defines a search function for the application.
<filters>元素为应用程序定义了一个搜索函数。

The <htmlform /> element defines support for a standard HTML input form.
<htmlform />元素定义了对标准的HTML输入表单的支持。

The <htmllist /> element defines support for a standard HTML list.
<htmllist />元素定义了对标准HTML列表的支持。

The <htmlreport /> element defines support for a standard HTML report.
<htmlreport />元素定义了对标准HTML报告的支持。

With AppML you can also define your own HTML forms, HTML lists, and HTML reports, to make your AppML applications look and function exactly the way you want.
通过AppML,你也可以定义你自己的HTML表单,HTML列表和HTML报告,从而使你的AppML应用程序符合你所期望的外观和功能。

Note: Each element in an AppML description will be explained in detail in the AppML case study and in the AppML reference.
注意:每个AppML描述元素都将在AppML案例学习和AppML参考中作详细解释。


评论 (0) All

登陆 | 还没注册?