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

APPML
AppML 简介
AppML 案例
AppML 案例说明
AppML 网络服务
案例研究简介
案例研究:数据库
案例研究:AppML
案例研究:HTML 报告
案例研究:HTML 表单
案例研究:目录
案例研究:产品
案例研究:托运人
案例研究:供应商
案例研究:客户
案例研究:雇员
案例研究:应用程序
案例研究:下载
AppML FAQ
AppML 文档
AppML 数据库元素

APPML 中的 keyfield


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 317 ::
收藏到网摘: 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

登陆 | 还没注册?