Hi,I have a java application which uses COM to access the running Notes client application on my desktop. I am able to read and import the content of the currently opened email and import it in my application.
Is there any method in the COM exposed API to ask the Notes client what documents the user has selected (checkmarked) in the current folder(ex. INBOX).
I want to be able to import all selected emails without asking the user to open each one and import it one by one.
I do not want to be notified by the events in the UI. I just want to ask the running client what documents are currently selected in the INBOX folder view, for example. The UC is as following:1. User selects some documents in the INBOX from the Notes client.
User goes to the WebBrowser and presses a button in my applet.
The applet asks the Notes client through COM what documents are currently selected and will subsequently retrieve each one and uploaded to my server.
Note: I am already able to get and upload the currently opened email.
COM is talking to the Notes Server that hosts the database. The Server does not see the inbox view that you have open, or what documents are selected. Only the client (running on your machine) knows that.
The first step in my code is to get a reference to the NotesUIWorkspace which represents the current Notes workspace window. Then using this I get the current DB and the currently opened document.
So I think I am actually talking to the Notes client. In fact, if my notes client is not opened and I run my code, it gets opened automatically as a result of asking for the COM object named “Notes.NotesUIWorkspace”. I am also able to ask the client to edit the currently selected document, and I can see the results in the client, so I definitely think I am talking with the Notes instance running on my local machine.