This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 16, 2011, 8: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, 2:35 PM
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, 3:07 PM
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.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal