Home > Blogs > Blog Post

How to free your Data View/Form web part (DVWP/DFWP) from those nasty GUIDs

by Hugo Esperanca | Jul 20, 2008

Ever wanted to use the same page layout containing a DFWP, and bind it to a local site list in each site of your site collection ?

Ever want to be able to deploy a page with a DFWP to a different server?

If you ever tried any of the above using SharePoint Designer you would have found problems because, by default, SharePoint Designer binds the control to the list instance using the list instance GUID. To resolve this we need to replace the GUIDs by the list name. The steps to do this are:

  1. On the attributes of the DataFormWebPart element replace the attribute ListName="{GUID}" by ListName="LIST_NAME" where LIST_NAME is the name of the list that you are binding to.
  2. Go through all of the DataFormParameter elements and replace:

    <WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID"

    PropertyName="ParameterValues" DefaultValue="{GUID}"/>


    with:

    <WebPartPages:DataFormParameter Name="ListName" ParameterKey="ListName"

    PropertyName="ParameterValues" DefaultValue="LIST_NAME"/>

  3. Go to the ParameterBindings element and replace

    <ParameterBinding Name="ListID" Location="None" DefaultValue="{GUID}"/>

    with:

    <ParameterBinding Name="ListName" Location="None" DefaultValue="LIST_NAME"/>

 

This should give you a GUID free DFWP that can be placed on a page layout used by multiple sites on your site collection (as long as the name of the list is the same on all sites).

Compliance using DocRead

DocRead logoDocRead for SharePoint can help you manage policy compliance by:

  • Targeting documents or policies at specific groups of users
  • Allowing a specific amount of time for users to confirm agreement 
  • Sending email reminders when policy compliance is overdue
  • Users self-certify that they have read and fully understood the policy details
  • Securely storing records of confirmed policy acceptance
  • Monitoring the user acceptance of policies via a reporting suite
  • Providing detailed reading reports and statistics
  • Report drill through to show who has not accepted the policy
  • Automatically sending historic compliance tasks and policies to new users when they are added to a group
  • Bringing policy compliance requests immediately to users attention when they log on

DocRead is simple to install and configure. It seamlessly integrates with SharePoint and can be added to any existing SharePoint site.

To find out more, visit the DocRead product site.


blog comments powered by Disqus