如果文檔存在,我需要檢查(在筆記客戶端,最好在lotuscript),但我不在讀者領域。注意客戶端搜索沒有讀取能力:我可以顯示「存在但你沒有權利閱讀」
Set Doc = view.getdocumentbykey(index) 'returned Doc is nothing
我記得,在舊版本的註釋,我正在與DOC是什麼(所以沒辦法的物品財產文檔,看看項目值是邏輯,如果我看到這個文檔不正確)。有沒有辦法獲得這個功能?
如果不是,什麼是最好的?
- 評估DBLookUp在分類視圖(如果仍然有可能做到這一點的時候「不顯示空的,一類是不檢查 ...)
- 執行對代表的運行(A劑簽名者將有權閱讀所有文檔),並且只會在文檔存在或沒有索引時返回(通過環境notes.ini)
- 在代理服務器上運行(與臨時文檔中的繁重數據交換)
- json來自Notes客戶端
任何其他的想法?
加入到問題的某些嘗試...
Dim key As String
key = Inputbox("index to search", "" , "123456")
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim nav As NotesViewNavigator
Dim entry As NotesViewEntry
Set db = session.CurrentDatabase
Set view = db.GetView("ForSearch")
Set nav = view.CreateViewNavFromCategory(key)
If nav Is Nothing Then
MsgBox " nothing for "+ key
Else
MsgBox " nav for " + key +": " & nav.Count
Set entry = nav.Getfirst()
If entry Is Nothing Then
MsgBox "unable to get entry"
Dim vc As NotesViewEntryCollection
Set vc = view.GetAllEntriesByKey(key, False)
If vc Is Nothing Then
MsgBox "unable to getallentries for " + key
Else
MsgBox " vc exists for " + key + " count = " & vc.Count
Set entry = vc.Getfirstentry()
If entry Is Nothing Then
MsgBox "unable to get entry"
Else
MsgBox "entry: " & entry.Columnvalues(1)
End if
End If
Else
MessageBox "Universal ID: " & entry.UniversalID
End If
End If
問題:無法獲得在所有的情況下進入!因此我無法確定索引是否存在或不是... NB我在Notes客戶端看到類別。
回@DBLookup:
t:[email protected]("":"";"":""; "forSearch" ; "123455" ; 2);
@Prompt([ok] ; "123456" ; @If(@IsError(t) ; "ERR:" ; "") + @Text(t));
這將始終返回一個錯誤,因此不能被用來測試是否退出指數...
t:= @DbColumn("":"" ; "":""; "forSearch" ; 1);
@Prompt([ok] ; "dbcolumn" ; @If(@IsError(t) ; "ERR:" + @Text(t) ; @Contains(t; "123456") ; " @contains is true yep!" ; " inexting index"));
是我現在還記得這個黑客只對@dbcolumn和他的64K限制有效:-(
http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllFlatWeb/4af0288d37df3ade85257c3700779a0e?OpenDocument解釋說,在Notes客戶端運行代表可能會很棘手(http://www.ns-tech.com/blog/geldred.nsf/plinks/geld-7wmjev非常漂亮的文章),所以... ...解決方案是@formula級聯3 @Command([ToolsRunMacro];「」)或runonserver ...
在我的具體情況下,這個代碼是由JS定時器觸發的,我不確定調用級聯3 @命令將是一個好主意(意味着當條件未驗證時,將公式中的代碼的一部分寫入@return(false)...)我將必須到服務器端...
感謝您分享您的結果。檢查我編輯的答案... –