using web services and the data view web part to combine lists from multiple sharepoint sites
DESCRIPTION
The Data View Web Part allows you to render information from multiple sources – SQL, SharePoint or Web Services – into one combined list. But, with the Data View Web Part and SharePoint lists, typically you can only select other lists from within the same site. This isn’t useful if you are trying to roll-up data from multiple lists located through various teams’ sites. Creating Web Service connections to SharePoint lists in other sites allows you to query and render data from multiple sites into one combined view. View our slide deck to find out more. And for more information on this or other SharePoint topics, visit our blog at www.cdhtalkstech.com.TRANSCRIPT
![Page 1: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/1.jpg)
Data View / List View
![Page 2: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/2.jpg)
Quick Facts
About Us• 22nd Year• Grand Rapids &
Royal Oak• 30 Staff
Approach• Vendor
Independent• Non-reseller• Professional
Services Only
Partnerships• Microsoft Gold• VMware Enterprise• Citrix Silver• Novell Gold• Cisco Premier
![Page 3: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/3.jpg)
Expertise
![Page 4: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/4.jpg)
Talks TechC D H
![Page 6: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/6.jpg)
Overview
• List view vs. data view• Creating data sources• Leveraging the data view• Formatting and style
![Page 7: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/7.jpg)
List view
• Link to a SharePoint list or library• Formatting and style• Full control over the XSLT• Data sources are within a single site• Exportable
![Page 8: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/8.jpg)
Data view
• Link to a SharePoint list or library• Formatting and style• Full control over the XSLT• Connect to multiple data sources• Exportable
![Page 9: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/9.jpg)
Connecting to multiple sources
• Similar lists reside multiple sites• Each list has the same view• Obtain the SharePoint WSDL• List GUID and view GUID
– Browse to the list– Open up the view settings screen
![Page 10: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/10.jpg)
Obtaining list & view GUID
http://samplecompany/departments/Acquisition-Disposition/_layouts/ViewEdit.aspx?List=%7BF145CA77%2DBE80%2D42E7%2DB5A8%2DD9A93D6B2311%7D&View=%7B541119CB%2DA982%2D449F%2DA1DF%2DEDF70DF755AE%7D&Source=%252Fdepartments%252FAcquisition%252DDisposition%252F%255Flayouts%252Flistedit%252Easpx%253FList%253D%25257BF145CA77%25252DBE80%25252D42E7%25252DB5A8%25252DD9A93D6B2311%25257D
![Page 11: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/11.jpg)
Obtaining list GUID
http://samplecompany/departments/Acquisition-Disposition/_layouts/ViewEdit.aspx?List=%7BF145CA77%2DBE80%2D42E7%2DB5A8%2DD9A93D6B2311%7D&View=%7B541119CB%2DA982%2D449F%2DA1DF%2DEDF70DF755AE%7D&Source=%252Fdepartments%252FAcquisition%252DDisposition%252F%255Flayouts%252Flistedit%252Easpx%253FList%253D%25257BF145CA77%25252DBE80%25252D42E7%25252DB5A8%25252DD9A93D6B2311%25257D
![Page 12: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/12.jpg)
Obtaining list GUID
• %7BF145CA77%2DBE80%2D42E7%2DB5A8%2DD9A93D6B2311%7D
• Replace the following text with the appropriate character:– %7B becomes {– %2D becomes –– %7D becomes }
• Your text should look like:{F145CA77-BE80-42E7-B5A8-D9A93D6B2311}
![Page 13: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/13.jpg)
Obtaining view GUID
http://samplecompany/departments/Acquisition-Disposition/_layouts/ViewEdit.aspx?List=%7BF145CA77%2DBE80%2D42E7%2DB5A8%2DD9A93D6B2311%7D&View=%7B541119CB%2DA982%2D449F%2DA1DF%2DEDF70DF755AE%7D&Source=%252Fdepartments%252FAcquisition%252DDisposition%252F%255Flayouts%252Flistedit%252Easpx%253FList%253D%25257BF145CA77%25252DBE80%25252D42E7%25252DB5A8%25252DD9A93D6B2311%25257D
![Page 14: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/14.jpg)
Obtaining view GUID
• %7B541119CB%2DA982%2D449F%2DA1DF%2DEDF70DF755AE%7D
• Replace the following text with the appropriate character:– %7B becomes {– %2D becomes –– %7D becomes }
• Your text should look like:{541119CB-A982-449F-A1DF-EDF70DF755AE}
![Page 15: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/15.jpg)
Creating the data source
• SOAP Service Connection– Enter WSDL for your site– http://samplecompany/departments/acquisi
tion/_vti_bin/lists.asmx?wsdl– “ListSoap” is the Port that is selected– The Operation should be “GetListItems”– listName = List GUID– viewName = View GUID
• Repeat for each list
![Page 16: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/16.jpg)
Connecting to data view
• Empty Data View Web Part• Connect to your data sources• Select “Merge” for each entry
![Page 17: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/17.jpg)
Formatting data view
• Conditional formatting• Grouping and sorting• Formatting text and field types
![Page 18: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/18.jpg)
DEMO
![Page 19: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/19.jpg)
Conclusion
• Make sure your views are all formatted the same
• Empty data view lets you connect to multiple sources
• Any web part can be exported to the global gallery
![Page 20: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites](https://reader034.vdocuments.mx/reader034/viewer/2022051513/547c4f1ab4795989508b4626/html5/thumbnails/20.jpg)
Royal Oak306 S. Washington Ave.Suite 212Royal Oak, MI 48067p: (248) 546-1800
Thank You
Grand Rapids15 Ionia SWSuite 270Grand Rapids, MI 49503p: (616) 776-1600
(c) C/D/H 2007. All rights reservedwww.cdh.com