1

I would like to use a constant as a text filter on a SharePoint list webpart.

I can add a text filter and use it to filter the list successfully, but I don't want a control and I never want to change this value.

e.g. I was a webpart showing all items in a list with status = "complete"

Currently I am adding the text filter setting a default value and then making 0 height and 0 width but this still affects the layout and also seems like a strange way to do it.

I am sure I am missing something very simple here but anyways..

1

Follow these steps:

1- You can Edit the page from Browser: Ribbon -> Page -> Edit

2- Double click the ListView Web Part header: Ribbon -> Edit Web Part Properties

3- In Web Part Properties: Edit current view

4- In Edit View page, add filter to your field

5- Click save and you can see the filtered results!

  • So you are saying basically apply the filter to the view instead of the web part? – user13635 Feb 24 '13 at 11:39
  • It's not instead -- it's how this is done. The view of a list view web part is an integral part of the web part. – teylyn Feb 24 '13 at 23:46
  • What is the web part rendering, its the view of a list.. So applying filter on view will actually filter data from the Web Part – Arsalan Adam Khatri Feb 25 '13 at 1:59
  • if i have one view that shows a summary nicely it would be nice to be able to use that in various web parts, then apply a filter and give it a specific title like "outstanding items". that way changes to the view would be applied across many different web parts. Though if you want the same filtering multiple places I could see the benefit in maintaining seperate views. – user13635 Feb 25 '13 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy