Archive for the ‘Development’ Category

SPField.Type is undefined for External List fields

Tuesday, January 31st, 2012 in Development, SharePoint 2010.
Tags: , ,

No Comments »

You can check the type of list column using SPField.Type and get a nice object of type SPFieldType.

But this method doesn’t work for External Lists.
(more…)

Package Designer – update safe controls.

Sunday, June 26th, 2011 in Development, SharePoint 2010.
Tags: , , ,

No Comments »

Today I polished my solution after a couple of months of development. After all the design changes and new requests I wanted to reorganize my solution. One of my tasks was to reorganize all the namespaces for the web parts. When each web part in the solution is developed by a different person sometimes namespaces are different as well. I started to change namespaces for all the web parts when I found out that my changes do not appear in the package manifest file. The safe controls list in the manifest file hadn’t change.

Theoretically it can be changed manually but the maintaining of the manually manifest is too hard.

So after a couple of experiments I figured it out.

(more…)