To work around this problem, you can force the filter to use
the logon username. To do so, follow these steps:
- On the Data menu, click
Filter.
- Click Click here to add a new
clause.
- Click Created by in the Field
Name column.
- Click Equals in the
Comparison column.
- Click [Current User] in the
Value column.
- Click OK.
- In the lower right corner of the edit window, click
Code.
- On the Edit menu, click
Find.
- Type Name="UserID"
Location="CAMLVariable" in the Find What box, and
then click Find Next.
- This will find the following line of HTML code:
<ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
- Change the line of HTML code to the following:
<ParameterBinding Name="UserID" Location="ServerVariable(LOGON_USER)" DefaultValue="[ LOGON_USER ]"/>
- Save the page, and then click Preview at
the bottom of the edit window.
Note These steps assume that you already have created a Data View in
an Announcement list. To create a Data View, follow these steps:
- Click the page where you want your Data View to
reside.
- On the Data menu, click Insert
Data View.
- Click the Windows SharePoint Services list that you want to
use as your data source.
- Click Insert Data View.