Here is the classic old issue. I've a form with embedded view on it (Show single category is used as well). There is an action on a view that create a new documents (which should be displayed in that embedded view). These solutions most likely wont work
- ws.ViewRefresh will not help
- Refreshing NotesUIDocument may cause a Notes client to crash, so it is not a way to go as well.
Refresh view by simulating of pressing F9
While searching for an example I found it on my blog :-), so you can easily find it here: how to emulate F9 key and save some minutes.
Refresh view by changing focus to another fields
The idea is to have 2 fields (let's call them FieldA and fieldB). Once you need to refresh embedded view - set focus to fieldA and then change it to fieldB. You also need either add refresh logic on Exiting property of fieldA (I prefer it, as it will not cause the perfomance on a form) or enable Automatically Refresh fields.
Refresh embedded view using hidden formula
And here is code examples
Call ws.ViewRefresh
Call uidoc.RefreshHideFormulas
Call ws.ViewRefresh
Please have a look on these 2 articles that inspired me: