Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Here's the situation: I have a site column of type Choice that is used in content types and libraries. Document libraries contain items. So the site column is currently used. I have created a custom field type and I would like to the site column to used this new custom field type.

Is it possible to change the field type of a site column through code? Maybe with spfield.schemaxml? Or will I have to create a new site column based on the new field type, move all the existing data to the new column and delete the original column?

Note that the custom field type (ParentType=Choice) was createad to have custom RenderPattern (display).

(This is for MOSS 2007)

share|improve this question
add comment

1 Answer

You have to create a new site column and migrate the data across.

share|improve this answer
    
exactly. it gets cached from here to high hell, so creating a new field is the only thing that i have got working –  Anders Rask Jan 19 '11 at 8:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.