Following is spoiling my good mood:
I have a NotesUIDocument open (either create or edit). Its form loads a LS library. This library contains a class that handles activities taking place on the form. The class contains vars holding the NotesUIDocument and the NotesDocument.
All well so far.
At a certain point a sub in the class launches an agent, passing the NotesDocuments noteid as parameter.
The agent changes a field value (just a simple 1st test), saves, retrieves the modified field's value again and writes it to a file (for debugging). Clearly the agent writes the correct value to the correct field in the correct document.
Then the agent is ready and the code in the class' sub continues.
I have no lost all traces to the modified field. Saving either the NotesDocument or the NotesUIDocument would make me lose the modified fields value.
What should I do to "refresh" those two? Reloading the NotesUIDocument doesn't help....