XPage:使用带有 FTSearch 的视图作为 dynamicViewPanel 的源 [英] XPages: Using a View with FTSearch applied as a source to dynamicViewPanel

查看:21
本文介绍了XPage:使用带有 FTSearch 的视图作为 dynamicViewPanel 的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想采用 dominoView,在 beforePageLoad 中应用 FTSearch,然后使用该视图作为 dynamicViewPanel 中的值来显示搜索结果.除非我做错了什么,否则 dynamicViewPanel 似乎正在显示完整视图,就好像没有执行搜索一样.不过,FTSearch 正在按预期在 beforePageLoad 中完成.这应该工作吗?(如果不是,出于某种原因,那么似乎一种解决方法是将 beforePageLoad 中的搜索结果存储到一个 javascript 数组中,并将其用作重复的值,而不是使用 dynamicViewPanel.)

I would like to take a dominoView, apply a FTSearch in beforePageLoad, and then use that view as the value in a dynamicViewPanel to show the search results. Unless I'm doing something wrong, it seems like the dynamicViewPanel is showing the full view, as if the search wasn't performed. The FTSearch is being done in beforePageLoad as expected, though. Should this work? (If not, for some reason, then it seems like a workaround would be to store the search results in beforePageLoad into a javascript array and use that as the value of a repeat instead of using a dynamicViewPanel.)

TIA!- 里德

推荐答案

为什么不直接使用视图数据源的 Search 属性?这会进行 FT 搜索.您可以将该属性绑定到保存您的 FT 搜索查询的 viewScope 变量,如果您不想过滤视图,则只需将 viewScope 变量设置为 "".

Why not just use the Search property of the view data source? This does a FT search. You can bind that property to a viewScope variable that holds your FT search query and if you don't want to filter the view then just set the viewScope variable to "".

这篇关于XPage:使用带有 FTSearch 的视图作为 dynamicViewPanel 的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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