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



Oct 2, 2011, 4:19 PM
33 Posts
topic has been resolvedResolved

How to cast JAVA object in server side JavaScript

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
I would need to manipulate RichTextItem which exists in Notes document  from within server side JavaScript. Although I am able to create a new RichText item when the new document is being saved for the first time I am not able to edit it during subsequent saves.
I tried to use  document.getFirstItem("Attachments") but it requires a cast to RichTextItem object but I am not able to make it works.The following code cannot be compiled.
  
attachments  = (lotus.domino.local.RichTextItem) document.getFirstItem("Attachments") ;
 
Any proposal? Thanks for any help in advance.
Oct 2, 2011, 7:05 PM
272 Posts
Re: How to cast JAVA object in server side JavaScript
Hi,
 
just try the following:
 
var attachments:RichTextItem  = document.getFirstItem("Attachments") ; 
 
Hope this helps
Sven
Oct 4, 2011, 5:19 AM
33 Posts
Re: How to cast JAVA object in server side JavaScript
It does help. Thanks a lot for the prompt help.

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