How to pass parameters to infopath (XSN) from external environment

G

gbs

Hello,
I am developing a .net application that uses form authentication,from
which i am opening the infopath form(xsn) by using the window.open method.I
wrote the code in infopath for submitting the form data to a webservice.
The problem is:
I want to pass the userid of the end user( who opens the application ) to
the infopath form suchthat the xsn form submit the userid to the webservice
along with filled information.Later I want to use that information for user
reports.
If anyone known,please help me to pass parameters to the infopathform
Thank you,
gbs
 
G

gbs

Hello Eran Kampf,
Thank you for the quick response.Could you give a clearer idea. what is
strXmlData in the link you sent? If it is an xmlDoc string containing the
parameters to be sent to the infopath form, then we cannot use this method
because one XSN form can be accessed by many people at the same time.Then
updating the xmlDoc string with userID will be a problem.
Thank you,
gbs.
 
E

Eran Kampf

strXmlData is a string containing the xml data you want to fill into the form.
XSN can indeed be accessed by many peaple at the same time. But the actual
process of filling the form (with xml data) occurs on the client and has
nothing to do with the XSN (you're filling the form not changing the
template...)

Eran Kampf
http://www.ekampf.com/
http://www.ekampf.com/blog/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top