Monday, February 27, 2012

How to make Dataview Web Part Portable?

When working with SharePoint DataView Customizations, by default you can not just copy paste the data view pages into new environment or even restore them from backup. This is because: The Data View Web Part uses List ID instead of List Name.

So, How to make the Dataview Portable from one environment to another? Simple! Replace the ListID to ListName and provide the List name in the place of GUID.

Important:
Please note, These changes must be done once you complete all the customizations to the dataview webpart. You will not be able to make changes using Design view in SharePoint designer after making these changes, because SharePoint designer uses ListID parameter, which we are going to replace!
 
As always, Take a Backup!

Detailed steps:
    1. Open the site & Web part page in SharePoint Designer.

    2. Search and Replace ListID with ListName
How to make Dataview Portable
   3. Replace the DefaultValue="GUID" with  DefaultValue="Your List Name"

That's All!



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...