none
Custom content type derived from Workflow Task

    Question

  • It's about the custom content type in sharepoint workflow, not sure here is the right place to post this thread. If not please move it to the right place, thanks.

    I created a content type derived from Workflow tasks by adding '01' just behind the first 6 letters '0x0108' in ContentType ID.
    And I added 9 fields, which you will see later. The workflow works fine and the task is assigned the New Workflow List based on my content type as expected.

    But only the last one field defined in content type xml file can be displayed when editting the task item.

    It seems that the first 8 fields are covered by the default 8 fields of Workflow Task content type, which are Priority, Status, % Complete, Assigned To, Description, Start Date, Due Date, Workflow Name. I added 2 more fields in my content type xml file, and they can be displayed as well.

    How can I prevent the default fields hiding my ones? What am I missing in the xml file? Thanks in advance.

    <?xml version="1.0" encoding="utf-8"?>
    
    <Elements Id="88cde57c-cddc-4dad-9c15-535716324d65" xmlns="http://schemas.microsoft.com/sharepoint/">
    
      <ContentType ID="0x010801009d1172b48de7410f9d81cfcaacb6355e"
    
                   Name="AdminTaskListContentType"
    
                   Group="Development"
    
                   Description="Developing Content Type"
    
                   Version="0">
    
        <FieldRefs>
    
          <!--
    
          <FieldRef ID="{ab04cb61-55d0-4cad-8892-7778000e4acf}" Name="AdminTaskListContentTypeField" />
    
          -->
    
          <FieldRef ID="{A1C2DEF0-BCA7-42f9-B754-5EA7EF6891BF}"
    
                    Name="StudentID" />
    
          <FieldRef ID="{138AFBB9-51CA-4913-BDB2-00BC4AA630A2}"
    
                    Name="StudentName" />
    
          <FieldRef ID="{559EA15D-A5CD-4c41-A462-BAFAAE9C5D00}"
    
                    Name="StudentDOB" />
    
          <FieldRef ID="{35AA8BA6-E686-4127-AAD8-4FF40D1EE3F9}"
    
                    Name="StudentCurrYearOfProgram" />
    
          <FieldRef ID="{867A61CF-C9AD-4e58-9CC1-DD77B43EB395}"
    
                    Name="StudentCurrProgramCode" />
    
          <FieldRef ID="{2C7D380B-9B57-4e02-ACA2-AB276D9A0D36}"
    
                    Name="StudentCurrentProgram" />
    
          <FieldRef ID="{C3B84052-1133-4ce2-B1A3-994D46119036}"
    
                    Name="StudentNewProgram" />
    
          <FieldRef ID="{41E5E507-D521-4815-B456-53CF330FF96B}"
    
                    Name="StudentMessage" />
    
          <FieldRef ID="{E6D5D145-8CB7-4381-A4F7-07739F10DA9C}"
    
                    Name="ProgramConvener" />
    
        </FieldRefs>
    
      </ContentType>
    
      <!--
    
      <Field ID="{ab04cb61-55d0-4cad-8892-7778000e4acf}"
    
             Type="Text"
    
             Name="AdminTaskListContentTypeField"
    
             DisplayName=" Admin Task List ContentType Field"
    
             StaticName="AdminTaskListContentTypeField"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE" />
    
      -->
    
      <Field ID="{A1C2DEF0-BCA7-42f9-B754-5EA7EF6891BF}"
    
             Type="Text"
    
             Name="StudentID"
    
             DisplayName="Student ID"
    
             StaticName="StudentID"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{138AFBB9-51CA-4913-BDB2-00BC4AA630A2}"
    
             Type="Text"
    
             Name="StudentName"
    
             DisplayName="Student Name"
    
             StaticName="StudentName"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{559EA15D-A5CD-4c41-A462-BAFAAE9C5D00}"
    
             Type="Text"
    
             Name="StudentDOB"
    
             DisplayName="Date Of Birth"
    
             StaticName="StudentDOB"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{35AA8BA6-E686-4127-AAD8-4FF40D1EE3F9}"
    
             Type="Text"
    
             Name="StudentCurrYearOfProgram"
    
             DisplayName="Current Year Of Programme"
    
             StaticName="StudentCurrYearOfProgram"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{867A61CF-C9AD-4e58-9CC1-DD77B43EB395}"
    
             Type="Text"
    
             Name="StudentCurrProgramCode"
    
             DisplayName="Current Programme Code"
    
             StaticName="StudentCurrProgramCode"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{2C7D380B-9B57-4e02-ACA2-AB276D9A0D36}"
    
             Type="Note"
    
             Name="StudentCurrentProgram"
    
             DisplayName="Current Programme"
    
             StaticName="StudentCurrentProgram"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             ShowInViewForms="TRUE"
    
             Viewable="TRUE" />
    
    
    
      <Field ID="{C3B84052-1133-4ce2-B1A3-994D46119036}"
    
             Type="Note"
    
             Name="StudentNewProgram"
    
             DisplayName="New Programme"
    
             StaticName="StudentNewProgram"
    
             Hidden="FALSE"
    
             Required="TRUE"/>
    
    
    
      <Field ID="{41E5E507-D521-4815-B456-53CF330FF96B}"
    
             Type="Text"
    
             Name="StudentMessage"
    
             DisplayName="Messages from student"
    
             StaticName="StudentMessage"
    
             Hidden="FALSE"
    
             Required="FALSE"
    
             Sealed="FALSE"
    
             Viewable="TRUE"/>
    
    
    
      <Field ID="{E6D5D145-8CB7-4381-A4F7-07739F10DA9C}"
    
           Type="Text"
    
           Name="ProgramConvener"
    
           DisplayName="Program Convener"
    
           StaticName="ProgramConvener"
    
           Hidden="FALSE"
    
           Required="FALSE"
    
           Sealed="FALSE"
    
           Viewable="TRUE"/>
    
    </Elements>
    
    
    
    
    Wednesday, February 03, 2010 5:39 PM

Answers