当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > keyfield
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>元素。
The <keyfield> element may have the following attributes:
<keyfield>元素可以包含下面的属性:
Attribute 属性 | Value 值 | Description 描述 |
---|---|---|
type | text | Defines that the primary key field is a text field 定义主键字段为文本字段 |
<?xml version="1.0" ?> <appml> <database> <htmllist /> </appml> |
View the output produced by the AppML HTML List and Form Service
查看由AppML HTML 报告服务输出的结果
View the XML source file
查看XML 源文件