<?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: proper stuck with data validation upon submit</title><link>https://www.infopathdev.com:443/forums/thread/59974.aspx</link><pubDate>Wed, 06 Oct 2010 06:37:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59974</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59974</wfw:commentRss><description>&lt;p&gt;Hi Rich,&lt;/p&gt;
&lt;p&gt;Just add rules to both the Booking Date and Timeslot fields that query the database when a value is entered (if the Timeslot and Booking Date are also present, respectively - that&amp;#39;s a condition). Add a secondary data connection for this (don&amp;#39;t use the main data source if you have a database backed form). Then, the query datasource action will populate a secondary data source. You can then compare the value to the secondary data source and if you find a match, you can pop up a nice warning message. Key thing here is to filter the query going to the database. InfoPath doesn&amp;#39;t provide parameterized filtering&amp;nbsp;via the out-of-box receive data connector, but you can use a Web service to query. If you don&amp;#39;t it will return all of the data in the table which could result in a delay. Take a look at Qdabra&amp;#39;s free trial Web service (DBXL) which includes parameterized query, You should be able to use the QueryBuilder to construct a query based on your fields in less than 30 minutes. Lots of documents and even videos on this technique. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>proper stuck with data validation upon submit</title><link>https://www.infopathdev.com:443/forums/thread/59529.aspx</link><pubDate>Fri, 01 Oct 2010 15:57:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59529</guid><dc:creator>Richie Rich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59529</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have designed a set of forms for a booking system for&amp;nbsp;a test room. It is working fine but to add the next functionality I am stuck........&lt;/p&gt;
&lt;p&gt;&amp;nbsp;little example is - I have a table that displays the Test Server name, Booking Date, Timeslot, and the Requestor.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Test Server 1 ----------&amp;gt; Joe Bloggs ----------&amp;gt; 30/10/2010 ----------&amp;gt; 9:00AM to 10:00AM&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It pulls this information from the database after the user has submitted the form. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;PROBLEM: I cannot stop a user from booking the same TEST SERVER, DATE, and TIMESLOT the form except the new booking and then this view displays both results.&lt;/p&gt;
&lt;p&gt;Is there a way I can query if this set of records exist then block the user from submitting with a nice error message.&lt;/p&gt;
&lt;p&gt;Any help would be very helpful.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Rich&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>