Supporters of End User
Web

Data View Web Part Q&A

 
Item is currently unrated. Press SHIFT+ENTER to rate this item.1 star selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+ESCAPE to leave rating submit mode.2 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.3 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.4 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.5 stars selected. Press SHIFT+ENTER to submit. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.
Categories: 
Laura Rogers, SharePoint 911This question arrived this morning from Robert: "Session 1 of your DVWP Series sounds like it might solve a problem we have. Namely, we need some way to display an aggregate list of all (printable) form documents at the top site level that includes in that list all (printable) form documents stored in document libraries of various subsites. Question: How far would Session 1 address this need we have?" Hi Robert, There may be a couple of ways to accomplish what you need in your scenario, but the “List Relationships” is not one of them, unfortunately. Here’s a blog post I’ve written about how to do a “roll up” web part. Unfortunately, I haven’t ever been successful in working with document libraries with the roll up. I can get it to list all the documents, but haven’t been able to create the hyperlink to open each one. Also, there’s a way you could create a linked source to merge multiple document libraries, but this wouldn’t be automatic, and you’d have to modify the data view web part each time a document library was added. Here’s a screencast that I’ve done on that concept: https://www.nothingbutsharepoint.com/sites/eusp/Pages/3-minute-screencast-merging-sharepoint-document-libraries.aspx Thanks for the inquiry!

Comments

Nick Hadlee

Data View Web Part Q&A

The following should work for generating a link to a document in a DVWP roll up for document libraries:












Posted 04-Mar-2010 by Nick Hadlee
Charles

Data View Web Part Q&A

Hi,

You wrote a lot on DVWP. It's true that it's an intersting functionnality to use.
Is it possible to package a customization inside a solution file ?

It's the missing piece to really use DVWP.

Thanks,
Charles

Posted 09-Mar-2010 by Charles
Laura

Data View Web Part Q&A

Hmmm, not sure, I'll see if I can get a developer to answer that one, since I'm not one.

Posted 09-Mar-2010 by Laura
EndUserSharePoint

Data View Web Part Q&A

Yeah, Laura... keep saying that. -- Mark

Posted 09-Mar-2010 by EndUserSharePoint
Ideas @ Random ...

Data View Web Part Q&A

I agree with Charles ... The Sharepoint projects I'm working on are all code based using Visual Studio and packaged as solutions ... My 1st idea would be to deploy the VS solution to a dev server, open the dev version in Sharepoint Designer & apply DVWP techniques taught here, Export the customized DVWP to your local file system (They will still be associated to the GUID that you've created for your solution's lists) & then copy them to your VS project.

Is this the best or most common way? Interested in suggestions.

Posted 09-Mar-2010 by Ideas @ Random ...
Nick Hadlee

Data View Web Part Q&A

The best way I have found to do this is first to remove any hard coded ListId's from from the DVWP and replace with ListName. (See Marc's post for more info on this). This will make them more reusable...

Next export the DVWP off the page (Wictor has a post on this) which will give you a .webpart file.

Lastly add this to your Visual Studio project (sorry aboutt the code talk Mark) and deploy it to the Web Part gallery using a feature. (MSDN example here). Something like this will work:





Posted 09-Mar-2010 by Nick Hadlee

Notify me of comments to this article

E-mail:
   

Add Comment

Title:

 
Comment:
Email:

   


Name:

 
Url: