<?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: Validate textbox field against sql</title><link>https://www.infopathdev.com:443/forums/thread/27242.aspx</link><pubDate>Mon, 17 Mar 2008 13:29:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27242</guid><dc:creator>jar92380</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27242.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27242</wfw:commentRss><description>&lt;p&gt;Can someone please look at my code to see where I went wrong please&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Vision Database&amp;quot;)/dfs:myFields/dfs:dataFields/d:ProjectCustomTabFields/@custReimbursibleMaxRateAir[../@WBS1 = xdXDocument:get-DOM()/my:travelRequest/my:JobNumber]&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Validate textbox field against sql</title><link>https://www.infopathdev.com:443/forums/thread/27163.aspx</link><pubDate>Wed, 12 Mar 2008 16:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27163</guid><dc:creator>jar92380</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27163</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Clay&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I just shot you an email&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Validate textbox field against sql</title><link>https://www.infopathdev.com:443/forums/thread/27162.aspx</link><pubDate>Wed, 12 Mar 2008 15:56:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27162</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27162</wfw:commentRss><description>&lt;p&gt;So the problem is you are getting the values from the very first record not the one selected?&lt;/p&gt;
&lt;p&gt;A filter is what you need to say set the values but where jobnumber = WBS1.&lt;/p&gt;
&lt;p&gt;When selecting @airfareamount use the filter button and add WBS1 = JobNumber&lt;/p&gt;
&lt;p&gt;That way you get the data for the correct record.&lt;/p&gt;
&lt;p&gt;I work with databases and InfoPath every day.&lt;/p&gt;
&lt;p&gt;If you want to email me I could show you some examples.&lt;/p&gt;</description></item><item><title>Validate textbox field against sql</title><link>https://www.infopathdev.com:443/forums/thread/27161.aspx</link><pubDate>Wed, 12 Mar 2008 15:41:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27161</guid><dc:creator>jar92380</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=27161</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This may seem like something very easy but I just can&amp;#39;t get it working correctly.&amp;nbsp; I have a text box field and a submit button setup.&amp;nbsp; The submit button takes the data from the textbox and I want it to check a particular table in a SQL DB, and if the number is there to display some static numbers.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is what i have so far&lt;/p&gt;&lt;p&gt;Conditions&lt;/p&gt;&lt;p&gt;JobNumber is equal to WBS1 (SQL DB field)&lt;/p&gt;&lt;p&gt;Actions: Query using a data connection: sql db&lt;/p&gt;&lt;p&gt;Set a field&amp;#39;s value airfare = @airfareamount&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When i press the submit button all 0&amp;#39;s are placed in the static field and I know there is a true number in there since I placed in the number&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>