Passing data between forms - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Passing data between forms Passing data between forms Last post 01-07-2014 09:47 AM by craig.j.comeau. 24 replies. Page 2 of 2 (25 items) < Previous 1 2 Sort Posts: Oldest to newest Newest to oldest Previous Next 01-02-2014 09:36 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact I think you are missing a space between the command name and the parameter. Set the command field to: GetInputParameter /key=name Hilary Stoupa 01-02-2014 09:45 AM In reply to craig.j.comeau Joined on 12-31-2013 Posts 8 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact Thank you but, getting a different error now. The requested key name was not specified in the input parameters 01-02-2014 09:51 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact So - what is the URL you are using to open the form? Has it got the "name" query parameter in it? Hilary Stoupa 01-02-2014 01:22 PM In reply to craig.j.comeau Joined on 12-31-2013 Posts 8 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact yes, i have a link on the source form to the path of the target form which is concat ("P:\infopath test\target form.xsn?openin=client name=", name) 01-02-2014 01:31 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact You'll be wanting an "&" in here: concat ("P:\infopath test\target form.xsn?openin=client&name=", name) Hilary Stoupa 01-02-2014 04:55 PM In reply to craig.j.comeau Joined on 12-31-2013 Posts 8 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact Still getting the same error The requested key name was not specified in the input parameters. I appreciate your help. Any other ideas? 01-02-2014 05:18 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact I don't know that I've tried this with a form published to a local or network drive, which I am guessing is what you are doing. You can test the command in your target form using the command prompt - you can pass in your input params via command prompt and verify that the target form works. More here - http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx If you want me to take a look at your target form, I could do that sometime tomorrow - you can attach to a reply under the "Options" tab. Hilary Stoupa 01-03-2014 05:22 AM In reply to craig.j.comeau Joined on 12-31-2013 Posts 8 Re: Passing data between forms target form published.xsn Mark as Not AnswerMark as Answer... Reply Contact If you can take a look i would greatly appreciate it. I can't get it to work. 01-03-2014 08:12 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Passing data between forms scrn.png Mark as Not AnswerMark as Answer... Reply Contact The problem is not your target form - it is set up correctly (see the attached screenshot - I used the command prompt to pass in input params to the form). I think the problem is that your form is on a network location and URL parameters are not being passed in. Will your final form be on a network location? Or published to SharePoint? Hilary Stoupa 01-07-2014 09:47 AM In reply to craig.j.comeau Joined on 12-31-2013 Posts 8 Re: Passing data between forms Mark as Not AnswerMark as Answer... Reply Contact That was exactly the problem. I published to a sharepoint site and it works flawlessly. The one question i have left is how do i get the second form to open automatically without having to click save and open on the browser downloads window? Page 2 of 2 (25 items) < Previous 1 2 Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I think you are missing a space between the command name and the parameter. Set the command field to:
GetInputParameter /key=name
Thank you but,
getting a different error now. The requested key name was not specified in the input parameters
So - what is the URL you are using to open the form? Has it got the "name" query parameter in it?
yes, i have a link on the source form to the path of the target form which is concat ("P:\infopath test\target form.xsn?openin=client name=", name)
You'll be wanting an "&" in here:
concat ("P:\infopath test\target form.xsn?openin=client&name=", name)
I don't know that I've tried this with a form published to a local or network drive, which I am guessing is what you are doing. You can test the command in your target form using the command prompt - you can pass in your input params via command prompt and verify that the target form works. More here - http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx
If you want me to take a look at your target form, I could do that sometime tomorrow - you can attach to a reply under the "Options" tab.
The problem is not your target form - it is set up correctly (see the attached screenshot - I used the command prompt to pass in input params to the form). I think the problem is that your form is on a network location and URL parameters are not being passed in. Will your final form be on a network location? Or published to SharePoint?
That was exactly the problem. I published to a sharepoint site and it works flawlessly. The one question i have left is how do i get the second form to open automatically without having to click save and open on the browser downloads window?