data view در شیرپوینت 2010
To display a list in a site collection from a different site collection:
- Open Internet Explorer and browse to your SharePoint list from which you would like to display data from.
- In the ribbon, click on Library

- Click on Library Settings

- In Internet Explorer’s address bar, copy the contents of the url after the List=

- Open notepad and paste contents.
Example: %7B4C36CA74%2DF413%2D493B%2DA5FA%2D3C3B607FC5D5%7DNext we need to decode contents of the list GUID:Replace the beginning %7B with {
Example: {4C36CA74%2DF413%2D493B%2DA5FA%2D3C3B607FC5D5%7DReplace the %7D at end with }
Example: 4C36CA74%2DF413%2D493B%2DA5FA%2D3C3B607FC5D5Replace all instances of %2D with –
Example: {4C36CA74-F413-493B-A5FA-3C3B607FC5D5}Keep this window open as we will need the list GUID later.
- Open SharePoint Designer 2010.
- Open the web site where you would like to display the list contents.
- In the left-menu, under Site Objects, click on Data Sources.

- On the top, click on Data Sources tab, then on SOAP Service Connection.

- In the Data Source Properties window:
- Click on the login tab.
- Under options, select “Save this username and password in the data connection”. Enter appropriate service account and password that has access to the site.
- Click on the Source tab.
- In the Service description location field, type in: /_vti_bin/lists.asmx
- Click on Connect Now button.
- Set Port drop-down = ListsSoap.
- Set Option drop-down = GetListItems.
- Open the notepad file and copy the list guid from step 5.a above.
- In the Parameters sub window, double-click on listName.
- Paste the copied list GUID into Value field.

- Click on the OK button.
- Window should look similar to:

- Click on the OK button.
- In the left-menu, click on Site Pages:

- In the right-window, right-click on the page you would like to add the list and select checkout.
- Right-click on the file again and select Edit File in Advanced Mode.
- Left-click in the page area where you want to add the Data View.
- On the top menu, click on Insert then Data View, then under SOAP services, double-click on the connection created above (e.g. Lists on yourcompany.com).

- A Data Form Web Part will appear.

Also, on the right-side the Data Source Details will appear.
- Save and check-in the page.
- View the page in the browser.
+ نوشته شده در دوشنبه هشتم اسفند ۱۳۹۰ ساعت 13:18 توسط لیلی وضیع تن
|