External Lists in SharePoint Workspace

Introduction:

We can connect SharePoint 2010 external list to Microsoft SharePoint Workspace 2010 to work on the external data inside SharePoint Workspace 2010 just like any other list. Any changes or additions to external data made inside SharePoint Workspace are propagated to the external system, without compromising data integrity in the external system.

In this article we will be seeing how to connect external list to SharePoint 2010 workspace and how to update, add and delete the data in the external list.

SQL Database:

I have created a database named Test which contains a table named Table1.

ExterShare1.gif

Table1 has the following columns and data's.

ExterShare2.gif

External Content Type:

I have created an external content type based on the above table Table1 using SharePoint Designer 2010.

ExterShare3.gif

External List:

I have created an external list based on the external content type that I have created. External list has the following data

ExterShare4.gif

Refer http://www.c-sharpcorner.com/UploadFile/anavijai/4236/  to create an external content type and external list using SharePoint Designer 2010.

Connect an External List to SharePoint 2010 workspace:

  1. On the SharePoint Server Ribbon, in the List tab, click Sync to SharePoint Workspace as shown below.

    ExterShare5.gif
     
  2. Sync to SharePoint Workspace wizard will pop up. Click the OK to button to confirm that you want to sync the external list to your computer.

    ExterShare6.gif
     
  3. SharePoint Workspace 2010 will now create a local cached copy of the external list.

    ExterShare7.gif
     
  4. Microsoft Office Customization Installer wizard will pop up, click the Install button.

    ExterShare8.gif
     
  5. Click on Close.

    ExterShare9.gif
     
  6. Once the Syncing is completed, click on Open Workspace.

    ExterShare10.gif
     
  7. This will take few minutes to display the external data in the workspace.

    ExterShare11.gif
     
  8. Now you could see the external data in SharePoint workspace as shown in the following

    ExterShare12.gif

CRUD operations on External List from SharePoint 2010 workspace:

We can now read, create, update, and delete external data directly from SharePoint Workspace 2010 just as like normal SharePoint list items. The changes we make in SharePoint Workspace 2010 will automatically sync with the external list. Since the data is cached, we will be able to access it even when we are offline.

Read operation:

Just click on the external data you could able to see the item details as shown in the following

ExterShare13.gif

Create operation:

On the SharePoint Workspace Ribbon, in the Home tab, click New as shown below.

ExterShare14.gif

Enter the new data and click on Save & Close.

ExterShare15.gif

A new item is updated in the external list as shown in the following

ExterShare16.gif

The changes we made in SharePoint Workspace 2010 will automatically sync with the external list as shown in the following.

ExterShare17.gif

Delete operation:

Select the item to be the deleted, go to the SharePoint Workspace Ribbon, in the Home tab, click Delete as shown below.

ExterShare18.gif

Update operation:

Double click on the item that has to be updated, make the changes and click on Save & Close.

Sorting, grouping, or filtering items in external lists

You can click the drop-down arrows next to column headers in an external list to see the same sorting, grouping, and filtering options that are available for external lists on the SharePoint site.

ExterShare19.gif