what did one form say to another?

T

troyk

No one knows because i can't get them to pass data or pickup data from
another form. We have a very complicated form process and currently
once a form has been submitted we have to manually generate 3 more
forms based on the orginal form. It would be great if the original
form could send data to the other three OR automatically have the other
three open and they pick up the correct data. Leaving me to hit submit
(to save in the form library). I am not a programmer but i do have a
VB background so i am not afraid to edit some code. thanks for any
help!
 
G

Greg Collins [InfoPath MVP]

Open forms can communicate with each other. There is an XDocuments collection which has a reference to each open form's XDocument object. Once you have a reference to another form's XDocument object, then you can modify it just as you would your current XDocument.

Your main form can use NewFromSolution() or NewFromSolutionWithData() to open the three other forms. These functions return a reference to the new XDocument object. This reference, as stated before, will allow you to populate fields in the newly opened forms.

Hope that helps.
 

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