Simple instruction on adding a 'current user filter' to filter a list web part on a sharepoint 2010 page.
For these instructions we will assume you have:
- A populated list with a 'person' type column
- A page with the list added to it as a web part.
First we need to slightly modify the list.
Click on the link to your list in the quick launch bar on the left hand side or navigate to your sites lists and select it from there.
Click on the list settings button on the list tools>list ribbon.
Click on the 'person' type column that you wish to filter by current user, then under the 'additional column settings' options ensure that the 'Show field' dropdown is set to 'account'.
Navigate back to your page that has the list added as a web page and click the edit page icon. Then on the editing tools > Insert ribbon click the web part button.
From the options that appear select the Current User Filter from the filters folder and click add. Then click the save page button to save where we are up to.
This is where it can get a bit tricky. The Current user web part does not appear immediately on the screen nor does it have any immediate affect until we configure it.
In order to configure the web part from here seems a bit poorly thought out but here is how I go about it.
Click the edit page button then hover over your list web part and click the edit web part select from the arrow dropdown at the very right hand site of the list web part.
This will now make the current user filter appear on the page.
Now from the dropdown on the Current user filter web part select Connections > Send filter values to > #your list name#.
In the dialog that pops up ensure that 'Get filter values from' is selected in the dropdown and press configure.
If a "Confirm dialog preference" pops up press cancel. Then in the next popup ensure your 'person' type field that we modified earlier is selected then press Finish. Save the page.
You should be left with a list that only has items filtered to the current user....