<?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: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/83960.aspx</link><pubDate>Fri, 26 Oct 2012 20:48:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83960</guid><dc:creator>Reymes M-R</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83960</wfw:commentRss><description>&lt;p&gt;Hi there OPatrick&lt;/p&gt;
&lt;p&gt;I am having a similar problem with getting value of Query Strings param passed in the Url and I have tried a lot of stuff so far:&lt;/p&gt;
&lt;p&gt;1)&lt;/p&gt;
&lt;p&gt;HttpContext.Current.Request.QueryString(&amp;quot;cou&amp;quot;).ToString()&lt;/p&gt;
&lt;p&gt;After adding: &lt;br /&gt;Imports System.Web&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
&lt;p&gt;If eventParam.InputParameters.ContainsKey(&amp;quot;cou&amp;quot;) Then&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventParam.InputParameters.TryGetValue(&amp;quot;cou&amp;quot;, CountryQueryStringParam)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Updating the field in the InfoPath form to be used at any time when the Country QueryString parameter is required&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CountryQueryStringParam.SetValue(CountryQueryStringParam)&lt;/p&gt;
&lt;p&gt;End if&lt;/p&gt;
&lt;p&gt;3. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;CountryQueryStringParam&amp;nbsp; = eventParam.InputParameters(&amp;quot;cou&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;That’s everything that I have been trying so far. For all of them the Null value is being returned....It looks like the Url has not parameters at all, but is tis plenty of them: /EN/Pages/Product-Inquiry-Form.aspx?lang=e&amp;amp;src=Financing&amp;amp;code=Financing&amp;amp;s_products=LeadGen%3bFinancingInquiry_e%3b1%3b0&amp;amp;fromPage=NOTSET&amp;amp;cou=Albania&lt;/p&gt;
&lt;p&gt;.Any suggestions? I even tried by leaving only one parameters (lang) and the same outcome.&lt;/p&gt;
&lt;p&gt;Maybe I am miising some setting in the saherpoint site to allow having acces to that Url when dealing with InfoPath Forms?&lt;/p&gt;
&lt;p&gt;What are those qRules that you mentioned? How can be implemented?&lt;/p&gt;
&lt;p&gt;Thanks in advance for any help man.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68991.aspx</link><pubDate>Thu, 04 Aug 2011 19:16:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68991</guid><dc:creator>yuwenlanxing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68991</wfw:commentRss><description>&lt;p&gt;Finially I made this out. At first for a test I didn&amp;#39;t create any data connection for the record form which only has a textbox in&amp;nbsp; main datasource. Then I tried to connect this form&amp;nbsp;with the database as well and using the following code&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; recordDatasource &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; DataSource = recordForm.DataSources(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;tbl_TemporaryLicence&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;recordDatasource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:tbl_TemporaryLicence/@TempPermitID&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(&amp;quot;1&amp;quot;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;it works fine. maybe the problem is on the MainDataSource.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68947.aspx</link><pubDate>Wed, 03 Aug 2011 15:14:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68947</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68947</wfw:commentRss><description>&lt;p&gt;My guess would be that you haven&amp;#39;t changed the XPath in the code to the XPath for the field you created in your form - but really, you should run your project in debug so you can see what&amp;#39;s going on. &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a blog post that describes how to do that.&lt;/p&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68922.aspx</link><pubDate>Tue, 02 Aug 2011 20:00:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68922</guid><dc:creator>yuwenlanxing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68922</wfw:commentRss><description>&lt;p&gt;Thanks Hilary&lt;/p&gt;
&lt;p&gt;I tried your code, and created a textbox named &amp;quot;UserID&amp;quot; in the record template, but there is an error said &lt;strong&gt;&amp;quot;Object reference not set to an instance of an object&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;do you have any idea why&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68906.aspx</link><pubDate>Tue, 02 Aug 2011 15:18:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68906</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68906.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68906</wfw:commentRss><description>&lt;p&gt;Actually, I think for forms not accessed via url, input parameters can only be passed as a command line switch (see &lt;a href="http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx"&gt;this blog&lt;/a&gt; for more info). &lt;/p&gt;
&lt;p&gt;But, you know, you&amp;#39;ve got your recordForm object. So you can go ahead and set values in it.&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;Dim&lt;/font&gt;&lt;font size="2"&gt; recordForm &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XmlForm = Application.XmlForms.NewFromFormTemplate(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\Documents and Settings\speng\Desktop\Infopaht template\Record.xsn&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;font size="2"&gt;recordForm.MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;strong&gt;my:myFields/my:UserID&lt;/strong&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/blockquote&gt;&lt;/font&gt;
&lt;p&gt;Obviously, I&amp;#39;m guessing at the XPath in bold above, but this should give you the general idea.&lt;br /&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68899.aspx</link><pubDate>Tue, 02 Aug 2011 12:28:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68899</guid><dc:creator>yuwenlanxing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68899.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68899</wfw:commentRss><description>&lt;p&gt;Hi Patrick thanks for your reply&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;created&amp;nbsp;the following code to try&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;&lt;img style="BORDER-RIGHT-WIDTH:0px;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;BORDER-LEFT-WIDTH:0px;" alt="" src="http://www.infopathdev.com/Themes/infopathdev/images/user_IsOffline.gif" /&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Select_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ClickedEventArgs)&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; recordForm &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XmlForm = Application.XmlForms.NewFromFormTemplate(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\Documents and Settings\speng\Desktop\Infopaht template\Record.xsn?UserID=1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;there will be an error&lt;/p&gt;
&lt;p&gt;InfoPath cannot create a new, blank form.&lt;br /&gt;InfoPath cannot open the form. To fix this problem, contact your system administrator.&lt;br /&gt;﻿﻿&lt;br /&gt;Form template: C:\Documents and Settings\speng\Desktop\Infopaht template\Record.xsn?UserID=1&lt;br /&gt;The following form template for the form cannot be found: &lt;a&gt;file:///C:\Documents%20and%20Settings\speng\Desktop\Infopaht%20template\Record.xsn%3fUserID=1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but if i only open the new form without the parameter it works fine, do you have any suggestion&lt;/p&gt;
&lt;p&gt;Thank you so much &lt;/p&gt;</description></item><item><title>Re: pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68893.aspx</link><pubDate>Tue, 02 Aug 2011 06:41:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68893</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68893</wfw:commentRss><description>&lt;p&gt;Hi YuwenLanxing,&lt;/p&gt;
&lt;p&gt;The input parameters should still work even if it&amp;#39;s local. The challenge is the path. InfoPath will parse the command that is used to launch it and look for input parameters to the right of a question mark. For example: c:/temp/template.xsn?p1=v1&amp;amp;p2=v2. InfoPath will load p1 and p2 with values v1 and v2. To access these input parameters requires code, or you can inject the xsn with qRules and get the input parameters using a rule (no coding required).&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>pass value from form to form</title><link>https://www.infopathdev.com:443/forums/thread/68836.aspx</link><pubDate>Fri, 29 Jul 2011 19:17:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68836</guid><dc:creator>yuwenlanxing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68836</wfw:commentRss><description>&lt;p&gt;I am new to infopath. Now I am developing an user interface which is connecting with an test database. what i wanna to implement is that when opening the main form, it will load data from the database automatically (i&amp;#39;ve already implement that), then i put a button for each record when i click the button there will be come out a new form which contain more detail information about this record&amp;nbsp;depends on the ID.&lt;/p&gt;
&lt;p&gt;Now my question is that is it possible to transfer value from&amp;nbsp;form to form which both are&amp;nbsp;on local machine ( i didn&amp;#39;t upload these form to sharepoint or other server)&lt;/p&gt;
&lt;p&gt;if it is possible, how to implement this? I have read a lot of articles, they all mention using XDocument. but when I typed Application in VSTA, there isn&amp;#39;t XDocument option.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>