Initialize task form fields with infopath form values - InfoPath Dev
in

InfoPath Dev

Initialize task form fields with infopath form values

Last post 12-14-2010 11:06 PM by Skilpit. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-09-2010 12:16 AM

    Initialize task form fields with infopath form values

    Hi guys, I'm trying to initialize a task form (in my workflow) with values contained in my infopath form (the global one if I could call it like this ^^). For example, I've a worflow which is activated on a command from a client. The first task is assigned to the client, he has to fill in a form with some values (command name, adress, ...). Next, I save those values to my "global" infopath form. It works. After that, I create a task for the command manager who get a summary of the command and he has to validate it or not. In this form, I want to retrieve values from the global form. This is the problem. I tried to use a data connection on the global infopath form and set the default value of the field in the task form. For example, the command name : @CommandName. And it doesn't retrieve any value... I don't know if you need more information and if you guys understand my question cause it can be a bit confused. So don't hesitate to ask me question to clarify ;-) Cheers and hope to get answer soon cause I'm limited with the time ^^ Skilpit
  • 12-09-2010 06:23 AM In reply to

    Re: Initialize task form fields with infopath form values

    Hi Skilpit,

    Why not just assign the form to the command manager instead of creating a separate task? Your approach seems overly complex. Are you trying to support parallel workflow? It sure seems like yo uare trying to use SharePoint workflow just for the sake of using SharePoint workflow. Just do forms-based workflow with assignment - it will support sequential workflow review just fine.

    Yours unduly,

    Patrick Halstead
    Project Manager at Qdabra
  • 12-09-2010 01:26 PM In reply to

    Re: Initialize task form fields with infopath form values

    hi Patrick, It's because the command manager is not the only person who participate in the workflow, after the command manager, there is the dev team, after that the delivery and so on... Several participants whose have to complete different fields to fill. Do you understand what I mean ? I'm a bit crap in explication ^^
  • 12-14-2010 11:06 PM In reply to

    Re: Initialize task form fields with infopath form values

    Hello world,

    This issue is solved now.

    My workaround : Define a Content Type for each fields. Add extended properties to the task with the name of your field : myTaskProperties.ExtendedProperties["myFieldName"] = "my expected value";

    This is the way to pre-fill your form by the code.

    To retrieve data from your global infopath form : I've a method which do that. This method is going to read the xml (my global infopath) and get the value. After that, I add this value instead of "my expected value" above.

    If you want more explanation or code, don't hesitate to contact me ;-)

    Cheers

    Skilpit
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.