Browsed by
Tag: SharePoint 2010

Read a SharePoint list using JavaScript

Read a SharePoint list using JavaScript

There are countless ways to read data from a SharePoint list, and also myriad methods to do this in JavaScript, but I’m going to document this one way as a place to get started, and a published function I can refer back to if needed! First consider the following: Reading SharePoint list data using JavaScript requires the SP.js file to be loaded already. So, we should be putting this function inside of a $(document).ready(function())}; and if needed inside an ExecuteOrDelayUntilScriptLoaded(functionName,…

Read More Read More

Manage Created & Modified info on custom form in XSLT

Manage Created & Modified info on custom form in XSLT

Just wanted to write this down so I don’t forget how to do this, if this helps someone else out even better! If you’re wanting to access the Created By, Created On, Modified By and Modified on information on a custom list form in SharePoint 2010 or 2013, you can do this using the SharePoint:CreatedModifiedInfo control and use the CustomTemplate element, like so: <SharePoint:CreatedModifiedInfo ControlMode=”Display” runat=”server”> <CustomTemplate> <SharePoint:FormField FieldName=”Author” runat=”server” ControlMode=”Display” DisableInputFieldLabel=”true” /> <SharePoint:FieldValue FieldName=”Created” runat=”server” ControlMode=”Display” DisableInputFieldLabel=”true”/> <SharePoint:FormField FieldName=”Editor”…

Read More Read More

The data source control failed to execute the insert command

The data source control failed to execute the insert command

While working on a custom form the other day, we noticed the form that was working fine was suddenly throwing the following error: “The data source control failed to execute the insert command” Without anything to go off of we started comparing version history in the form, comparing source control versions, searching online, nothing really worked. It ended up being a combination of several things. First, make sure your XSLT databinding parameter matches the type of databinding you’re doing. For…

Read More Read More

SharePoint Saturday Phoenix 2013

SharePoint Saturday Phoenix 2013

If you attended my session on Connecting a SharePoint list to a SQL table for CRUD ops, thank you for coming! If you missed it, or if you wanted to review it again, my girlfriend was kind enough to record it for everyone! The projector can be difficult to see due to room lighting, but you can always follow along with the slide deck. Both are included in this post: Slide deck