在莲花笔记中搜索文档 [英] Search document in lotus notes

查看:98
本文介绍了在莲花笔记中搜索文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过搜索莲花笔记中的文档来解决问题.

I can't solve the problem with searching documents in lotus notes.

  1. 我有一个SearchForm表格,其中放置了一些字段(例如date_fromdate_todocument_title等)和运行搜索"按钮.
  2. 我有一个要显示搜索结果的视图'SearchView'.
  1. I have a form SearchForm where placed a some fields (like date_from, date_to, document_title etc.) and button 'Run search'.
  2. I have a view 'SearchView' where I want to display the search results.

当用户输入搜索条件并单击Run search按钮时,我要显示带有文档的SearchView.

When user enter the search criteria and click Run search button I want to display the SearchView with documents.

但是我不怎么写按钮Run search的点击处理程序.另外,我更喜欢使用公式语言来执行此操作.

But I don't how to write click handler of button Run search. Also I prefer to use Formula language to perform this operation.

有什么建议吗?

推荐答案

我建议使用集成的搜索功能.您似乎来自非笔记背景.

I would suggest using the integrated search capacities. You seem to be coming from a non-notes background.

我的建议:使用全文本搜索设置数据库

My suggestion: setup the database with full-text search

创建一个搜索视图",其中包含您希望能够搜索的所有文档. (即,不包括关键字,系统文档等).

Create a 'Search View' containing all the documents you want to be able to search. (i.e. don't include Keywords, system documents, etc).

在此搜索视图中,您可以使用命令

In this search view, you can include a button with the formula with the command

@Command([ViewShowSearchBar]; "1")

这将在您的视图中显示搜索栏.如果单击更多"按钮(数据库已全文索引),您将看到许多选项,包括表格".

This will display the search bar in your view. If you click on the 'More' button (and the database is full-text-indexed) you'll see a number of options, including 'Form'.

如果您的表单具有包括在搜索生成器中"复选框,则它将显示在搜索"栏中使用的表单列表中.

If your form has got the checkbox 'Include in Search Builder', then it will get displayed in the list of forms used in the Search bar.

此功能可以执行一些限制,但是实现起来确实很快.

There are some limits to what this can do, but it's really fast to implement.

如果您想做一些更复杂的事情,那么您将需要一个表格来显示用户的所有搜索选项.然后,该表格将用于计算搜索公式,然后将搜索公式用于搜索文档集合,然后您可以将其显示在私有文件夹中.

If you want to do something more complicated, then you will need to have a form that will show all the search options for the user. This form will then be used to calculate a search formula, and the search formula then used to search a collection of documents which you can then display in a private Folder.

但是首先尝试使用内置方法.目前,您使用的是浏览器/SQL范例,在Notes中无法使用.

But try first with the built-in methods. At the moment you're coming with a Browser/SQL pardigm, and that's not going to work in Notes.

这篇关于在莲花笔记中搜索文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆