Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Custom fields and Custom content types programmatically

$
0
0

Hi,

I have created custom content type and associated custom fields programmatically and deployed to sharepont and then added content type to a library.

I am facing some wierd situation here.

If I update the field properties in the code and redploy the code, the field with updated field property will appear  only at Site level, not library level.

Ex: First I created column A with a required field option and Allow multiple Selections option and deployed.Once I deploy the code I can see Column A with a required field option and Allow multiple Selections option at library.

After sometime if I remove Required option for colum A and deploy the code, I can see Column A with updated option only at site level but at library level Column A still showing "Require that this column contains information: Yes".

Same thing is happening for Content Type too.

I want to see updated column not only at site level but also at library level if I do any changes in the code and deploy.

Can anybody let me know how to get the updated column at library if it is added to any library?

 

Thank you, 

 


AA.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>