Taking SharePoint lists, libraries or site offline, might be one of the features your customer will ask sooner or later. Normally you have the ECB menu, where you can find the “synchronize with SharePoint Workspace” Button. But maybe you want to create your own button or link or wrap some more logic to this functionality. In order to do so, i did some researching and came back with a solution, which i would like to share.
In order to achieve this, you’ll have to use a special ActiveXObject which is called Groove.SiteClientActiveX. I found two code snippets and tested them. First one to take offline a whole site and the second one to take a special list or library offline. You need the site url and optionally the list or library id. But look at the code and you will see how it works.
How to take a site offline:
How to take a list or library offline:
Just provide a link which calls one of the functions and it opens the SharePoint Workspace 2010.
..:: I LIKE SHAREPOINT ::..The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.