Can not pass a value in to info path Task Form - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Can not pass a value in to info path Task Form

Last post 03-05-2012 08:43 PM by LewisV. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-01-2012 11:33 PM

    • LewisV
    • Not Ranked
    • Joined on 03-01-2012
    • Posts 3

    Can not pass a value in to info path Task Form

     i need to pass a value to info path form when workflow create a task.to do that i use   

    taskProperties.ExtendedProperties["txtBox"]="Testing";

    and i binded the textbox field in to ows_Name. but it doesnt show the data i'm passing.

     

    please help me to fix the problem

    Thanks

     

  • 03-04-2012 08:38 PM In reply to

    • LewisV
    • Not Ranked
    • Joined on 03-01-2012
    • Posts 3

    Re: Can not pass a value in to info path Task Form

     AnyBody??????

  • 03-05-2012 08:12 AM In reply to

    Re: Can not pass a value in to info path Task Form

    I think your original post may have insufficient information for anyone to really understand where the issue is. Where is the line of code you posted running? Do you have two forms or one? Is the issue in the forms or the workflow, or do you need help troublshooting that?

    Hilary Stoupa

  • 03-05-2012 08:43 PM In reply to

    • LewisV
    • Not Ranked
    • Joined on 03-01-2012
    • Posts 3

    Re: Can not pass a value in to info path Task Form

     Workflow and info path form are working fine.i use one info path form.when workflow run it create a task for a user.if the user open that task he can see a info path form.i need to pass some data in to that info path form when creating the task properties.

    this is the method .

    private void CreateTaskProperties(SPWorkflowTaskProperties taskProperties, string approverRole, string TaskTitle, Person approverPerson, StringBuilder category)
            {
                
                try
                {
                    currentApprover = new CurrentApprover();
                    currentApprover.LoginName = approverPerson.AccountId;


                  
                    taskProperties.AssignedTo = approverPerson.AccountId;
                    taskProperties.Title = string.Format("{1} - {0}", "test","test");
                    taskProperties.TaskType = 2;

                    taskProperties.ExtendedProperties["Name"] = "testing";// this the code line where i pass data in to info path form.

     

    //other code lines...............

     

    there is a textbox in the info path form it field name is  "Name".

    i binded that textbox default value in to the "ows_Name" which is in the itemMetaData.xml(Secondary data source).

     

    info path form working fine but the data i pass is not display in the form just empty textbox.

     

    Thanks..

     

     

     

     

     

     

     

     

     

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