关于视图查询的问题,请各位高手帮忙
在view(暂命名为fff)中设置查询操作,此操作打开一个表单,以便用户输入查询条件,此时如何定位在fff中查询,不能使用view=db.getview(fff),因为词查询表单用在多个时图中
直接在URL中用SearchView 命令
SearchView
Use SearchView URLs to limit a search to documents displayed in one database view.
This URL is useful for views that display all documents (so you can have a full-database search) or for views in which you can predict what users need to see, such as all documents whose status is "Completed."
Syntax
http://Host/Database/View/[$SearchForm]?SearchView[ArgumentList]
Where:
$SearchForm and ArgumentList are optional arguments. The special identifier $SearchForm indicates that Domino will present a search view form for search input. If this identifier is provided, the ArgumentList is ignored. If this identifier is absent, a default form will be generated dynamically based on the contents of the search.htm file located on the server. The default form generated by the server does not support paged results.
Example
http://www.mercury.com/products.nsf/By+Product+Number/$SearchForm?SearchView
我想到的办法是在表单上建立一个组合框让用户选择要查询的域,建立一个文本框让用户输入查询条件,然后用getview取得要查询的视图,用getfirtdocument和getnextdocument取得视图中的每一个文档,然后取文档的域值和用户的输入值作比较,符合的话就把文档putinforder,查询完毕以后跳转到存放查询结果的文件夹。
方法是笨了一点,速度是慢了一点,反正只要能蒙过经理和客户就可以了,等到客户的文档达到以万为单位来计算的话,我想lotus Rx也应该出来了吧!