Category Archives: SPFieldCalculated

CAML Gt AND Lt AND calculated field AND the wicked U2U CAML Query Builder

U2U CAML Query Builder is a must have tool for SharePoint developers, but today it was giving me grief. I have a calculated column called ‘Duration (months)’. I wanted to find items where duration is less than 24 and more … Continue reading

Posted in CAML, SharePoint, SPFieldCalculated | Leave a comment

Constructor on type ‘Microsoft.SharePoint.SPFieldCalculated’ not found – and the weird SharePoint API

Observed in: SharePoint 2007 and SharePoint 2010. Today I was writing some code to add an SPFieldCalculated column to a list. I got the error message Constructor on type ‘Microsoft.SharePoint.SPFieldCalculated’ not found. when calling SPFieldCollection.CreateNewField(fieldType.ToString(), displayName) This call was working … Continue reading

Posted in SharePoint, SPFieldCalculated | Leave a comment