mercredi 3 septembre 2014

Sharepoint 2013 & Custom Task Outcome on VisualStudio

This is the how it works:

Add new SiteColumn
Change the Type param value to "OutcomeChoice" in <Field /> tag

Add :   <CHOICES >
                <CHOICE>choice one</CHOICE>
                <CHOICE>choice two</CHOICE>
Add new ContentType  and inherit from Workflow Task (SharePoint 2013)
Add Columns: 
  • % Completed
  • Task Status
  • The custom OutcomeColumn
NB: The order is Important, if the custom Outcome Column is not the last one choices will appear as a DropBox and to as buttons

Add new Task List Instance (Or a Custom list template)

Insure the TemplateType is set to "171" (this Id reference Task template)

If you are working with a Task list Instance Add Schema.xml file to it and copy content from a Task list template (create a new Task list template, copy schema.xml content, modify List Name and URL to match your List Instance )

Deploy and happy to help you.

Please let me know if there is any issue so i can update this article

Aucun commentaire:

Enregistrer un commentaire