.netvisual-studio-2010sharepointsharepoint-2010list-definition

Define choices for inherited column in SharePoint list using Visual Studio


I'm new to SharePoint development and I am trying to create a simple issue tracker for our IT team.

I'm trying to develop a sandboxed solution to deploy to SharePoint Online (O365), which contains a custom content type and list definition based on the "Issue" content type.

This all works fine, but I need to know how to modify the default status choices within my content type / list definition, and I'm not sure how to accomplish this.

The default choices are: Active/Resolved/Closed. I would like them to be: Open/Assigned/In Progress/Closed.

Please note that I understand how to change the choices in SharePoint after the list definition is deployed, but I'd like to define them within my Visual Studio project so that when I deploy the solution, the choices are already set up properly.


Solution

  • I found that I can modify the schema.xml file for the list definition and define the choices there.