请各位前辈过来看一下

BESTperson 2002-08-20 12:29:27
请各位前辈过来看一下
怎样用LS在视图中编写查找功能,并且视图换成查询结果域公式
@Command([ViewShowSearchBar])相似,但不同的是要按照所需要的域来查
不像上面这个公式是以按照所有域来查
...全文
45 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
BESTperson 2002-08-26
  • 打赏
  • 举报
回复
我可以问一下,上面代码中/doc.tj_leixing(0)="(全部)" /的tj_leixing代表什么阿
小木可 2002-08-21
  • 打赏
  • 举报
回复
Dim workspace As New notesuiworkspace
Dim session As New notessession
Dim db As notesdatabase
Dim collection As notesdocumentcollection
Dim uidoc As notesuidocument
Dim doc As notesdocument
Dim is_sql As String
Dim view As notesview
Dim vc As notesviewentrycollection
Set db=session.currentdatabase
Set view=db.getview("cxview")
Set uidoc=workspace.currentdocument
Set doc=uidoc.document
Set vc=view.allentries
Call vc.Removeallfromfolder("cxfolder")
If doc.tj_leixing(0)="(全部)" Then
is_sql="条件" ''''此处条件的编写比较麻烦,如果你的条件很 多的话
End If
Set collection=db.search(is_sql,Nothing,0)
Call collection.putallinfolder("cxfolder")
Call workspace.viewrefresh
alian1974 2002-08-21
  • 打赏
  • 举报
回复
查一查文檔集合的幫助.
BESTperson 2002-08-20
  • 打赏
  • 举报
回复
你能给我你地源代码吗,谢谢了
小木可 2002-08-20
  • 打赏
  • 举报
回复
我是使用的FTSEARCH和文件夹来查询的。

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧