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

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

APPML 中的 New 属性


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

For HTML list:
对于HTML列表:

The new attribute removes the "New" button from the HTML list.
new属性删除了HTML列表中的“New”按钮。

Note: The "New" button will not work in an editable HTML list if not the newlines attribute is specified OR the AppML description has an <htmlform> element.
注意:如果没有指定newlines属性或者AppML描述包含了一个<htmlform>元素,那么,“New”按钮将不能在一个可编辑的HTML列表中运行。

For HTML form:
对于HTML表单:

The new attribute disables the "New" button in the HTML input form
new属性取消了HTML输入表单中的“New”按钮的使用。

For both:
对于二者而言:

Note: The new="false" attribute is available in an editable HTML list AND in a regular HTML list IF an <htmlform> element also is presented.
注意:如果一个<htmlform>元素同样存在,那么,new="false"属性只能在一个可编辑的HTML列表和普通的HTML列表中使用。


Examples
案例

Remove the "New" button from the HTML list:
从HTML列表中删除“New”按钮:

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</database>
<htmllist edit="true" new="false" />
</appml>

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

View the XML source file
查看XML 源文件

Disable the "New" button in the HTML list and form :
取消HTML列表和标单中“New”按钮的使用:

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</database>
<htmllist new="false" />
<htmlform new="false" />
</appml>

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

View the XML source file
查看XML 源文件


评论 (0) All

登陆 | 还没注册?