views:

333

answers:

6

Hi all

I have been working on a Notes integration project and I am using the Domingo API for communicating with Lotus Notes. This API is very useful, however I don't see any NotesUIDocument class and limited support for RichText in Lotus Notes. I have checked in the Notes.jar file and even that jar file seems to miss the NotesUIDocument functionality. Does anybody know of any alternative for this ?

+4  A: 

NotesUIDocument is a LotusScript class which works because LotusScript support is embedded into the Notes client UI. When using Java, you generally work with the back-end classes such as Document (NotesDocument in LotusScript).

Why do you need access to NotesUIDocument from Java? Any possible alternative may depend on your specific needs.

Update: I don't believe you'll be able to get tight UI integration between the Notes client and a Java application. In terms of rich text, the Java classes in Notes.jar include a set of classes for rich text manipulation which will cater for the basic functionality, but you won't get as much rich text editing flexibility as you do through the Notes UI.

Vinay Sajip
A: 

Just a note - I believe support for some UI classes in the Java API is planned for the Domino 8.5.2 release. But, these will only be useful if you Java integration code runs within a Notes client.

Ed Schembor
A: 

@Vinay I will be initiating and data push/pull operation from Lotus Notes to my java application and vice versa. After the upgrade I need to save the document (which i can do) and show it with the latest information to the user for which I can't seem to find an appropriate method. Another part in this export / import process is the updation of certain UI elements directly from my code. I can do this using the windows COM API and felt there should be default support for these operations. One other option I was playing with was to save the doc, close it and then reopen it, which I have not tried yet.

Are you aware of any Java API which gives extensive support with respect to RichText Support ?

@edSchembor Yes, I read about it in a blog.So far none of these features are documented and is not really supported.

vikramjb
I've updated my answer to include your points.
Vinay Sajip
+1  A: 

You can try using LS2J this allows you to use lotusscript for all the front end stuff and allows you to call your java back-end code.

Carlos
A: 

@Vinay

Since notes also has a Java Flavour and with the current of Effort of IBM to move it to Eclipse Plaform, I expected a lot more support with the API. Looks like windows API has more than what Java API can offer. Can you guide me to some sites which show this basic RichText functionality ?

@Carlos

I am taking a look at those, worse comes worse, I will see how I can utilize this class to my benefit. Thanks for the link.

vikramjb
A: 

The current state of play is no UI support from the java api :-(

As @edSchembor mentioned 8.5.2 is rumoured to have some UI support coming but don't hold your breath in terms of what mileage you'll get out of it.

LRE