标题: chinalotus技术代码经典之五:在web全文检索中提交查询的代理 [打印本页] 作者: show234 时间: 2007-11-5 10:57 标题: chinalotus技术代码经典之五:在web全文检索中提交查询的代理 notes
在web全文检索中提交查询的代理
(阿瑞)
notes在web中执行全文检索时,需要通过代理执行。先看一下查询表单页面:
单击“确定”按钮后,就会执行wsearchsubmit代理,以下是在公文流转中的web全文检索中wsearchsubmit代理的Initialize源代码:
Sub Initialize
'This code creates the search condition by using the form wsearch
Dim ResultDoc As notesdocument
Dim targetview As notesview
Dim iNum As Integer
Set session = New NotesSession
Set db = session.CurrentDatabase
Set note = session.DocumentContext
Set targetview=db.getview("($all)")
If db.IsFTindexed Then
If ( db.LastModified > db.LastFTIndexed ) Then
Call db.UpdateFTIndex( False )
End If
Else
Call db.updateftindex(True)
End If