in my Postopen script of our main form, I do a db.search to find a specfic document that I put in a global variable so as to be abble to use it in other scripts of the form.
What is the best way to refresh this variable ? Because this specific document could be updated so I have to get its last version.
Do I have to make the same db.search again or is there an faster way (via search NoteID or UNIVERSALID, or others fields or via another method) ?
Please tell me if I am wrong, but reload and refresh are working on NotesUIDocument object not on NotesDocument.
I had a look on UNID and ID.
So, I can save the ID of this document found thanks to my db.search and then use this ID in parameter of GetDocumentByID method so as to obtain the document refreshed.
Any other way ? Is this, the cleanest way to do it ?