<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate values from different form</title><link>https://www.infopathdev.com:443/forums/thread/9270.aspx</link><pubDate>Fri, 21 Apr 2006 01:45:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9270</guid><dc:creator>SamDahl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9270</wfw:commentRss><description>Here's the javascript solution I've implemented. Just to add another similar example:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;function btnRaiseChange::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	var xDoc = Application.XDocuments.NewFromSolution("http://test/Forms/template.xsn");&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;	var sourceNode = XDocument.DOM.selectSingleNode("/my:myFields/my:group4/my:deviceName");&lt;br /&gt;        //had trouble with namespaces so came up with the //*[local-name()='deviceName'] solution&lt;br /&gt;	var destNode = xDoc.DOM.selectSingleNode("//*[local-name()='deviceName']");&lt;br /&gt;	if (destNode != null)&lt;br /&gt;	{&lt;br /&gt;		destNode.text = sourceNode.text;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;</description></item><item><title>Re: Populate values from different form</title><link>https://www.infopathdev.com:443/forums/thread/9269.aspx</link><pubDate>Wed, 08 Mar 2006 12:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9269</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9269</wfw:commentRss><description>Hi, Thanks for providing the code snippet, hope this is helpful for others.</description></item><item><title>Re: Populate values from different form</title><link>https://www.infopathdev.com:443/forums/thread/9268.aspx</link><pubDate>Wed, 08 Mar 2006 11:50:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9268</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9268</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;thx for your hint, it brought me to the solution. For those who wanna do the same here a short snippet:&lt;br /&gt;&lt;pre&gt;XDocument newForm		= thisApplication.XDocuments.NewFromSolution("http://Server/Web/test.xsn");&lt;br /&gt;			IXMLDOMNode node		= thisXDocument.DOM.selectSingleNode("my:myFields...");&lt;br /&gt;			IXMLDOMNode testNode	= newForm.DOM.selectSingleNode("my:myFields....");&lt;br /&gt;			testNode.text = node.text;&lt;/pre&gt;</description></item><item><title>Re: Populate values from different form</title><link>https://www.infopathdev.com:443/forums/thread/9267.aspx</link><pubDate>Tue, 07 Mar 2006 19:20:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9267</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9267</wfw:commentRss><description>If you are opening new form from code then you, you will have a reference(XDocument) to the newly opened from in the old form. You can set values in this new forms reference(XDocument).&lt;br /&gt;&lt;br /&gt;If you just have a link in the UI then you will not have referece to the newly opened form, so will not be able to populate the data.</description></item><item><title>Populate values from different form</title><link>https://www.infopathdev.com:443/forums/thread/5428.aspx</link><pubDate>Tue, 07 Mar 2006 14:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5428</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5428</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;is the following possible. Let's assume we have a link in an InfoPath form which opens another InfoPath form (not view). Can I then somehow populate values which has been entered into the first InfoPath form (from which the second gets opened) in the new one ?</description></item></channel></rss>