none
Dynamically filter a SharePoint announcements list view?

    Question

  • We have a SharePoint 2010 announcements list. The list is placed through a view on a SharePoint webpart page. How can I add a list view filter to the list, so that the user can select what category/categories to show in the list view?
    Wednesday, August 04, 2010 12:47 PM

Answers

  • Do you have the enterprise version of SharePoint?  If so, you have some out-of-box filter web parts.  You could use  either the choice filter or the sharepoint list filter.  Put the filter on the page above the announcements list, and create a web part connection to send the filter information to the announcements web part to filter by category.
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura
    • Marked as answer by Kaerwek Monday, August 09, 2010 8:02 AM
    Wednesday, August 04, 2010 2:27 PM

All replies

  • Hi Kaerwek, you can just go to List Tools tab and then click Create View. You can then create individual views with its own filters. To help filtering, it's useful to create an additional column in the announcement list for example, 'Employee' as a category. Then, you just set the view to only display announcements with 'Employee' as their category. Users, can then use the ribbon interface and choose under Current View in List Tools tab which view they want.
    Wednesday, August 04, 2010 2:21 PM
  • Do you have the enterprise version of SharePoint?  If so, you have some out-of-box filter web parts.  You could use  either the choice filter or the sharepoint list filter.  Put the filter on the page above the announcements list, and create a web part connection to send the filter information to the announcements web part to filter by category.
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura
    • Marked as answer by Kaerwek Monday, August 09, 2010 8:02 AM
    Wednesday, August 04, 2010 2:27 PM
  • Or create views for each of the categories then add them as links in the local navigation. Then your users can click on a link which says something like "Show Category 1" and they'll be taken to that view.

    But other than that, no there is no dynamic way of doing this, short of writing your own web part.


    The world is the mollusc of your choice
    Friday, August 06, 2010 12:48 PM