Tuesday, 28 May 2013

How to Add fields(Columns) in list definition ? Part II

1. You should copy the following line & paste on the list definition element.xml & schema.xml
then change the id(youself generated guid) in both place. Remove Overwrite="TRUE" in schema.xml only.

<Field ID="{9FDF6527-1072-4751-8B15-84CA97AE7CBA}" Type="Text" Name="Name" DisplayName="User Name" Overwrite="TRUE" Required="TRUE" Sealed="TRUE"/>


Note: We should generate the ID for each fields. Menu --> Select Tools --> Create GUID --> Copy


No comments:

Post a Comment