Microsoft KB Archive/891989

= Certain properties of a list in your Windows SharePoint Services Web site are displayed incorrectly if the Web Part page contains a Data View Web Part =

Article ID: 891989

Article Last Modified on 7/27/2006

-

APPLIES TO


 * Microsoft Windows SharePoint Services

-





SYMPTOMS
You create a view of a list in your Microsoft Windows SharePoint Services Web site. When you click the name of the view in the Select a View area to see the list, certain properties of the list are displayed incorrectly. For example, you may experience the following symptoms:
 * The title of the list is not the title of the list that you currently are viewing. The title that is displayed is the title of a different list.
 * The views that are listed in the Select a View area are not the views that are available for the list that you currently are viewing. The views that are listed are the views that belong to a different list.



CAUSE
This issue occurs if the Web Part page of the list contains a Data View Web Part. For example, this issue may occur after you convert the List View Web Part to Extensible StyleSheet Language Transformation (XSLT) Data View. The following is an example of a scenario where you may experience this issue:
 * 1) You create two lists in your Windows SharePoint Services Web site that are named ListA and ListB.
 * 2) You add a new lookup column to ListB, and then configure the column to retrieve information from ListA.
 * 3) You create a new view for ListB. The lookup column is included in the new view.
 * 4) In Microsoft Office FrontPage 2003, you open the .aspx page of the view that you created for ListB, right-click the List View Web Part, and then click Convert to XSLT Data View.

In this scenario, when you connect to the view of ListB, the title of the list is displayed as &quot;ListA&quot; (without the quotation marks). Additionally, the views that are listed in the Select a View area are the views that belong to ListA.



WORKAROUND
To work around this issue, add the List=&quot; &quot; parameter to the .aspx page that contains the Data View Web Part. To do this, follow these steps:  Start FrontPage 2003, and then open your Windows SharePoint Services Web site. Open the .aspx page that you want to configure. On the View menu, click Page, and then click Design at the bottom of the page. Determine the globally unique identifier (GUID) of the list. To do this, follow these steps:  Right-click the Data View Web Part, and then click Web Part Properties. Click the Click to use builder button that is displayed next to the Data Query Editor box.</li> Make a note of the GUID of the list. The GUID of the list is contained in an entry that is similar to the following:

<dsp:dsQuery select=&quot;/list[@id='{ }']&quot; resultContent=&quot;Both&quot; resultRoot=&quot;Rows&quot; resultRow=&quot;Row&quot; columnMapping=&quot;Attribute&quot;>

In the following example, E61A11E7-6FB7-4529-9C1D-E0552D2D7CA8 is the GUID of the list:

<dsp:dsQuery select=&quot;/list[@id='{E61A11E7-6FB7-4529-9C1D-E0552D2D7CA8}']&quot; resultContent=&quot;Both&quot; resultRoot=&quot;Rows&quot; resultRow=&quot;Row&quot; columnMapping=&quot;Attribute&quot;>

</li> Click Cancel, and then click Cancel.</li></ol> </li> Add the List=&quot; &quot; parameter to the following tags in the .aspx page: <ul> SharePoint:ListProperty</li> SharePoint:ViewSelector</li> SharePoint:RelatedTasks</li></ul>

To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Code at the bottom of the page.</li> Click Find on the Edit menu.</li> In the Find what box, type the name of the tag. For example, type SharePoint:ListProperty. Then, click Find Next.</li> Add the List=&quot; &quot; parameter to each instance of the tag. For example, the .aspx page contains the following tag:

<SharePoint:ListProperty Property=&quot;Title&quot; runat=&quot;server&quot;/>

Add the List=&quot; &quot; parameter so that the tag is displayed as follows:

<SharePoint:ListProperty Property=&quot;Title&quot; runat=&quot;server&quot; List=&quot; &quot;/>

</li> Repeat steps 5b to 5d for each tag.</li></ol> </li> Click Save on the File menu.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
Data View Web Parts are also known as Data Views. For additional information about how to work with Data Views in FrontPage 2003, see FrontPage 2003 Help. To do this, click Microsoft Office FrontPage Help on the Help menu, type data views in the Search box, and then press ENTER.

Keywords: kbtshoot kbbug kbconfig KB891989

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.