Subject: agent to refresh documents
dim s as new notessessionDim db As NotesDatabase
dim vw as notesview
dim lCnt as long
const SERVER as string= “- ur server name -”
dim vList(0 to 5) as string
vList(0)=“- ur database path -”
vList(1)=“- ur database path -”
vList(2)=“- ur database path -”
vList(3)=“- ur database path -”
vList(4)=“- ur database path -”
vList(5)=“- ur database path -”
for lCnt=lbound(vList) to ubound(vList)
set db=s.GetDatabase(SERVER,vList(lCnt))
if db.IsOpen then
set vw=db.getview("vXYZ")
vw.refresh
end if
next
set s=nothing
=====================================
or (take note, the code below might be slower coz it will traverse all db in ur server)
=====================================
dim s as new notessession
Dim dbdir As New NotesDbDirectory(s.CurrentDatabase.Server)
Dim db As NotesDatabase
dim vw as notesview
Set db = dbdir.GetFirstDatabase(DATABASE)
do While Not(db Is Nothing)
set vw=db.getview("vXYZ")
if not vw is nothing then
vw.refresh
end if
loop
set dbdir =nothing
set s=nothing