Java Programming Problem

Hi,

I have been using Java to fetch Data from DB2 Database and display the data in a already opened (in edit mode) Notes Form in Notes Client.

Now what I watched is that I am able to set value to the form fields in backend only. That is, while the agent executes the field on the form does not populate with data in front-end. Now if I close the document and then re-open it the populated data starts showing.

How can I populate document’s fields while the document is still opened as is done in Lotus Script ?

Is it at all possible ? How?

Is it possible to access the front-end document as can be done in Lotus Script .

I am new to Notes-Java, so please be patient with me.

Any advice would be greatly appreciated.

Thanks in Advance

Sudip

Subject: Java Programming Problem

Can you explain why you are using Java for this? Does it have a connector for DB2? I would think that, assuming you have the DB2 connector or a dsn installed, it would be a great deal simpler to do this in Lotusscript, and you would have the option of using the front end or back end classes (back end classes are a lot cleaner), all without saving the document.

Subject: Java Programming Problem

The easiest solution is to have code simply save/close/reopen document using script once the agent finishes.

Another path is using LS2J(look up in Designer Help). Basically you can invoke your Java code from within LotusScript.