<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Migrating 2003 form to 2010 - newfromsolution and dataconnections</title><link>https://www.infopathdev.com:443/forums/thread/80457.aspx</link><pubDate>Wed, 11 Jul 2012 18:50:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80457</guid><dc:creator>TerryB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80457</wfw:commentRss><description>&lt;p&gt;Issue resoved :-&lt;/p&gt;&lt;p&gt;doesn&amp;#39;t work :-&lt;/p&gt;&lt;p&gt;var fred = Application.XDocuments.NewFromSolution(&amp;quot;&lt;a&gt;\\\\coportall\\sites\\bill\Caveat Form\\Forms\\template.xsn&lt;/a&gt;&amp;quot;);&lt;/p&gt;&lt;p&gt;but &lt;/p&gt;&lt;p&gt;var fred = Application.XDocuments.NewFromSolution(&amp;quot;&lt;a href="http://coportall/sites/bill/Caveat%20Form/Forms/template.xsn"&gt;http://coportall/sites/bill/Caveat Form/Forms/template.xsn&lt;/a&gt;&amp;quot;);&lt;/p&gt;&lt;p&gt;Looks obvious but the first fred has worked in IP03 for 2 years, but it doesn&amp;#39;t work in IP10. I think the issue might be that IP10 uses the passed xsn url in some way when it does it&amp;#39;s data connections that refresh on form open, where IP03 doesn&amp;#39;t. But of course I might be completely wrong!&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Migrating 2003 form to 2010 - newfromsolution and dataconnections</title><link>https://www.infopathdev.com:443/forums/thread/80409.aspx</link><pubDate>Tue, 10 Jul 2012 17:50:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80409</guid><dc:creator>TerryB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80409.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=80409</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;m currently migrating a number of 2003 developed forms (call them AQG and CAV), which have lots of jscript in them,&amp;nbsp;to IP &amp;amp; SP 2010. The jscript in AQG&amp;nbsp;has a couple of lines of code that opens a new form (CAV) &amp;amp; passes data to it - see below (to maintain the code I&amp;#39;m extracting the form files and editing script.js.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;em&gt;Code in AQG&lt;/em&gt;&lt;/u&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;var fred = Application.XDocuments.NewFromSolution(&amp;quot;\\\\coportall\\sites\\bill\Caveat Form\\Forms\\template.xsn&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;// set caveat waiver DOM&amp;nbsp;&lt;br /&gt;&amp;nbsp;var MyFormDOM = fred.DOM;&lt;br /&gt;&amp;nbsp;MyFormDOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;xmlns:my=\&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-03-08T17:07:59\"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-03-08T17:07:59\&lt;/a&gt;&amp;quot;&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;// Copy the values from the AQG to the CAV form&lt;br /&gt;&amp;nbsp;MyFormDOM.selectSingleNode(&amp;quot;/my:myFields/my:Originator&amp;quot;).text = Originator;&amp;nbsp;&lt;br /&gt;&amp;nbsp;MyFormDOM.selectSingleNode(&amp;quot;/my:myFields/my:Originator/@my:Email&amp;quot;).text = OriginatorEmail;&amp;nbsp;&lt;/p&gt;&lt;p&gt;//etc. etc. - lots of stuff copied across.&lt;/p&gt;&lt;p&gt;=======&lt;/p&gt;&lt;p&gt;The form I&amp;#39;m opening via the NewFromSolution (CAV) has some other data connections that refresh on opening (incidentally, CAV opens fine if opened direct or by using a button with an action fromAQG).&lt;/p&gt;&lt;p&gt;This all works fine until I publish the form (CAV) in SP as a 2010 filler form and update the data connections to current version i.e. create the query and data field elements of the data connection.&lt;/p&gt;&lt;p&gt;The code above then ceases to work - the error I&amp;#39;m getting refers to invalid parameters on dataquery when the form attempts to open.&lt;/p&gt;&lt;p&gt;I&amp;#39;m wondering if it&amp;#39;s anything to do with namespaces etc. and have been trying some things, but can&amp;#39;t get it working..&lt;/p&gt;&lt;p&gt;Any suggestions would be appreciated.&lt;/p&gt;&lt;div align="center"&gt;&lt;font size="2"&gt;&lt;font face="Georgia"&gt;&lt;font color="#3366ff"&gt;Orlando A 
Battista &lt;/font&gt;: An error doesn&amp;#39;t become a mistake until you refuse to correct 
it.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;p&gt;Terry&lt;/p&gt;</description></item></channel></rss>