Lotus 域类型(可编辑,计算,创建时计算、显示时计算)

本文详细介绍了文档中不同类型的字段,包括可编辑字段、计算字段、创建时计算字段及显示时计算字段的特点与应用场景。
Type of computed fieldFormula calculates

Edit

编辑

You choose whether a field is editable or computed in the field properties box, when you create the field. If a field is editable, a user can enter or change the value of the field. If a field is computed, a formula calculates the field value. Users can't change the values in a computed field. Number, date/time, authors, readers, and names fields are usually computed. Text, rich text, and choice list fields are usually editable.

当文档是编辑状态时,用户可以编辑此域的信息,该域的可编辑状态与文档相同。大部分域使用这种域,用于用户填写信息。

Computed

计算

A computed field formula calculates each time a user creates, saves, or refreshes a document.

该域类型在任何状态下都是不可编辑的,每次文档保存的时候,该域都会根据公式进行值的计算,然后将计算结果写到到文档对应的域值中,常用的。

Computed when composed

创建时计算

A computed-when-composed field formula calculates only once: when the user first creates the document. Use this type of formula in a field to preserve information about the origin of a document, such as the creation date or original author, or to create a field whose original value never changes, such as a document sequence number.

该域类型也是在任何状态下都是不可编辑的,创建文档的时候该域生成,并且在文本编辑的时候,该域不会随着文档的变化而重新进行计算。常用到的比如确定文档的创建者,只需要在域默认值中写入@username就OK,以后不管是谁编辑,该值永远是文档的创建者,这个是和普通计算域的区别。

Computed for display

显示时计算

A computed-for-display field formula recalculates each time a user opens or saves a document. Use this type of formula in a field to display information that is relevant only to the immediate session, such as the current time or the results of calculations that you don't need to save. The field value exists during the current session only and is not stored. You cannot display the contents of a computed­for­display field in a view

类似计算文本,当文档打开的时候,根据域中的公式现去计算该域的值。注意一点,显示时计算域,在文档保存时,不保存该域的真实值,永远是空,也就是说,你定义了一个显示时计算域,则只能在前台使用,后台(代理等)无法使用这个域。.

http://blog.youkuaiyun.com/chwxj/article/details/6589372



评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值