@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有多条记录,则会以1;2的形式出现。是一个数组,可以用下面方法分别读取value:=@DbLookup("":"";"":"softoon/sys/sysNames.nsf";"stest";"11";2);
value[1]
注意:得到的数组从1开始