NotesDocument not updated in the second view until the database is closed and reopened

Hello,

I have two views in my database (one view is hidden)

Both views has the same search formula therefore both views contains the same documents

consider there is only one document in both the views

I open the document from the non hidden view(First View) and do the changes on fields which include checkboxes and comboboxes

and perform operations in my code which actually uses the hidden view(Second view) to get the document but this document in the second view is not updated with new values

I tried refreshing views but that doesn’t work, the second views document will be updated only when I close the database and reopen it.

Is this a known issue, what is the cause and solution for this?

Subject: You haven’t given enough information…

…for us to make a determination whether you’re running into a cache that’s out of date (and if so which cache) or whether you’re expecting changes to show up in a view before the document is saved, or what. A more detailed description of what you’re doing, including source code, might help us to help you.

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect

NOTE: My policy is to post only two responses to the same question. So that my second response can solve your problem rather than being a request for details, please read the C R I S P Y document.