<?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: Validation</title><link>https://www.infopathdev.com:443/forums/thread/43982.aspx</link><pubDate>Wed, 08 Jul 2009 19:42:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43982</guid><dc:creator>krishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43982.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43982</wfw:commentRss><description>&lt;p&gt;Ok. Can you please look at the below post:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/5316/20108.aspx#20108"&gt;http://www.infopathdev.com/forums/p/5316/20108.aspx#20108&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am trying to follow this to pass the text to button. Please advise.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Krishna&lt;/p&gt;</description></item><item><title>Re: Validation</title><link>https://www.infopathdev.com:443/forums/thread/43973.aspx</link><pubDate>Wed, 08 Jul 2009 18:42:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43973</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43973</wfw:commentRss><description>&lt;p&gt;I still don&amp;#39;t understand.&amp;nbsp; Buttons don&amp;#39;t have values, so how can you pass a value to one? I can&amp;#39;t help with the code, but I&amp;#39;m sure someone else here can easily analyze your code.&lt;/p&gt;</description></item><item><title>Re: Validation</title><link>https://www.infopathdev.com:443/forums/thread/43963.aspx</link><pubDate>Wed, 08 Jul 2009 15:57:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43963</guid><dc:creator>krishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43963</wfw:commentRss><description>&lt;p&gt;Yes, I am trying to set a value to the button using dummy field and then using button&amp;#39;s conditional formatting of the Dummy field. Somehow, it is not working fine. Here is my code:&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;function Next::OnClick(eventObj) &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;{ &lt;/font&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;var error;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;&amp;nbsp;error = XDocument.Errors.Count;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;&amp;nbsp;if (error!= 0) XDocument.UI.Alert(&amp;quot;You have not filled all required fields&amp;quot;); &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;if (error == 0) XDocument.DOM.selectSingleNode(&amp;quot;/my:myfields/my:Dummy&amp;quot;).text = &amp;quot;TRUE&amp;quot;;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;font size="3"&gt;&amp;nbsp;}&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;And then I am using this field in button&amp;#39;s conditional formatting. Am I doing something wrong here in specifying single node. Please advise.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Krishna&lt;/p&gt;</description></item><item><title>Re: Validation</title><link>https://www.infopathdev.com:443/forums/thread/43921.aspx</link><pubDate>Wed, 08 Jul 2009 03:07:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43921</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43921</wfw:commentRss><description>&lt;p&gt;Buttons don&amp;#39;t have values, so what do you mean when you say you&amp;#39;re passing a value to it? Do you just mean you are setting a value in the Dummy and then basing the button&amp;#39;s conditional formatting off of the Dummy field?&lt;/p&gt;</description></item><item><title>Validation</title><link>https://www.infopathdev.com:443/forums/thread/43912.aspx</link><pubDate>Tue, 07 Jul 2009 22:23:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43912</guid><dc:creator>krishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43912</wfw:commentRss><description>&lt;p&gt;I have a&amp;nbsp;two views on my form:&lt;/p&gt;
&lt;p&gt;one view has some fields - if there is any validation errors -&amp;nbsp;Next button(to go to 2nd view) should be disabled.&lt;/p&gt;
&lt;p&gt;I am using hidden&amp;nbsp;field called Dummy to pass the value to the button.&amp;nbsp;And then I am applying conditional formatting to the button. If hidden variable is false, then disable the button, Below is the code&amp;nbsp;I&amp;nbsp;am&amp;nbsp;using.&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;form has errors in input, it is throwing message. But, if&amp;nbsp;form has no errors, &amp;nbsp;&lt;/p&gt;
&lt;p&gt;function Next::OnClick(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;var error; error = XDocument.Errors.Count; if (error!= 0) XDocument.UI.Alert(&amp;quot;You have not filled all required fields&amp;quot;); if (error == 0) XDocument.DOM.selectSingleNode(&amp;quot;/my:myfields/my:Dummy&amp;quot;).text = &amp;quot;TRUE&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Am I doing anything wrong in passing the value?&lt;/p&gt;
&lt;p&gt;Please advise. Thanks&lt;/p&gt;</description></item></channel></rss>