I am back with a new question
I am using a built in field (Title GUID -
in a custom list. The requirement is to have this field unique, so I thought of using EnforceUniuqeValues property of SharePoint 2010.
Unfortunately this is not working when I set this property to true in list schema.xml. there is no exception or error, the list gets deployed properly however the
field is not set to unique.
Code looks like:
If I try using the object model (as mentioned in documentation
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.enforceuniquevalues.aspx), I get SPException while updating the field. I however can set the field unique from UI after the deployment.
The SharePoint documentation on this property says it cannot be set for built in columns.
Then I wonder why it is allowed from UI.
Please suggest if anyone has any clue on this. If at all it is possible to programm
View Complete Post