<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Recursive rules</title><link>https://www.infopathdev.com:443/forums/thread/69193.aspx</link><pubDate>Thu, 11 Aug 2011 09:32:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69193</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69193</wfw:commentRss><description>&lt;p&gt;Thanks, Jimmy - that did the trick.&lt;/p&gt;</description></item><item><title>Re: Recursive rules</title><link>https://www.infopathdev.com:443/forums/thread/69074.aspx</link><pubDate>Mon, 08 Aug 2011 18:57:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69074</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69074</wfw:commentRss><description>&lt;p&gt;1. Create a boolean field called &lt;strong&gt;calculating&lt;/strong&gt; in either your main or a secondary data source and have its default value as &lt;strong&gt;false&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;Change both of your rules to perform these three actions:&lt;/p&gt;
&lt;ol&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Set &lt;strong&gt;calculating &lt;/strong&gt;= true&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Calculate and set the other field&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Set &lt;strong&gt;calculating&lt;/strong&gt; = false&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;p&gt;3. Change both of your rules to only run when the condition &lt;strong&gt;calculating&lt;/strong&gt; = false is met.&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;You&amp;#39;re all set!&lt;/p&gt;</description></item><item><title>Recursive rules</title><link>https://www.infopathdev.com:443/forums/thread/69067.aspx</link><pubDate>Mon, 08 Aug 2011 13:28:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69067</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69067</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am creating a form that has two textboxes. One is for kW (kiloWatt) and the other is for HP (HorsePower). The form is a IP2007 form running under forms Services on SP2007.&lt;/p&gt;
&lt;p&gt;There is a rule for conversion between the two:&lt;/p&gt;
&lt;p&gt;HP = kW / 0.7355&lt;/p&gt;
&lt;p&gt;and hence kW = HP * 0.7355&lt;/p&gt;
&lt;p&gt;Problem is that I need users to be able to enter the number they have and calculate the other. So I have entered a rule on kW: HP = round(kW / 0.7355) and I have entered a rule on HP: kW = round(HP * 0.7355)&lt;/p&gt;
&lt;p&gt;This almost always goes well, but there are situations where it doesn&amp;#39;t go well.&lt;/p&gt;
&lt;p&gt;If I enter a kW, InfoPath seems to be doing this:&lt;/p&gt;
&lt;p&gt;1. Calculate HP as round(kW / 0.7355)&lt;/p&gt;
&lt;p&gt;2. Since HP has changed, calculate kW as round(HP * 0.7355)&lt;/p&gt;
&lt;p&gt;Luckily IP knows to stop now and not keep going endlessly.&lt;/p&gt;
&lt;p&gt;Problem is, if I enter HP=1000, then after calculating kW and then recalculating HP, HP is set to 1001. This won&amp;#39;t do for me at all - but I don&amp;#39;t really know what to do. I can&amp;#39;t just save the value with decimals and show the value with no decimals - I need the actual values that are saved in the Main DataSource to have no decimals because of later purposes.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>