I'm using InfoPath 2007 beta version display forms using XMLFormView in an
ASP.NET page.
I have a web service to retrieve and submit data to/from the InfoPath form.
My web service (stored procedure ultimately) requires a one query field to
retrieve data which is Personid. I'm getting it from another ASP.NET page as
a parameter which doesn't have any xmlformview controls in that page .
I'm using XPathNavigator to select the query field and set the PersonId in
the ASP page load event which works fine. I have also set a rule in personid
field InfoPath template to specify that if it is not blank then
automatically query the data base through my web service and get the result
which also works fine and I can see all the accurate data in the
xmlformview. (call to the stored procedure is visible in SQL profile trace)
The question is when I modify data and try to submit the form I'm getting a
data validation error saying that cant submit the form since some fields are
blank. (for example, some fields suppose to contain integers like 'age').
But in the runtime xmlformview (inside the ASP page) I can see all fields
with actual data and they are not blank)
My assumption is that InfoPath still thinks that fields are blank even
though they have been bounded to data in the ASP page load event. Cause
after getting the 'cant submit' error if I refresh the page and manually
type a valid person id in the field and retrieve, modify and submit the data
it works fine.
I was using
http://msdn2.microsoft.com/en-us/library/ms778201.aspx as a
resource and done all steps mentioned there.
Does anybody faced to this situation before ? Please let me know.
Thank You,
Chat.