<?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 on Button click With direct database conection</title><link>https://www.infopathdev.com:443/forums/thread/24917.aspx</link><pubDate>Wed, 05 Dec 2007 14:08:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24917</guid><dc:creator>josephblayil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24917</wfw:commentRss><description>&lt;p&gt;Thanks a lot Clay. That was of great help and i got it working&lt;/p&gt;</description></item><item><title>Re: Validate on Button click With direct database conection</title><link>https://www.infopathdev.com:443/forums/thread/24895.aspx</link><pubDate>Tue, 04 Dec 2007 16:10:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24895</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24895</wfw:commentRss><description>&lt;p&gt;Hi Joseph. Welcome to the forum.&lt;/p&gt;
&lt;p&gt;You want to check the drop down lists when the user clicks the button. I think the issue is the stock (default) button you receive with the form.&lt;/p&gt;
&lt;p&gt;Typically you would just add some rules to the button.&amp;nbsp; Open the properties of the button and switch it from a query button to a rules button with the dropdown.&amp;nbsp; Then you can do all the checks and logic you want. At the end once all of the validation has occured add a rule to Query your main connection.&lt;/p&gt;
&lt;p&gt;Another method is to add a field to your form which holds the validation status.&amp;nbsp; You mayneed this external field to store your validation progress. Then on your query rule you can use the confition flag = foo and then the Query would run.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;If you are working on database solutions you may want to check out the Database Accelerator. &lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry19957.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1 - Developer&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Validate on Button click With direct database conection</title><link>https://www.infopathdev.com:443/forums/thread/24893.aspx</link><pubDate>Tue, 04 Dec 2007 15:58:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24893</guid><dc:creator>josephblayil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24893</wfw:commentRss><description>&lt;pre class="WNPost" style="WORD-WRAP:break-word;"&gt;Hi guys,
I&amp;#39;m using direct database connection to get data for my form. I have some 
dropdownlists to filter the data also. Now when i click the &amp;quot;Run query&amp;quot; 
button which gets generated as part of database connection, i want to 
validate the dropdownlists. But i&amp;#39;m not getting ay option there to validate.

I tried using conditional formatting which will disable the button till all 
rules are satisfied. But I don’t want to disable the button.Instead I want to 
do the validation on click of button and show an error message box if any 
errors.

Can someone help please. I need it very badly.
Thanks
Joseph&lt;/pre&gt;</description></item></channel></rss>