<?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: How to avoid infinite loops on setting fields</title><link>https://www.infopathdev.com:443/forums/thread/65152.aspx</link><pubDate>Mon, 14 Mar 2011 22:26:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65152</guid><dc:creator>ckili</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65152</wfw:commentRss><description>Thanks  leoffneym,
Yet, the user has the tendency of playing, and you&amp;#39;ll end up with different ID&amp;#39;s and descriptions.
And in my (real) problem, I need to play with 3 drop-down lists!!!
I came to understand that rules on a control run whenever the control changes, so by putting a check box field (default:false) and put a condition:if checkbox=false, then checkbox=true, do the actions, checkbox=false, then on the other control, when is changed, it&amp;#39;ll find checkbox=true and won&amp;#39;t run...
In theory....</description></item><item><title>Re: How to avoid infinite loops on setting fields</title><link>https://www.infopathdev.com:443/forums/thread/65143.aspx</link><pubDate>Mon, 14 Mar 2011 20:29:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65143</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65143</wfw:commentRss><description>&lt;p&gt;In the conditions for your rules, check to see if the other one is blank: Ex: In field A, condition: If B is blank, set B.&amp;nbsp; In field B, condition: If A is blank, set A.&lt;/p&gt;
&lt;p&gt;This will stop your loop from ocurring, since it has no way to occur.&lt;/p&gt;</description></item><item><title>How to avoid infinite loops on setting fields</title><link>https://www.infopathdev.com:443/forums/thread/65136.aspx</link><pubDate>Mon, 14 Mar 2011 16:16:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65136</guid><dc:creator>ckili</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65136</wfw:commentRss><description>Hello,
I have two fields, item ID and Description from an SQL DB. I put them in drop-down list boxes. When I choose Item Id, the Description should be set. When I choose Description, the Item ID should be set. If I put the rules, an error occurs:
&amp;quot;An error occurred in the form&amp;#39;s rules or code. The number of rule actions or the number of calls to the OnAfterChange event for a single update in the data exceeded the maximum limit.
The rules or code may be causing an infinite loop. To prevent this, ensure that the rule action or event handler does not update the data which causes the same rule action or event handler to execute.&amp;quot;
I&amp;#39;m trying a solution with a checkbox (if checkbox1=false, checkbox1=true; actions;checkbox1=false), but any other suggestion is welcomed!</description></item></channel></rss>