Browsed by
Month: June 2014

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