Input Parameters not being picked up - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

Input Parameters not being picked up

Last post 05-02-2013 10:09 AM by NelsonKan@hotmail.com. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-02-2012 01:07 AM

    Input Parameters not being picked up

    Hi,

    We have a large suit of client-based Infopath 2007 forms. They are hosted in form libraries in sharepoint.

    We have a .NET website hosted on a different server which acts as the framework through which role based access and other functions are performed. From this website the user selects which form they wish to complete, click the link, and the link points them to the correct form template passing in some parameters to the form.

    The parameters are picked up in C# within the FormCode.

     So, to launch a form we have http://server/path/template.xsn?Specialty=something

    To pick up the value in FormCode we have:

    if (e.InputParameters.ContainsKey("Specialty"))
    { Specialty = e.InputParameters["Specialty"]; }
    else
    { Specialty = " "; }

    Now, this worked for 99% of people around 99% of the time.

    Sometimes people report the form as "opening blank".

    What this turns out to mean, is that the parameter wasn't detected in the "InputParameters", and so were defaulted to blank.

    Tracing shows the URL did have the value in it, so it is just that the InputParameters object didn't contain the key.

    Often doing an Infopath cache clearall did the trick, but not since upgrading our user estate to IE8 it is happening with greater frequency, and the cache clearall is not working.

     

    Does anyone have any ideas what could be happening, and how to resolve?

     

  • 08-03-2012 10:14 AM In reply to

    Re: Input Parameters not being picked up

    Perhaps this blog post could help out: http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx

    qRules also has an GetParameters function that you can use as well which means you don't have to write your own custom code.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 08-06-2012 01:30 AM In reply to

    Re: Input Parameters not being picked up

    Hi Anson,

     Thanks, I already know how to do it, and it works most of the time, just that on some machines, for some users, the parameters are not picked up in the FormCode.

  • 05-02-2013 10:09 AM In reply to

    Re: Input Parameters not being picked up

    skidmerc, did you solve this issue yet. I ran into this problem with Infopath 2010.

     

    Please let me know if you have solution.

    Many thanks,

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