none
content type display/edit forms in SPD for workflows

    Pergunta

  • Hi,

    we migrated sharepoint sites using database attach detach method. And have a workflow along with that. I have clicked ok for "Auto generate to xsn".

    after upgrading, there are several issue compared to designing a new workflow from scratch. One of them was the content type form urls were all empty having the text "click here to enter text".

    1. I changed the display form url to "lists/listname/displayform.aspx"

    2. Clicked on push changes to site and list before and after saving the content type

    now, i go back to the site, click on the task form. It only opens the edit form..  I donot find this issue while deisgning a new workflow.

    is there any way to set this url at any other place for this task form content type?? like in the xoml.xml.

    Please help me on this.

     

    sexta-feira, 15 de junho de 2012 19:46

Todas as Respostas

  • Answer: :)

    "Push changes" button acts like a check box. select on that, save the form and refresh... all the details are saved to the list content types as well..

    need to confirm on one thing..

    the workflow task edit forms, throw an error if i manually go and create a task in the list with that content type. since they bind with the workflow.. is it a default behaviour ?

    sábado, 16 de junho de 2012 15:56
  • Hi ,

    When you create a SharePoint Designer workflow which have an action to create a task , a correaponding content type will be created after publihsh the workflow .The content type is added to the Tasks list .You can create a new Task using the content type ,but when you edit the task there will be an unexpected error .This is beacuse the EditForm and DispForm set for the content type is _layouts/WrkTaskIP.aspx .This page is used in a workflow and when you use it for manually created tasks ,it will throw an error just like you says .

    Thanks


    Entan Ming

    TechNet Community Support

    segunda-feira, 18 de junho de 2012 09:17
    Moderador
  • Thanks a lot for that confirmation !!

    I have a new issue now. the content type view form shows a value of my field as "ID" where as the edit form shows the corresponding value.

    this field was created as a single line of text in the collect dat from user activity. I created a data connection. changed this control to drop down list and mapped to the field. i had to select "id and title". If i slect title and title , getting a coercion error.

    i need to display the value rather than the id in this view form. any ideaS?

    segunda-feira, 18 de junho de 2012 16:17
  • Hi ,

    Can you describe the detailed steps that  you take to customize the workflow ?I can change the Single line of text field to a drop down and show Title instead of ID .Here are the detailed steps:

    1. Create a list workflow in SharePoint Designer .Add an action ‘Collect data from user ’ .
    2. Add a single line of text column in the collect data action .
    3. Publish the workflow and open the New Task_x0028_9_x0029.xsn in InfoPath Designer to edit the task form .
    4. Right click on the text box control and choose Change Control >Drop Down list box .
    5. Set the drop down list box to get value from an external data source .Add a data connection to the list where you want to get the value .
    6. In the Values and Display Name column choose d:Title .
    7. Publish the form back to SharePoint Designer .
    Thanks

    Entan Ming

    TechNet Community Support

    quarta-feira, 20 de junho de 2012 03:54
    Moderador
  • Hi Entan,

    Eactly the same steps. Except for step 6, where I select Value as "ID" and Display name as "Title". In this case, display form shows the ID and  edit form am shows the value.

    I need the ID field because, I need to update this value back to the list where the workflow is running. And that field is a lookup in that list.

    Hope am clear. Please verify with the above change.

    quarta-feira, 20 de junho de 2012 07:58
  • Hi ,

    When set the Value as d:ID and set the Display Name as d:Title ,the column will show Title as values no matter on edit form or display form .

    Thanks


    Entan Ming

    TechNet Community Support

    quarta-feira, 20 de junho de 2012 08:31
    Moderador
  • Hi Entan,

    Am sure am getting the value in the display form and the title in the edit form. Please see below.

    I m using Dispform.aspx for view form and my custom task form for editing. I created colour as a look up column. display form shows 7 below and edit form shows the value.


    • Editado meena.v quinta-feira, 21 de junho de 2012 06:03 changed the picture
    quinta-feira, 21 de junho de 2012 05:56