|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click Mice, Unclick Mice > Posts > Data View Web Parts bound to List Names
|
|
5/29/2007
Know them and love them.
I was working on a custom Wiki template the other day and I wanted more than anything not to have to package it as a WSP file. I was trying my best to come up with a way to use my nice custom list dataview web part in a STP file, but SharePoint Designer loves more than anything to put the list GUID in to the dataview which pretty much makes the STP file a no can do item. Which really meant that I was going to be forced to use a WSP just to use this dataview and to be able to get it to point at the correct list when it was provisioned. I was just a little put off by the whole thing so I walked away from it for the night.
It was a bright and shining new morning though when I stumbled on a new piece of information. SharePoint Designer had led me astray and had neglected to mention a new feature in the dataview. They can be bound by List Name. Maybe this isn't news to everyone, but I certainly didn't get the memo.
In order to make use of this new handy feature its a simple find and replace in SharePoint Designer or your Data View Web Part editor of choice.
- Open the web part definition in your editor of choice
- Look for all occurances of ListID in the web part definition and right next to that you should see a GUID.
- Replace ListID with ListName and the GUID with the list name you want to bind to.
I felt the need to share because this is something I wanted since WSSv2 and I had no idea it made the cut until last week. |
|
|
|
|
|
|
|
|
|
 |
 |
 |
 |
|