<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31188.aspx</link><pubDate>Tue, 05 Aug 2008 02:16:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31188</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31188</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t know.... You&amp;#39;ve probably already run across &lt;a href="http://blogs.msdn.com/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx"&gt;this&lt;/a&gt; post, but just in case it helps you and you haven&amp;#39;t, I thought I&amp;#39;d add it to the thread.&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31177.aspx</link><pubDate>Mon, 04 Aug 2008 15:24:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31177</guid><dc:creator>reiqwan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31177</wfw:commentRss><description>&lt;p&gt;Thanks again for this - regarding your answer it really helped!&lt;/p&gt;&lt;p&gt;Thanks for the link to the Infopath site it was great in understanding more about Infopath forms.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am now trying to pass parameters through my xmlformview infopath web viewer component:&lt;/p&gt;&lt;p&gt;Do you know if this is possible? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards;&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31080.aspx</link><pubDate>Thu, 31 Jul 2008 18:31:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31080</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31080</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not entirely certain what you are asking, but to set and get values from a field in your form (C#, IP2007):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//to get a form node&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:myFields/my:field1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//to set its value&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;field.SetValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;value&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&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//to get its value&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; value = field.Value;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;As far as getting the other values from the query string, &lt;a href="http://msdn.microsoft.com/en-us/library/ms772417.aspx"&gt;this&lt;/a&gt; link may be able to help you. &lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31069.aspx</link><pubDate>Thu, 31 Jul 2008 14:51:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31069</guid><dc:creator>reiqwan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31069</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary and thanks for the response - It&amp;#39;s really appreciated and pushes out the URL - which is a good start.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However I am in need of getting other data as well such as the other items in the querystring such as&amp;nbsp; -&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;&amp;amp;Source= &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;&amp;amp;DefaultItemOpen= &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;&amp;amp;SaveLocation= &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;?XsnLocation= &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;How would I get those values as well from the URL querystring? - basically I need to figure out - once I&amp;#39;ve assisgned a variable how do I get that assigned value?&lt;/p&gt;&lt;p&gt;Thanks again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31054.aspx</link><pubDate>Thu, 31 Jul 2008 03:13:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31054</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31054</wfw:commentRss><description>&lt;p&gt;You shouldn&amp;#39;t have to write code to get the URL of your form template, if that is the URL you are after. On the text field you wish to have set to the URL, simply right click, select Properties, and in the default value select the Formula Editor button. Paste this in the formula editor:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;substring-before(substring-after(/processing-instruction()[local-name(.) = &amp;quot;mso-infoPathSolution&amp;quot;], &amp;#39;href=&amp;quot;&amp;#39;), &amp;#39;&amp;quot;&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Once your form is published to a SharePoint site, that formula will return the full URL of the template. Let me know if you need more information, okay?&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31045.aspx</link><pubDate>Wed, 30 Jul 2008 19:07:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31045</guid><dc:creator>reiqwan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31045</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi - and thanks for your response - with regard to your response I have a few queries about it - &lt;/p&gt;&lt;p&gt;&lt;b&gt;1)&lt;/b&gt; When you say &amp;quot;&lt;i&gt;&lt;u&gt;&lt;b&gt;We can set that value using rule in InfoPath&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&amp;quot; how do I go about doing this &lt;/p&gt;&lt;p&gt;and you might have to excuse my ignorance for this but I&amp;#39;m fairly new to Infopath 2007 and VSTA: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;2)&lt;/b&gt;&amp;nbsp; When you refer to the secondary DOM - do you mean the Data Object Model &lt;/p&gt;&lt;p&gt;&lt;b&gt;3)&lt;/b&gt; With regard to this line -&amp;gt; &lt;i&gt;&lt;u&gt;&lt;b&gt;var secondaryDOM = XDocument.GetDOM(&amp;quot;Data Connection Name&amp;quot;);&amp;nbsp; &lt;/b&gt;&lt;/u&gt;&lt;/i&gt;I am not using a Data COnnection; basically just the information from my URL to get information for the form&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;4) &lt;/b&gt;for this line here &lt;i&gt;&lt;u&gt;&lt;b&gt;var queryString = &amp;nbsp;secondaryDOM.selectSingleNode(&amp;quot;XPath of your field&amp;quot;);&amp;nbsp; &lt;/b&gt;&lt;/u&gt;&lt;/i&gt;the Xpath you refer to is that jus tthe node?.... for example &lt;i&gt;&lt;u&gt;&lt;b&gt;variable=testVariable&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;5) &lt;/b&gt;For this line here my intellisense doesnt seem topick up my fieldnames when I type in their first few letters is there a reason behind this - do I need to reference any extra/special classes?&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp; again for your assistance and I look forward to your response.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31016.aspx</link><pubDate>Wed, 30 Jul 2008 09:08:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31016</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31016.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31016</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;We can set that value using rule in InfoPath or we can write the code to set the values to text box.&lt;/p&gt;
&lt;p&gt;Code as below,&lt;/p&gt;
&lt;p&gt;//Get the secondary dom&lt;/p&gt;
&lt;p&gt;var secondaryDOM = XDocument.GetDOM(&amp;quot;Data Connection Name&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Get the query string node&lt;/p&gt;
&lt;p&gt;var queryString = &amp;nbsp;secondaryDOM.selectSingleNode(&amp;quot;XPath of your field&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Setting the query string node value to textbox.&lt;/p&gt;
&lt;p&gt;textbox1.text = queryString.text;&lt;/p&gt;</description></item><item><title>assign values in my text fields</title><link>https://www.infopathdev.com:443/forums/thread/31013.aspx</link><pubDate>Wed, 30 Jul 2008 08:36:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31013</guid><dc:creator>reiqwan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31013</wfw:commentRss><description>&lt;p&gt;Hi All;&lt;br /&gt;&lt;br /&gt;I need to assign values in my text fields to get information from the URL querystring - I know this is possible using VSTA as I&amp;#39;ve managed to find the some&amp;nbsp; mentioning of it which gets the information from the URL or external provider:&lt;/p&gt;&lt;p&gt;but not sure exactly how to take this code and assign it to the neccessary text field - so in other words I need to take the querystring value make it a variable in my form an then assign its value to my text field: &lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;some_variable = urlvalue&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;urlvalue = textfield1.text &lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;should be pretty simple; but not sure how to do it? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for the assistance; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>