与NSFSearch一起使用@ViewTitle的示例?
我昨天花了所有的时间,试图使NSFSearch与@viewtitle一起工作,但我无法弄清楚。该文档可以说:
viewTitle-包含一个零终止字符串的地址,其中包含一个 查看名称。如果选择公式由第二参数指定 (hformula)包含@ViewTitle函数,然后Domino或Notes使用 此参数指定的视图名称(viewTitle)解决此问题 @ViewTitle函数。
如果第二个参数(hformula)指定的选择公式为 不包含@viewTitle函数,或者如果不使用 选择公式(hformula为nullhandle),然后设置此参数 (ViewTitle)到null。
但是我在任何地方都找不到一个例子,也无法与这样的选择公式一起使用:
@ViewTitle = "Test Folder" & @Created < @Date(2021;1;1)
@ViewTitle & @Created < @Date(2021;1;1)
朝正确方向的示例或指针将不胜感激。
I spent all of yesterday trying to make NSFSearch work with @ViewTitle, but I can't figure it out. The documentation has this to say:
ViewTitle - The address of a null-terminated string that contains a
view name. If the selection formula specified by the 2nd argument
(hFormula) contains the @ViewTitle function, then Domino or Notes uses
the view name specified by this argument (ViewTitle) to resolve this
@ViewTitle function.If the selection formula specified by the 2nd argument (hFormula) does
not contain the @ViewTitle function, or if you are not using a the
selection formula (hFormula is NULLHANDLE), then set this argument
(ViewTitle) to NULL.
But I can't find a single example of this anywhere and can't make it work with selection formulas like these:
@ViewTitle = "Test Folder" & @Created < @Date(2021;1;1)
@ViewTitle & @Created < @Date(2021;1;1)
An example or pointer in the right direction would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从来没有找到使用它的理由,但是我一直将其解释为意味着您可以编译诸如“
doctype = @viewtitle
”之类的选择公式。然后,您可以将nsfsearch
调用三遍,一旦将“草稿”用作第二个参数,一旦将“进步”作为第二个参数,然后将“最终”用作第二个参数。编译公式将以doctype =“ Draft”
为第一个呼叫,doctype =“正在进行中的
”的第二个呼叫和doctype =“ final”
第三个呼叫。您会收回三个结果,就好像您在搜索三个不同的视图一样,但是您只需要调用一个nsfformulacompile
三个nsfsearch
呼叫I've never found a reason to use this, but I've always interpreted it to mean that you can compile a selection formula like "
DocType = @ViewTitle
". Then you can callNSFSearch
three times, once using "Draft" as the second argument, once using "In Progress" as the second argument, and once using "Final" as the second argument. The compiled formula will run asDocType = "Draft"
for the first call,DocType = "In Progress"
for the second call, anddocType = "Final"
for the third call. You get back three results, as if you were searching three different views, but you only had to call oneNSFFormulaCompile
threeNSFSearch
calls