<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2824.aspx</link><pubDate>Tue, 25 Jul 2006 07:39:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2824</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2824</wfw:commentRss><description>All Right !&lt;br /&gt;I have just insert a&lt;br /&gt;objNewDoc.DOM.setProperty ...&lt;br /&gt;line after Set of new object and all work fine now!&lt;br /&gt;Thank you very much for your support.&lt;br /&gt;Grazie. Raoul</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2823.aspx</link><pubDate>Mon, 24 Jul 2006 22:51:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2823</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2823</wfw:commentRss><description>Yes, I think you are right about the namespace issue. As I was reading through your latest scenario, the same thought crossed my mind. You will need to use .setProperty() on objNewDoc after it gets Set. You will need to find out what the namespace is in Bravo.xsn and use that value in the setProperty() method.&lt;br /&gt;&lt;br /&gt;Once you've established the namespace in the new DOM, then you should be able to properly select a node and set its value.</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2822.aspx</link><pubDate>Sun, 23 Jul 2006 21:18:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2822</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2822</wfw:commentRss><description>Hi all,&lt;br /&gt;thank you for reply.&lt;br /&gt;&lt;br /&gt;Greg, I have hear your answer, but my code don't work yet. I list here my code:&lt;br /&gt;&lt;br /&gt;######################################################à&lt;br /&gt;Sub XDocument_OnSubmitRequest(eventObj)&lt;br /&gt;&lt;br /&gt;sStart1 = XDocument.DOM.selectSingleNode("//my:start1").text&lt;br /&gt;sStart2 = XDocument.DOM.selectSingleNode("//my:start2").text&lt;br /&gt;&lt;br /&gt;'Application.XDocuments.NewFromSolution("urn:Bravo:Raoul")&lt;br /&gt;Set objNewDoc = Application.XDocuments.NewFromSolution("urn:Bravo:Raoul")&lt;br /&gt;&lt;br /&gt;objNewDoc.DOM.selectSingleNode("//campo1").text = sStart1&lt;br /&gt;objNewDoc.DOM.selectSingleNode("//campo2").text = sStart2&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;#############################################&lt;br /&gt;&lt;br /&gt;Alfa.xsn is starting form, and it contain this code. In it there are two fields named Start1 and Start2, and they are correctly read by initial code (sStart1 and sStart2 contain right values).&lt;br /&gt;&lt;br /&gt;Bravo.xsn have two text fields only (campo1 and campo2).&lt;br /&gt;&lt;br /&gt;I have transform third line in a comment because of fourth line, that appair to open also new form. I have also tryed with it, but no difference about error occurs.&lt;br /&gt;&lt;br /&gt;Error occur on line&lt;br /&gt;objNewDoc.DOM.selectSingleNode("//campo1").text = sStart1&lt;br /&gt;Error message (in italian) is:&lt;br /&gt;"Errore di run-time di microsoft VBScript. Necessario oggetto: 'objNewDoc.DOM.selectStringNode(...)"&lt;br /&gt;&lt;br /&gt;If I modify line like&lt;br /&gt;objNewDoc.DOM.selectSingleNode("//my:campo1").text = sStart1&lt;br /&gt;Error message change in:&lt;br /&gt;"MSXML5.dll: riferimento a un prefisso dello spazio dei nomi non dichiarato: 'my'."&lt;br /&gt;&lt;br /&gt;I suppose that field campo1 is not find, but I dont't know why. If you have an email address, for you convenience I can send you my code.&lt;br /&gt;Thank you. Raoul&lt;br /&gt;&lt;br /&gt;p.s.: possible Namespaces problems? This is my definition:&lt;br /&gt;XDocument.DOM.setProperty "SelectionNamespaces", "xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-23T08:54:55"""&lt;br /&gt;</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2821.aspx</link><pubDate>Fri, 21 Jul 2006 22:52:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2821</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2821</wfw:commentRss><description>A minor change to what you've got because you have no way to guarantee that XDocuments(1) is "really" the new form you just opened. It could be a different form, if you have others open.&lt;br /&gt;&lt;br /&gt;1 - Set objNewDoc = Application.XDocuments.NewFromSolution("urn:bravo:Myname")&lt;br /&gt;2 - objNewDoc.DOM.selectSingleNode("//field1").text = "HELLO"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As for the query... I'm not positive whether you can do that from a different form... I haven't tried that. You might have to do that from the for you opened and not from the form by which you opened it. Did that make sense? Try it anyway and see if it works or not.</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2820.aspx</link><pubDate>Fri, 21 Jul 2006 18:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2820</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2820</wfw:commentRss><description>Raoul,&lt;br /&gt;&lt;br /&gt;Greg can probably help you better with your specific question but I thought I would pass on this link that I have used to successfully pass variables to a new form. &lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.geekswithblogs.net/bpaddock/archive/2004/05/14/4907.aspx&gt;http://www.geekswithblogs.net/bpaddock/archive/2004/05/14/4907.aspx&lt;/a&gt;&lt;br /&gt;</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2819.aspx</link><pubDate>Fri, 21 Jul 2006 13:01:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2819</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2819.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2819</wfw:commentRss><description>Hi Greg,&lt;br /&gt;thanks for your reply. I have tryed this steps:&lt;br /&gt;&lt;br /&gt;1 -	Application.XDocuments.NewFromSolution("urn:bravo:Myname")&lt;br /&gt;2 -	Set objNewDoc = Application.XDocuments(1)&lt;br /&gt;3 -	objNewDoc.DOM.selectSingleNode("//field1").text = "HELLO"&lt;br /&gt;4 -	objNewDoc.Query&lt;br /&gt;&lt;br /&gt;Step 1 - work fine and start bravo.xsn&lt;br /&gt;Step 2 - no response, but I suppose it work&lt;br /&gt;Step 3 - Error&lt;br /&gt;&lt;br /&gt;Field1 is first (and last) text field in bravo.xsn form. I suppose there is a formal error, but I don't know where is it. Is this the right way to move a string from alfa to beta or exist another (easy) way?&lt;br /&gt;Thanks. Raoul</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2818.aspx</link><pubDate>Thu, 20 Jul 2006 23:28:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2818</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2818.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2818</wfw:commentRss><description>When you call NewFromSolution() it returns you an XDocument object to the form just opened. Use this returned object to select the field in the newly opened form you want to update (just like you normally do in your code) and then set the value.</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2817.aspx</link><pubDate>Thu, 20 Jul 2006 23:04:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2817</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2817</wfw:commentRss><description>Hi Greg,&lt;br /&gt;thank you for your answer. I have just tryed with NewFromSolution method and it work fine, but I have a problem to pass a string field from alfa.xsn to bravo.xsn. Have you some ideas?&lt;br /&gt;Many thanks. Raoul</description></item><item><title>Re: How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/2816.aspx</link><pubDate>Thu, 20 Jul 2006 21:05:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2816</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2816.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2816</wfw:commentRss><description>Look into the NewFromSolution and NewFromSolutionWithData methods.</description></item><item><title>How to call a form from another one</title><link>https://www.infopathdev.com:443/forums/thread/1431.aspx</link><pubDate>Thu, 20 Jul 2006 20:29:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1431</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1431</wfw:commentRss><description>Hi all,&lt;br /&gt;I need to call a form from another form. &lt;br /&gt;For example:&lt;br /&gt;in alfa.xsn form I need a button that start bravo.xsn and also close alfa.xsn . I need this code in vbscript (if possible).&lt;br /&gt;Thanks in advance.&lt;br /&gt;Raoul</description></item></channel></rss>