Subject: Does anyone know how to solve this problem? Thanks.
try this…
'this will refresh and rebuild the view on the screen
Call view.refresh
Call uiworkspace.viewrefresh
Call uiworkspace.viewrebuild
jason
Subject: RE: Does anyone know how to solve this problem? Thanks.
Still doesn’t work. Please help.
Subject: RE: Does anyone know how to solve this problem? Thanks.
Maybe you need to refresh the frameset containing the Inbox, Sent, Folders etc… elements in your db as well as the current view? Try something like this:
Call NotesUIWorkspace.OpenFrameSet(“MailFS”)
Call NotesUIWorkspace.ReloadWindow()
(You could also try “MailFS Left” in the first line)
As far as I know - the Folders themselves (which should be differentiated from their contents) aren’t contained by a view, as is the case with documents (the e-mails of yours which are being displayed).
Paul.
Subject: RE: Does anyone know how to solve this problem? Thanks.
Thank you Paul for your suggestion even though it still didn’t work.I don’t know whether I complicate the question, my question is that I use LotusNotesScript to create a folder (Call NotesDatabase.EnableFolder(“FolderName”)). However, after the code is excuted, I can’t see this new folder, only when I exit and reenter this database (sometimes doesn’t work) or close the Notes and reenter it.
It seems that the new folder needs some time to be refreshed.
I used your code to open the frameset, and reload the window, it didn’t work. Furthermore, it will open a new window(frameset) which is not I want.
Could you please give me more idea on this problem?
Thanks.