<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validate infopath user input to a value in a secondary table</title><link>https://www.infopathdev.com:443/forums/thread/38064.aspx</link><pubDate>Wed, 04 Feb 2009 08:32:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38064</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38064</wfw:commentRss><description>&lt;p&gt;This blog: &lt;a href="http://www.infopathdev.com/blogs/mel_balsamo/archive/2009/02/04/comparing-items-in-a-list-against-an-updated-data-source.aspx"&gt;http://www.infopathdev.com/blogs/mel_balsamo/archive/2009/02/04/comparing-items-in-a-list-against-an-updated-data-source.aspx&lt;/a&gt;&amp;nbsp;might be able to help you in this kind of situation going forward.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers!&lt;/p&gt;</description></item><item><title>Re: Validate infopath user input to a value in a secondary table</title><link>https://www.infopathdev.com:443/forums/thread/22763.aspx</link><pubDate>Wed, 29 Aug 2007 19:57:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22763</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22763</wfw:commentRss><description>&lt;p&gt;Yah that is why you want a web service so that you can query the data instead of loading all of it each time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;if you can only load the fields you need in your data connection that could help some too.&lt;/p&gt;</description></item><item><title>Re: Validate infopath user input to a value in a secondary table</title><link>https://www.infopathdev.com:443/forums/thread/22762.aspx</link><pubDate>Wed, 29 Aug 2007 19:53:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22762</guid><dc:creator>DStinger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22762</wfw:commentRss><description>&lt;p&gt;Thanks Clay, the filter worked and the data validation works now. Now the problem is the secondary source contains 80K records and it searches until it finds (or doesn&amp;#39;t find). So my performance sucks, but I&amp;#39;ll have to figure a work around for that&lt;/p&gt;</description></item><item><title>Re: Validate infopath user input to a value in a secondary table</title><link>https://www.infopathdev.com:443/forums/thread/22747.aspx</link><pubDate>Wed, 29 Aug 2007 16:29:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22747</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22747</wfw:commentRss><description>&lt;p&gt;Welcome to the forum.&lt;/p&gt;
&lt;p&gt;Is there a reason why you are doing it with code?&lt;/p&gt;
&lt;p&gt;You can set either a data validation or a rule on the field in the form that would compare the value of the field witht he value in your secondardy source.&amp;nbsp; You would just need to use a filter on your secondary possibly.&lt;/p&gt;
&lt;p&gt;So an example would be the user enters a new company name in a field. I could add a rule that if the field is equal to the companyname field in my secondary data then trigger an alert and blank out the field or whatever. This would do a compare against all of the rows in your secondary and if a match was found return true and execute your actions. You could make this more complex with a filter but I think that is the direction you would want to pursue.&lt;/p&gt;
&lt;p&gt;If you are working with data and various tables, I would recommend you check out the Database Accelerator.&lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry22386.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1 - Developer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is a whole suite of web services. Web Services allow you to get around the limitations with InfoPath database forms only being able to query and submit to one table structure, etc.&amp;nbsp; If you are developing enterprise solutions, it can help a lot with a bunch of built in features and tools which make things much easier.&lt;/p&gt;
&lt;p&gt;If you would like a demo let me know.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Validate infopath user input to a value in a secondary table</title><link>https://www.infopathdev.com:443/forums/thread/22729.aspx</link><pubDate>Wed, 29 Aug 2007 14:57:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22729</guid><dc:creator>DStinger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22729</wfw:commentRss><description>&lt;p&gt;I want to be able to take a value entered by the user and determine if it exists in another table that is part of the relational database that drives this form. I have added the table as a secondary datasource&amp;nbsp;(it is not part of the main datasource and does not need to be)&amp;nbsp;and have tried to write code to compare these values but I cannot get the SQL to work properly so if anybody has the proper code for that I would appreciate it. It seems to me that I should be able to create a data validation rule that compares the value the secondary data table but when I do this nothing happens at all. Any help is appreciated Thanks&lt;/p&gt;</description></item></channel></rss>