<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13124.aspx</link><pubDate>Tue, 28 Sep 2004 17:45:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13124</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13124</wfw:commentRss><description>Glad to help out! And I'm happy you got it working!&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13123.aspx</link><pubDate>Tue, 28 Sep 2004 02:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13123</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13123</wfw:commentRss><description>I had resolve the issue. I had published the secondary form to another domain and try to call the secondary form in my debug mode.&lt;br /&gt;&lt;br /&gt;Once I had published both forms, the error does not occur.&lt;br /&gt;&lt;br /&gt;Thanks for your help Greg!</description></item><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13122.aspx</link><pubDate>Tue, 28 Sep 2004 01:48:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13122</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13122.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13122</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;I had tried the following:&lt;br /&gt;-----------------------------------------------------------------&lt;br /&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(sPath+"TestForm.xsn");			&lt;br /&gt;		&lt;br /&gt;oXdNewForm.DOM.selectSingleNode("/TEST_FORM/Info/ID").text = sID;&lt;br /&gt;&lt;br /&gt;oXdNewForm.DOM.selectSingleNode("/TEST_FORM/Info/Officer").text = sInspectorNm;&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;and encountered the following error:&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------&lt;br /&gt;System.UnauthorizedAccessException&lt;br /&gt;Access is denied.&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.ICLRExtensions.IsCrossDomainSafe(Object punkCallee)&lt;br /&gt;&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.InfoPathWrapperHelper.CheckCrossDomainSafety(IServiceProvider serviceProviderCallee)&lt;br /&gt;&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentWrapper.get_DOM()&lt;br /&gt;&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentWrapper.get_DOM()&lt;br /&gt;&lt;br /&gt;at PremiseInspectEvents.PremiseInspectEvents.Register_Sample_OnClick(DocActionEvent e) in d:\ava\visual studio projects\premiseinspection\premiseinspectevents\premiseinspectevents\formcode.cs:line 117&lt;br /&gt;&lt;br /&gt;at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;What I am trying to do is to set the value of two fields in the secondary form using some data from the current form. In addition to this, both my forms are fully-trusted. Is the fully-trusted an issue?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13121.aspx</link><pubDate>Mon, 27 Sep 2004 16:38:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13121</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13121</wfw:commentRss><description>Try this:&lt;br /&gt;&lt;br /&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(@"c:\foo\form.xsn");&lt;br /&gt;&lt;br /&gt;You can also use Rules on a button to open a new form&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13120.aspx</link><pubDate>Mon, 27 Sep 2004 02:17:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13120</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13120</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;Thanks for your reply. &lt;br /&gt;&lt;br /&gt;Is there any sample code for the launching of secondary form from C# managed code and the access method? I had googled around and couldn't find any examples for it.&lt;br /&gt;&lt;br /&gt;Many thanks in advance</description></item><item><title>Re: Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/13119.aspx</link><pubDate>Thu, 23 Sep 2004 18:25:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13119</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13119</wfw:commentRss><description>When you used the word "template" did you mean that? Or did you mean the live form? There is no communication between templates (i.e. InfoPath Designer), only between forms (i.e. InfoPath Editor).&lt;br /&gt;&lt;br /&gt;As for the editor, you have an XDocuments collection off of the Application object. You can get to all open forms and pass data between them.&lt;br /&gt;&lt;br /&gt;If you launched the secondary form from code, you should have been given an XDocument reference in return. You access that one just like you do your own form's XDocument.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Parameter passing between infopath templates</title><link>https://www.infopathdev.com:443/forums/thread/12415.aspx</link><pubDate>Wed, 22 Sep 2004 02:37:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12415</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12415</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;Is it possible to pass parameters from one infopath template to another via manged code, c#?&lt;br /&gt;&lt;br /&gt;In my scenario, I am trying to pass two fields from template1 to template2. The two values passed will be used to populate into two separate text boxes in template 2.&lt;br /&gt;&lt;br /&gt;All help is deeply appreciated. Many thanks in advance!&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>