2012-09-04 33 views
1

在lotusscript中,我通常會創建一個簡單的電子郵件,其中包含指向筆記數據庫/視圖的鏈接。有什麼辦法可以修改鏈接(appenddoclink),以便它打開一個xpage?假設我的xpage名稱是「Staff_Page」。如何鏈接到電子郵件中的xpage?

Dim maildoc As NotesDocument, rtitem As NotesRichTextItem 
Set maildoc=New NotesDocument(db) 
maildoc.subject="Email Address(s) For Your Approval" 
Set rtitem=New NotesRichTextItem(maildoc, "Body") 
Call rtitem.Appendtext("Dear John,") 
Call rtitem.Addnewline(2) 
Call rtitem.Appenddoclink(db, "", "Click to open the XPage.")   
Call maildoc.Send(False, "[email protected]") 

我看過XPages URL備忘單,但那些不是lotusscript。我正在使用一些lotusscript代理進行XPiNC。

回答

4

最簡單的一種就是在你的表單屬性中指定「open xpage instead」 第二個選項是用href =備註:// server/....指定一個指向它的URL鏈接你可能會更好因爲你有更簡單的格式化選項

+1

這是這樣做的方式,但要小心問題,如果這種文檔/表單是通過瀏覽器中的本地Domino URL格式打開的 - http:///stackoverflow.com/questions/10802986/native-domino-links-and-xpages –

+0

Frantisek是對的。所以當你做MIME消息時,你想使用... nsf/myPages.xsp&unid ...格式 – stwissel

相關問題