How do I see a newly created view after script run?

Hello,

I have my lotus script creating my view now the way I want. However, after running the script when I go to the menu View/Go To… I do not see the new view there right away. If I close the database and then reopen it I see it. What code should I add to the script to cause this to update/refresh so that the view can be seen without having to close the database and then reopen it?

Thank you

Subject: It shows the view immediately in my client

It shows the view immediately in my client with a simple code like this:

Dim dbactual As NotesDatabase

Dim ss As New NotesSession

Dim nuevavista As NotesView

Set dbactual=ss.CurrentDatabase

Set nuevavista=dbactual.CreateView("vistar","")

I could even add a line like:

call nuevavista.Refresh

But it’s not necessary;