MOSS 2007 仅在指定过滤器时过滤列表
您好,我有一个共享点列表,我想根据标题中的文本进行过滤,我希望能够执行“标题包含”过滤器而不是完全匹配,所以我转到 SPD 并添加了一个文本框和“转到”按钮到包含该列表的页面。我已通过参数连接了 2 个参数,并根据 Web 部件中的参数进行了过滤。这一切都很好
,但是......当页面最初显示时,列表是空白的,因为过滤器是空白的,并且与列表中的任何Tiotkes都不匹配......
我真正希望能够要做的就是如果参数为空,则显示整个列表,如果其中有一些文本,则可以选择应用过滤器,但我一生都无法弄清楚如何实现它。
任何帮助将不胜感激。
谢谢
Hi I have a sharepoint list that I want to filter based on text in the title, I want to beable to do a "Title contains" filter rather than an exact match, so I have gone to SPD and added a text box and go button to a page that contains the list. I have connected the 2 via a parameter and filtered based on that in the web part. This all works great
BUT..... When the page is initially shown the list is blank because the filter is blank and that doesn't match any Tiotkes in the list.....
What I'd really like to be able to do is show the entire list if the parameter is blank and opnly apply the filter if there is some text in it but I cant for the life of me figure out how to achieve it.
Any help would be really appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,您必须调整 xslt 以处理默认条件并为参数创建默认值。如果您想要完整的解决方案,请将您的数据视图 Web 部件 xslt 粘贴到此处
In This case you would have to tweak your xsltto handle a default condition and create a default value for the parameter. If you want complete solution please paste your data view webpart xslt here