Monday, December 8, 2008

Filtering list items using user context

Scenario:
You want to filter the data displayed depending upon the user context or user profile
Solution:
MOSS out of box comes with UserContextFilter Web-part, this webpart filters the data depending upon the logged in user.
Steps:
1. Go to a webpart page
2. Add UserContextFilter web-part using Add Web-part option
3. Click on Modify webpart
4. Select 'SharePoint profile value for current user' option under 'Select Value to provide'.
5. Select a property from the dropdownbox. i.e Department
6. Click OK

0 comments: