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 (891989)



The information in this article 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 "ListA" (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="GUID" parameter to the .aspx page that contains the Data View Web Part. To do this, follow these steps:
  1. Start FrontPage 2003, and then open your Windows SharePoint Services Web site.
  2. Open the .aspx page that you want to configure.
  3. On the View menu, click Page, and then click Design at the bottom of the page.
  4. Determine the globally unique identifier (GUID) of the list. To do this, follow these steps:
    1. Right-click the Data View Web Part, and then click Web Part Properties.
    2. Click the Click to use builder button that is displayed next to the Data Query Editor box.
    3. 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="/list[@id='{GUID}']" resultContent="Both" resultRoot="Rows" resultRow="Row" columnMapping="Attribute">

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

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

    4. Click Cancel, and then click Cancel.
  5. Add the List="GUID" parameter to the following tags in the .aspx page:
    • SharePoint:ListProperty
    • SharePoint:ViewSelector
    • SharePoint:RelatedTasks
    To do this, follow these steps:
    1. Click Code at the bottom of the page.
    2. Click Find on the Edit menu.
    3. In the Find what box, type the name of the tag. For example, type SharePoint:ListProperty. Then, click Find Next.
    4. Add the List="GUID" parameter to each instance of the tag. For example, the .aspx page contains the following tag:

      <SharePoint:ListProperty Property="Title" runat="server"/>

      Add the List="GUID" parameter so that the tag is displayed as follows:

      <SharePoint:ListProperty Property="Title" runat="server" List="GUID"/>

    5. Repeat steps 5b to 5d for each tag.
  6. Click Save on the File menu.

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.

Modification Type:MinorLast Reviewed:7/27/2006
Keywords:kbConfig kbBug kbtshoot KB891989 kbAudITPRO