Answered To make wrktaskip.aspx workflow specific

  • Friday, June 08, 2012 6:20 PM
     
     

    I need to make some changes to the wrktaskip.aspx just for one of the workflows. If I copy the file and paste it, rename it to wrktaskipWFName.aspx.. and refer this new page in my content types as the disp and edit form. I am able view the forms properly. . Is this a proper way to do ??

    and can we upload this custom wrktasipWFName.aspx to any of the document library and refer to the content type from there?

    if we need ot give a different form url for display form... How do we design the form ? For e.g. when i click on the task i should be able to view all the fields, but when i click on edit i should be able to see my infopath form. how can this be acheived?

    If i want to view a field in the task list, i always have to add the column in my view. Is there any other way to customise the view? i have several columns in my task form and i cannot show that in the view. but need it when the user click on view item on the task list item.

All Replies

  • Thursday, June 14, 2012 2:56 AM
    Moderator
     
     
    Hi meena,

    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.

    Thanks,
    Lhan Han
  • Saturday, June 30, 2012 12:11 AM
     
     Answered

    In your content type, you will have whatever form you specify for that content type wherever you access it. So if you add it to several lists, it should be able to access the forms regardless of the workflow running or the list it is in.

    You can specify your form by URL using this-

      <ContentType>

                   

        <XmlDocuments>

          <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">

            <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">

              <New>_layouts/MyCustomForms/TaskForm.aspx</New>

              <Display>_layouts/ MyCustomForms/TaskForm.aspx</Display>

              <Edit>_layouts/ MyCustomForms/TaskForm.aspx</Edit>

            </FormUrls>

          </XmlDocument>

        </XmlDocuments>

      </ContentType>

    Note that the location specified uses a folder in the _layouts folder so it will be available anywhere in the environment where your content type may end up. You can also use “/forms/formname.aspx” if you wish.

    The other method is using the form names-

      <ContentType>

                   

        <XmlDocuments>

          <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms ">

    <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">

    <Display>DocumentLibraryForm</Display>

    <Edit>DocumentLibraryForm</Edit>

    <New>DocumentLibraryForm</New>

    </FormTemplates>

          </XmlDocument>

        </XmlDocuments>

      </ContentType>

    This is requires that you add your forms to the list’s Forms directory, at least a reference to a ghosted file.

    Here is an article with more information on creating content types-

    http://msdn.microsoft.com/en-us/library/ms460224

    Here is one way to publish forms using InfoPath and the Central Administration site in SharePoint-

    http://msdn.microsoft.com/en-us/library/ms772110(v=office.14).aspx

    You can also deploy them as modules in a Visual Studio SharePoint project (which generates a WSP solution file).

  • Monday, July 02, 2012 5:04 AM
     
     

    Can you reply on this

    I need to make some changes to the wrktaskip.aspx just for one of the workflows. If I copy the file and paste it, rename it to wrktaskipWFName.aspx.. and refer this new page in my content types as the disp and edit form. I am able view the forms properly. . Is this a proper way to do ??

    and can we upload this custom wrktasipWFName.aspx to any of the document library and refer to the content type from there?

     

  • Thursday, July 05, 2012 7:24 PM
     
     Answered

    Yes that should work just fine.

    -Westley Hall (MSFT)