Skip to main content

Posts

Joins in SharePoint COM

private void GetParts( string searchSku) { Parts.Clear(); List partsList = clientContext.Web.Lists.GetByTitle( "Parts" ); List inventoryLocationsList = clientContext.Web.Lists.GetByTitle( "Inventory Locations" ); CamlQuery camlQueryPartsList = new CamlQuery(); camlQueryPartsList.ViewXml = @"<View> <Query> <Where> <BeginsWith> <FieldRef Name='SKU' /> <Value Type='Text'>" + searchSku + @"</Value> </BeginsWith> </Where> </Query> </View>" ; CamlQuery camlQueryInvLocationList = new CamlQuery(); camlQueryInvLocationList.ViewXml = @"<View> <Query> <Where> <BeginsWith> <FieldRef Name='PartLookupSKU' /> <Value Type='Lookup'>" +...

Get ALL ListNames through Client object Model

ClientContext clientContext =             new ClientContext( "http://intranet.contoso.com" );         ListCollection listCollection = clientContext.Web.Lists;         clientContext.Load(             listCollection,             lists => lists                 .Include(                     list => list.Title,                     list => list.Hidden)                 . Where(list => ! list.Hidden)   ...

Client Object Model Sample

Get All List Items : ClientContext clientContext = new ClientContext( "http://intranet.contoso.com" ); List list = clientContext.Web.Lists.GetByTitle( "Announcements" ); CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = "<View/>" ; ListItemCollection listItems = list.GetItems(camlQuery); clientContext.Load(list);clientContext.Load(listItems); clientContext.ExecuteQuery(); foreach (ListItem listItem in listItems) Console.WriteLine( "Id: {0} Title: {1}" , listItem.Id, oListItem[ "Title" ]); Creating List using COM, Add Fields and populate Data: ClientContext clientContext = new ClientContext( "http://intranet.contoso.com" ); Web site = clientContext.Web; // Create a list. ListCreationInformation listCreationInfo = new ListCreationInformation(); listCreationInfo.Title = "Client API Test List" ; listCreationInfo.TemplateType =...

Users AD Browser Webpart

http://usersadbrowser.codeplex.com/

SharePoint 2010 News Rotator

http://newsrotator.codeplex.com/

Using the SharePoint 2010 Silverlight Client Object Model and Excel Services REST API

http://www.deviantpoint.com/post/2010/02/07/Example-Using-the-SharePoint-2010-Silverlight-Client-Object-Model-and-Excel-Services-REST-API.aspx Download: ExcelChartViewerSL.zip (975.87 kb)

SharePoint Multiple files Download as zip file

SharePoint Multiple files Download as zip file The user has selected some documents and a sub-folder so my custom ribbon button is enabled: The user clicks on this button and this feature executes and after it’s complete the user is prompted with this (note, the filename is a timestamp): The user saves it down locally to his computer and sees all the files are there: WSP file (Site collection feature): DeviantPoint.DownloadZip.wsp (84.84 kb) Visual Studio 2010 Project file: DeviantPoint.DownloadZip.zip (317.01 kb)