Extrange cache behaviour in Notes Client

Hello,

I have a global lotusscript variable in a form that is used in document A (parent). This variable receives a notesdocument B (children) in any event of the form A. Afterwards, the user opens, modifies and saves this document B (e.g. in a embedded view in doc A). I will call B1 to this modified document. At the end the user runs an agent from a button in form A that accesses doc B and modifies this document. This document is B2. I have found that B2 is a modification of B and doesn’t include the changes made to B1. In other words, NotesDocument object seems to be cached somewhere in Lotus Notes and Lotusscript uses this cached object (pointed by the former global variable) instead of opening a new one with the data stored in the NSF.

My workaround was to assign nothing to all variables that pointed to doc B everywhere and everything gone ok.

Bye

Just Garrido