2

When my Infopath form loaded in the query string i will get the value. I would like to retrieve the value of a query string parameter. How can I do that in Infopath's form code?

Dennis G
  • 21,405
  • 19
  • 96
  • 133
Bob
  • 79
  • 1
  • 6

2 Answers2

2

Several solutions:

Taking information from those two links the Infopath form code is pretty easy for the URL:

public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
   string qryValue = e.InputParameters["MyQueryValue"];
   //qryValue would return 1 for the URL "http://www.blabla.com/myform.xsn?MyQueryValue=1"
}
Dennis G
  • 21,405
  • 19
  • 96
  • 133
1

Please go through this blog

http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx

Govind
  • 544
  • 1
  • 6
  • 23