sharepoint - Adding a Column to a Generic List INstance during feature provisioning -
I am trying to create a solution package for a set of features within a SharePoint site. I want to create an example of a generic list (using ListInstance in Element Manifest) and connects through the activation code without any additional columns (by default they have only one title column).
Is there any way to do this through CAML? Therefore, by now I am stuck with the idea of creating a custom content type, but that means that I should have a different feature which is active at the site level, first to deploy the content type.
I believe what you want, snippets:
& lt ;; - Add a field context for the custom field .--> & lt; FieldRef id = "{AD22016D-BC8B-4631-A0A3-5E84C6CFA7EC}" name = "favorite" color "required" = "true" ShowInNewForm = "TRUE" ShowInEditForm = "TRUE" />
: field type = "option" name = "preferred color" DisplayName = "preferred color"> & lt; option> option & lt; options> red & lt; / options > & Lt; CHOICE> Green & lt; / CHOICE> & lt; CHOICE> Blue & lt; / CHOICE & lt; / CHOICES> & lt; / Field> & lt; / Fields>
To make sure it has been added to the view & lt; Scope area> FieldRef name = "Favorite color" /> field
Comments
Post a Comment