<?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 field against secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/56436.aspx</link><pubDate>Thu, 01 Jul 2010 19:25:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56436</guid><dc:creator>marcusjclifford</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56436</wfw:commentRss><description>&lt;p&gt;Thanks for the suggestion, but with 500+ items that is not acceptable in this case.&lt;/p&gt;</description></item><item><title>Re: Validate field against secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/56434.aspx</link><pubDate>Thu, 01 Jul 2010 18:44:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56434</guid><dc:creator>mgarant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56434</wfw:commentRss><description>&lt;p&gt;Hello Marcus,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Maybe you could try a dropdown box instead of your textbox, and populate the dropdown with the values of the SQL table. That way you&amp;#39;ll be sure that the user choose an existing product code.&lt;/p&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;</description></item><item><title>Validate field against secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/56431.aspx</link><pubDate>Thu, 01 Jul 2010 15:47:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56431</guid><dc:creator>marcusjclifford</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56431</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having some problems with getting validation to work against a secondary data source, in this case a field in a&amp;nbsp;SQL table.&lt;/p&gt;
&lt;p&gt;My situation is that I have a SQL table with say 500 records, with a column for ProductCode, what I want is a text field on the InfoPath&amp;nbsp;form (e.g. TextField) that allows the user to type in the product code, for example HDR1203, what I want to then do is validate this against the data source to check if that code exists (e.g. Field in datasource ProductCode), if not I want the standard validation (red dashed border etc) to occur.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got the data source working fine, and I can get it to &amp;quot;work in the wrong direction&amp;quot; by using the validation condition &amp;quot;TextField is equal to ProductCode&amp;quot;, this then highlights the field (as invalid)&amp;nbsp;if the data IS in the table, but if I change this to &amp;quot;is NOT equal to&amp;quot; then it does not work at all - it is always showing the data validation highlighting.&lt;/p&gt;
&lt;p&gt;Please can anyone help with&amp;nbsp;this, I guess it must be something simple that I&amp;#39;m missing, but it is frustrating!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;Marcus&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>