We have a dozen or so Infopath 2007 Forms.
They were hosted on a Wss 3.0 platform.
They are launched from a .net application we have, which simply calls:
http://<url>/template.xsn?parameter1=whatever
This worked pefectly, until we moved to Forms Server 2007.
Calling the same templates from the same website now no longer works.
The templates open, but the code is unable to get the InputParameters now.
The following code proves the InputParameters now look to be 0.
Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)
MessageBox.Show("Loading!")
If e.InputParameters.Count = 0 Then
MessageBox.Show("InputParameters are 0")
End If
For Each s As System.Collections.Generic.KeyValuePair(Of String, String) In e.InputParameters
MessageBox.Show("In for loop!")
Next
End Sub
I get the "Loading!" messagebox, and then the "InputParameters are 0" box.
Can anyone explain why this is? Seems to be dropping the parameters?
When I put on Fiddler, i can see the parameter(s) do appear to be there:
http://<server>/FormTest/forms/template.xsn?OpenIn=PreferClient&specialty=general
Have also tried:
http://<server>/FormTest/forms/template.xsn?OpenIn=Client&NoRedirect=False&specialty=general
But again no luck, looks as though the "specialty" parameter is not getting passed in.