DbLookup的使用方法

@DbLookup("":"NoCache";"":path; "AllUsersList";@Name([CN];@UserName);3);
@DbLookup( class : cache ; server : database ; view ; key ; fieldName ; keywords )

@DbLookup( class : cache ; server : database ; view ; key ; columnNumber ; keywords)

Class:指明数据库的类型,如果是DOMINO数据,填写"" or "Notes"

Cache:

• "" (null string) caches the results of the lookup. Each subsequent lookup to the same location (within the same Domino session and so long as the database executing this lookup remains open) reuses that data until you specify "ReCache." Cached data improves performance and may be a good choice for stable data.

• "ReCache" refreshes the cache with the latest data from the database. If you want to ensure that this lookup gets the latest information, specify this option.

• "NoCache" gets the results of the lookup from the database; no cache is used. If you want to ensure that Lotus Domino retrieves the latest information for every lookup, specify this option.

Keyword. Optional. Keywords can be concatenated.

• [FAILSILENT] returns "" (null string) instead of an error if the key cannot be found.

• [PARTIALMATCH] returns a match if the key matches the beginning characters of the column value.

• [RETURNDOCUMENTUNIQUEID] returns the UNID of the document instead of a field or column value.

 

注:使用此条命令需要对第一列排序。而dbcolumn则不需要排序。如何key有多条记录,则会以12的形式出现。是一个数组,可以用下面方法分别读取value:=@DbLookup("":"";"":"softoon/sys/sysNames.nsf";"stest";"11";2);

value[1]

注意:得到的数组从1开始

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值