开发者

MOSS 2007 filtering a list ONLY if filter specified

开发者 https://www.devze.com 2023-01-23 03:49 出处:网络
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

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号