How to simulate SHIFT+F9 in Formula or LotusScript

Hi,

I have a view that shows documents but documents are missing.

I need to refresh manually with Shift F9 to have all.

But I need to code this action automatically.

Thanks in advance for you help.

Subject: How to simulate SHIFT+F9 in Formula or LotusScript

NotesView.Refresh!

to get the view:

dim s as new notessession

dim db as notesdatabase

set db = s.currentdatabase

dim view as notesview

set view = db.getview(“viewname”)

view.refresh

Subject: RE: How to simulate SHIFT+F9 in Formula or LotusScript

That will refresh the back-end view, if you need to the front-end refreshed, use

Call notesUIWorkspace.ViewRefresh

or

@Command( [ViewRefreshFields] )

Subject: Doesn’t refresh the view

Check the documentation again. The NotesView.Refresh method doesn’t actually update the back-end view index. It just updates the object in memory to match the index in the NSF file. To actually rebuild the index (like what Shift+F9) does you either have to call the C API, or run the Updall task.

Subject: RE: How to simulate SHIFT+F9 in Formula or LotusScript

Thank for your response.I ll test it.