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



Jun 4, 2011, 1:28 PM
33 Posts

lotus.domino.local.Document class

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
Today, while developing my managed bean that should send mail alerts, I have discovered a strange thing. There seems to be two JAVA classes

lotus.domino.local.Document
 
lotus.domino.Document
 
They seems to be (to my surprise, thanks to my limited knowledge of JAVA I guess) interchangeable to certain extend. The code snippet below output is    class name: lotus.domino.local.Document
 
lotus.domino.Document project = DominoUtils.getCurrentDatabase().getDocumentByID(documentNoteID);
System.out.println("class name: " + project.getClass().getName());
 
So far I did not notice that as everything works fine. But when I tried to add document link to RTItem and passed the project variable it fails with the following error

06/04/2011 03:11:17 PM  HTTP JVM: NotesException: AppendDocLink requires a NotesDocument, NotesView or NotesDatabase argument
 
BTW I tried also use cast to get the propert class but it did not make any change.
 
Any help would be highly appreciated.
Jun 4, 2011, 7:49 PM
54 Posts
Re: lotus.domino.local.Document class
Can you provide an example of the code where you tried to creata the doc link?
 
"But when I tried to add document link to RTItem and passed the project variable it fails with the following error
06/04/2011 03:11:17 PM  HTTP JVM: NotesException: AppendDocLink requires a NotesDocument, NotesView or NotesDatabase argument"
Jun 4, 2011, 10:27 PM
14 Posts
Re: lotus.domino.local.Document class
1) lotus.domino.Document is interface, lotus.domino.local.Domino is class implementing it.
2) You remind me my problems with appending doclinks to RT. I gave up and used MIME instead (I wanted to send email notification with doclink).

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