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

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

APPML 中的 orderselect


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

The <orderselect> element defines which fields the user can sort by at runtime.
<orderselect>元素定义了用户搜索的字段。

Note: The <orderselect> element will not work without one or more <query> elements defined.
注意:<orderselect>元素如果不包含一个或多个已定义的<query>元素,那么该元素将不会运行。

Note: The fields in the <orderselect> element must be presented in the SQL for the report/list.
注意:<orderselect>元素必须被放置在SQL中。


<orderselect> Child Elements
<orderselect>子元素

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

Element
元素
Description
描述
field Defines which data fields the user can sort by.
定义了用户搜索的字段

If you do not want to use the name of the data field you can add a label:
如果你不希望使用数据字段名称,你可以添加下面的标签:

<field name="datafield">label</field>

selected ?
direction ?


Example
案例

<?xml version="1.0" ?>
<appml>
<title>CUSTOMERS</title>
<database>
<connection>northwind</connection>
<sql>SELECT Companyname,ContactName,Country
FROM Customers</sql>
</database>
<filters>
<orderby>Companyname</orderby>
<query><field>Companyname</field></query>
<query><field>Country</field></query>
<orderselect> <field>Companyname</field> <field>Country</field> </orderselect> </filters>
<htmlreport />
</appml>

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

View the XML source file
查看XML 源文件

评论 (0) All

登陆 | 还没注册?