<?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: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2550.aspx</link><pubDate>Sun, 17 Sep 2006 01:13:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2550</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2550.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2550</wfw:commentRss><description>I see now. Very clever! If I have trouble with the IF statement I might try this idea. Thanks.&lt;br /&gt;</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2549.aspx</link><pubDate>Sat, 16 Sep 2006 13:25:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2549</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2549</wfw:commentRss><description>sorry i made the term "trigger field" up&lt;br /&gt;&lt;br /&gt;its a field which isnt realy used to store data, a hidden field that uses rules or code to perform tasks&lt;br /&gt;&lt;br /&gt;in this case, create a boolean field called trigger&lt;br /&gt;&lt;br /&gt;Then set rules on your button&lt;br /&gt;Rule 1, if ID is blank then inform user and stop rules&lt;br /&gt;Rule 2, if trigger is true set trigger false and stop rules&lt;br /&gt;Rule 3, set trigger true&lt;br /&gt;&lt;br /&gt;Then put your code on the trigger field and set it to run when ever trigger is changed&lt;br /&gt;&lt;br /&gt;If you are good at code then are probably easier ways to do it than this but i'm not good at code</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2548.aspx</link><pubDate>Sat, 16 Sep 2006 01:05:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2548</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2548</wfw:commentRss><description>These suggestions and clarifications are appreciated. I plan to try them out over the weekend. Sorry to say however, that I don't know what a "trigger field" is and I don't see anything in InfoPath help. Maybe I know the concept by another name. A simple example might help. Thanks.&lt;br /&gt;</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2547.aspx</link><pubDate>Fri, 15 Sep 2006 09:40:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2547</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2547.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2547</wfw:commentRss><description>oh, trigger field one should be your button not a field</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2546.aspx</link><pubDate>Fri, 15 Sep 2006 09:02:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2546</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2546</wfw:commentRss><description>why dont you use two trigger fields? Put rules in trigger one, and code in trigger two&lt;br /&gt;&lt;br /&gt;trigger field one checks for blank ID, if blank says so and stops, if not blank change trigger field 2&lt;br /&gt;&lt;br /&gt;trigger field 2 runs code regardless</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2545.aspx</link><pubDate>Fri, 15 Sep 2006 05:10:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2545</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2545</wfw:commentRss><description>Hi Mikeg,&lt;br /&gt;   Just for your information,..Condition in rules dont prevent the underlying code from running.&lt;br /&gt;Using a rule, u can only ensure that the rules that follow do not execute.&lt;br /&gt;But to prevent the code from running,u need to do that in the code itself.&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2544.aspx</link><pubDate>Thu, 14 Sep 2006 14:34:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2544</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2544</wfw:commentRss><description>Okay, that's the perspective I was looking for. As a relative beginner, I wasn't sure how Rules interact with Custom Code. From what you guys are saying Rules never prevent custom code from running (unless maybe I specify some action like "close the form"). So, my custom code must check conditions independantly of or instead of using rules. I don't know why InfoPath functions this way, but I'll give it a try. Thanks.&lt;br /&gt;</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2543.aspx</link><pubDate>Thu, 14 Sep 2006 13:08:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2543</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2543</wfw:commentRss><description>Hi Mikeg,&lt;br /&gt;&lt;br /&gt;As u have pointed out,even if the rule fails,the custom code still runs.Thats how it is.&lt;br /&gt;&lt;br /&gt;So in addition to ur rules,why dont u put a condition in ur code that lets the custom code to run only if the query field is not blank.&lt;br /&gt;something like...&lt;br /&gt;if(QueryField's value is not blank)&lt;br /&gt;{&lt;br /&gt;custom code comes here&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;or you could avoid using rules and accomplish everything using code itself.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2542.aspx</link><pubDate>Thu, 14 Sep 2006 11:31:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2542</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2542</wfw:commentRss><description>I would try a small workaround.&lt;br /&gt;Create a new node (textfield control if you want). Set the default value to whatever you want (e.g NOT FILLED).&lt;br /&gt;Then if the user fills in the ID field with a valid value (by the way you can use data validation and the matches pattern option to check if the ID is valid) set your textfield to FILLED.&lt;br /&gt;Change your code or rules that the query only runs if the textbox value is FILLED.&lt;br /&gt;&lt;br /&gt;Does it make sense ?</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2541.aspx</link><pubDate>Thu, 14 Sep 2006 02:58:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2541</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2541</wfw:commentRss><description>trufooser, "Stop processing rules when rule finishes" is indeed checked. That was the first thing I looked for. But I really appreciate the reply.&lt;br /&gt;&lt;br /&gt;The problem is not that subsequent rules are firing. My problem is the custom code still runs even when a rule fails. It may be a simple problem with my custom code, but I haven't had time to dabble with InfoPath since June!&lt;br /&gt;</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2540.aspx</link><pubDate>Wed, 13 Sep 2006 15:07:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2540</guid><dc:creator>trufooser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2540</wfw:commentRss><description>at the bottom of the screen, there should be a button that says "stop processing rules when rule finishes" or something, make sure that is checked.</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2539.aspx</link><pubDate>Wed, 07 Jun 2006 19:47:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2539</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2539.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2539</wfw:commentRss><description>Maybe I'm just not explaining this very well...</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2538.aspx</link><pubDate>Tue, 06 Jun 2006 18:53:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2538</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2538</wfw:commentRss><description>To put it more plainly: How do I prevent a query from running if a query field is blank or contains an invalid value?&lt;br /&gt;&lt;br /&gt;In the Run Query button properties, I have a rule that fires when the search criteria is blank or invalid. Now add an Action to send an error msg. This is working fine. But, after clicking OK on the msg dialog, InfoPath goes ahead and runs the query anyway! &lt;br /&gt;&lt;br /&gt;I don't see any Action available to stop the query from continuing other than "Open a new form to fill out" or "Close the form" which are both overkill. I hope this is more clear.&lt;br /&gt;</description></item><item><title>Re: Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/2537.aspx</link><pubDate>Tue, 06 Jun 2006 16:07:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2537</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2537</wfw:commentRss><description>Hi Mike,&lt;br /&gt;&lt;br /&gt;I don't understand what you're wanting to do here. You have a rule that fires when a field is blank, but you don't want it to fire when it's blank?&lt;br /&gt;&lt;br /&gt;Please explain.&lt;br /&gt;</description></item><item><title>Run Query Rules</title><link>https://www.infopathdev.com:443/forums/thread/1338.aspx</link><pubDate>Tue, 06 Jun 2006 14:47:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1338</guid><dc:creator>mikeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1338</wfw:commentRss><description>I have a "Run Query" button with it's Action set to "Rules and Custom Code". I have a rule that if an ID field is blank, send a message like "You must enter a value!" &lt;br /&gt;&lt;br /&gt;The message works fine. The problem is, InfoPath runs the query anyway! I don't see any action available under Rule/Add Action to stop InfoPath from running the query with a blank field.&lt;br /&gt;&lt;br /&gt;Can someone tell me what I might be missing here? Thanks.&lt;br /&gt;</description></item></channel></rss>