Update Features Today I needed to add some additional fields to content types. I heard about upgrade features before, but I never tried using this. It was quite simple. First I added a version number to the feature: Version="220.127.116.11" Then I added some Upgrade actions: Now running an Update-SPSolution to install the new solution does … Continue reading SharePoint 2013 – Update Features
I got the Failed to do column assignments for list error in my SharePoint logs today. Ok, so a quick google/bing and I found this article: http://gordonduthie.net/2011/03/24/failed-to-do-column-assignments-for-list That's easy ... No, it is not the same issue. I don';t have any ColNames specified It looks like the error Failed to do column assignments for list means … Continue reading SharePoint 2013 – Failed to do column assignments for list
My Elements.xml looked like this: <?xmlversion="1.0"encoding="utf-8"?> <Elementsxmlns="http://schemas.microsoft.com/sharepoint/"> <WebTemplate Name="General" Title="General site" Description="General web template for sites" BaseTemplateID="1" BaseTemplateName="BLANKINTRANET" BaseConfigurationID="0" DisplayCategory="My Category" /> </Elements> In my Visual Studio 203 project I created a onext.xml in a folder MyGeneralTemplate and now I'm getting a deployment exception 0x8107026E. When I checked that the onet.xml was … Continue reading SharePoint Exception 0x8107026E When Activating Web Template Feature
Required Lookups Today I had a requirement to make a lookup field required and set the default value. For a lookup field this isn't possible within the SharePoint 2010 interface. My solution Programmatically the SPFieldLookup also doesn't have the options available. However casting the Lookup to an SPField does the trick. public overridevoid FeatureActivated(SPFeatureReceiverProperties properties) … Continue reading SharePoint 2013 – Making a Lookup required and Setting the default value.
In the past 5 years I've worked on quite a few projects and I've seen quite few SharePoint Developers/Consultants/Architect delivering solutions. I started in London What is the best way of deploying SharePoint Solutions? In general if the my customer wants a new website or intranet I deploy my new projects as a Partial Site … Continue reading How do you organise your SharePoint Projects?
What do you do when you have a list with custom forms (editform.aspx, dispform.aspx and newform.aspx) and you want to add some extra fields on that form. Ok, so you get SharePoint Designer out and make the modifications to the forms. But how do we deploy this? First I created a feature with an FeatureActivated Method … Continue reading SharePoint 2010 – Updating custom forms on an existing list