FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Aug 16, 2011, 4:18 PM
66 Posts

Attach Notes DocLink to Email

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 2
 I have a view that allows a user to click on a name. The link takes them to a XPage to edit contact details and then click a button to send any changes via E-mail. What is the best approach to getting a handle on the backend Notes document doclink so I can append the doclink to the E-mail that is sent?
 
I know there is a getNotesURL() method, but I'm having issues actually grabbing the backend document.

Thanks for any help. 
Aug 22, 2011, 10:35 AM
272 Posts
Re: Attach Notes DocLink to Email
Hi Ryan,
 
do you want to send a link to a document for the Notes client or the browser? If you just want to add a link to the browser, you have to add the universalid to the link:
You can get the universalid from your datasource via the NotesDocument-Class, for example:
 
var doc:NotesDocument = currentDocument.getDocument();
var unid = doc.getUniversalID();
 
return "http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?action=openDocument&documentId=" + unid
 
If you wnat to add a notes link you have to use the appendDocLink method of the NotesRichTextItem class.
 
Hope this helps
Sven
Aug 23, 2011, 11:07 AM
66 Posts
Re: Attach Notes DocLink to Email
 Thanks for the reply Sven. I ended up changing this view to a repeat (not because of the attachment issue). I used:
 
row.getDocument().getNotesURL(); 
 
Where "row" is the Collection name of the repeat. This worked for me.

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.