2014-09-03 41 views
0

使用Lotus Notes腳本分類的列, 有收集來自一個視圖的文檔與分類的第一3列,並用化學式的方法?Lotus Notes的腳本文件收集從視圖與式

例如:

第一列公式:@year(date_created)

二列公式:@month(date_created)

三列公式:@day(date_created)

,我想今天收集創建的所有文檔。

我嘗試這樣做:

array(1)[email protected](Date) 
array(2)[email protected](Date) 
array(3)[email protected](Date) 
set collection=view.getalldocumentsbykey(array(),true) 

但收集不填充。 所以我儘量的代碼更改爲:

array(1)[email protected](Date) 
array(2)[email protected](Date) 
array(3)[email protected](Date) 
Set ViewEntryCollection=view.GetAllEntriesByKey(array(),true) 

,但它不工作。我嘗試從所有列刪除分類,但沒有任何chenaged。

有一個在LotusScript中的方法獲得此? 感謝的

回答

5

確保類型數組值是相同的列值的類型。在你的情況下,你必須使用整數數組。視圖中的列也必須進行分類或排序。

Dim array(2) As Integer 

array(0) = Year(Date) 
array(1) = Month(Date) 
array(2) = Day(Date) 

Set collection = view.GetAllDocumentsByKey(array, True) 
+0

你是對的!謝謝 ! – 2014-09-03 10:22:51