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

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

APPML 中的 keyfield


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

The <keyfield> element defines the primary key of the main table.
<keyfield>元素定义了主表格中的主键。

The <keyfield> element is used by the AppML Form Service to define how to update the database.
<keyfield>元素是被AppML表单服务所用来定义数据库的更新方式的。

Note: The primary key field is numeric by default.
注意:主键字段默认为数值型。

Note: When working with AppML HTML forms, you must always define the <maintable> and <keyfield> elements.
注意:当与AppML HTML 表单一起使用时,你必须定义<maintable> 和 <keyfield>元素。


<keyfield> Attributes
<keyfield>属性

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

Attribute
属性
Value
Description
描述
type text Defines that the primary key field is a text field
定义主键字段为文本字段


Example
案例

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<maintable>suppliers</maintable>
<keyfield>supplierid</keyfield> <sql> SELECT CompanyName,ContactName,Address,City FROM Suppliers </sql> </database>
<htmllist />
<htmlform />
</appml>

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

View the XML source file
查看XML 源文件


评论 (0) All

登陆 | 还没注册?