Top Banner
Data View / List View
21

Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

Dec 01, 2014

Download

Technology

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.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

Data View / List View

Page 2: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

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

Expertise

Page 4: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

Talks TechC D H

Page 5: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

About me

Julie BoudroConsultantMCITP, MCTS, [email protected]

Page 6: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

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

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

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

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

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

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

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

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

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

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

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

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

DEMO

Page 19: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

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

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

Page 21: Using Web Services and the Data View Web Part to combine lists from multiple SharePoint sites

About me

Julie BoudroConsultant

MCITP, MCTS, [email protected]