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

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

APPML 中的 field


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

The <field> element is used to specify criterion(s) for a data field.
<field>元素用于为一个数据字段制定标准。


<field>Attributes
<field>属性

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

Attribute
属性
Value
Description
描述
name fieldname Name of data field
数据字段的名称


<field> Child Elements
<field>子元素

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

Element
元素
Description
描述
<default>text</default> Inserts a default value for a field if the user leaves the specified field empty/blank
如果用户未在指定的字段中输入信息,那么将为字段插入一个默认值
<format>format</format> The format of the field. E.g. yyyymmdd
字段格式。例如:yyyymmdd
<group>
<field>fieldname</field>
<field>fieldname</field>
</group>
 
<initial>text</initial> When a user creates a new record this value will be inserted automatically into the specified field (This value will be changed and saved by the user)
当一个用户创建一条新的记录时,这个值将会被自动地插入指定的字段中(这个值将随着用户的保存而改变)
<onchange>
<function name="ucase" />
</onchange>
Turns the value of the field to uppercase letters
将字段的值转变为大写字母
<onchange>
<function name="selectfields">
<sql database="access/sql/oracle">SQL</sql>
</function>
</onchange>
 
<product>
<field>fieldname</field>
<field>fieldname</field>
</product>
Multiplies two fields
增加两个字段
<required /> The field is required (must be filled out by the user)
必要字段(用户必须填写)
<submit>false</submit> The field will not be saved when submitting the form
当提交表单时,不保存字段
<type>integer</type> The field is of type integer
整数型字段
<type>numeric</type> The field is numeric
数值型字段
<type>date</type> The field is a date field
日期型字段
<value>text</value> Specifies a fixed value for a field (This predefined value will be saved even if the user changes it)
为一个字段指定一个固定的值(即使用户改变它,它的预定义之也会被保存)


评论 (0) All

登陆 | 还没注册?