<?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: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8259.aspx</link><pubDate>Wed, 23 Nov 2005 06:40:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8259</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8259</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;That don't go when you are in preview mode so please publish and after try (security)!&lt;br /&gt;&lt;br /&gt;Second if that always don't work try to load for example a xml from this path for see if your path is correct!&lt;br /&gt;&lt;br /&gt;Other things (your code):&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;newDocument.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:ns1=\"http://schemas.xmlsoap.org/wsdl/soap/\"");&lt;br /&gt;IXMLDOMNode oNode = newDocument.selectSingleNode("/my:myFields/my:myFields:field1");&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;If youtry to navigate on the my: prefix you need to declare our my namespace not ns1: or dfs! The declaration of namespace my for your form is at the top of the formcode.cs!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8258.aspx</link><pubDate>Tue, 22 Nov 2005 21:08:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8258</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8258.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8258</wfw:commentRss><description>Virgul,&lt;br /&gt;&lt;br /&gt;I think that is what I want to do.&lt;br /&gt;&lt;br /&gt;I tried to add that code to the onclick of a button and changed all the pertinent code to reflect my forms and fields.&lt;br /&gt;&lt;br /&gt;When I preview the form I get an error saying "expected ';'" on line 24 which is the&lt;br /&gt;"XDocument oXdNewForm = thisApplication.XDocuments...." line&lt;br /&gt;&lt;br /&gt;here is my code(will this work from preview if I put in the path to the other form?):&lt;br /&gt;&lt;br /&gt;function CTRL3_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(@"\\server1\users$\drobins\My Documents\Template2.xsn");&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument2 newDocument = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;newDocument.loadXML(resultf.ToString());&lt;br /&gt;newDocument.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:ns1=\"http://schemas.xmlsoap.org/wsdl/soap/\"");&lt;br /&gt;IXMLDOMNode oNode = newDocument.selectSingleNode("/my:myFields/my:myFields:field1");&lt;br /&gt;			&lt;br /&gt;IXMLDOMNode AV = oXdNewForm.DOM.selectSingleNode("/my:myFields/my:myFields:field1");&lt;br /&gt;AV.parentNode.replaceChild(oNode, AV);&lt;br /&gt;thisApplication.XDocuments.Close(0);&lt;br /&gt;}</description></item><item><title>Re: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8257.aspx</link><pubDate>Thu, 17 Nov 2005 07:36:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8257</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8257</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;If you not the path of your other form you can do like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(@"C:\Program Files\InfopathPow\AV.xsn"); &lt;br /&gt;&lt;br /&gt;IXMLDOMDocument2 newDocument = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;newDocument.loadXML(resultf.ToString());&lt;br /&gt;newDocument.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.&lt;br /&gt;microsoft.com/office/infopath/2003/dataFormSolution\"&lt;br /&gt;xmlns:ns1=\"http://schemas.xmlsoap.org/wsdl/soap/\"");&lt;br /&gt;IXMLDOMNode oNode = newDocument.selectSingleNode("/Case");&lt;br /&gt;			&lt;br /&gt;IXMLDOMNode AV = oXdNewForm.DOM.selectSingleNode("/CaseList/Case");&lt;br /&gt;AV.parentNode.replaceChild(oNode, AV);&lt;br /&gt;thisApplication.XDocuments.Close(0);&lt;/pre&gt;	&lt;br /&gt;&lt;br /&gt;It's the same way if you want to change text of node!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8256.aspx</link><pubDate>Wed, 16 Nov 2005 14:04:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8256</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8256.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8256</wfw:commentRss><description>i know how to make the button appear, I can't figure out how to launch the next form (which i have already created) and populate some fields with information from the first form&lt;br /&gt;&lt;br /&gt;Franck, that seems like it wants to create a new form. I want to send just field contents from one form to the other form.</description></item><item><title>Re: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8255.aspx</link><pubDate>Wed, 16 Nov 2005 06:33:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8255</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8255</wfw:commentRss><description>Hi DRobins,&lt;br /&gt;Add a state field to your main data source in in your form and create an optional section that conditionally shows only when the forms is in the state that you want. Put a button inside this section. That should do it.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/8254.aspx</link><pubDate>Tue, 15 Nov 2005 23:00:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8254</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8254</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Did you check this:&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthNew_1_HV01036661.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthNew_1_HV01036661.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Launch new form with content from current form</title><link>https://www.infopathdev.com:443/forums/thread/5107.aspx</link><pubDate>Tue, 15 Nov 2005 18:14:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5107</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5107</wfw:commentRss><description>I have a form that goes through a 3 step work flow. At the end of the work flow I would like to have a button or link that would launch a new form containing information from the current form.&lt;br /&gt;&lt;br /&gt;Is this possible?</description></item></channel></rss>