<?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: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/79917.aspx</link><pubDate>Thu, 28 Jun 2012 11:50:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79917</guid><dc:creator>Kazzahere</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79917</wfw:commentRss><description>&lt;p&gt;Thanks again.&lt;/p&gt;&lt;p&gt;What had happened when I copied the rules it changed one of the fields so it wasn&amp;#39;t running as I expected.&lt;/p&gt;&lt;p&gt;Am using rules as there are some conditions.&lt;/p&gt;&lt;p&gt;Something so simple but never crossed my mind that when copying a rule it could change.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Karen&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/79498.aspx</link><pubDate>Thu, 14 Jun 2012 16:04:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79498</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79498</wfw:commentRss><description>&lt;p&gt;You would have to have rules on the Hours fields as well. Is that what you did?&amp;nbsp;Did you copy the rules using the IP 2010 functionality? Sometimes it does some unexpected stuff&amp;nbsp;with the XPath - you may want to check the rules on your Hours field.&amp;nbsp;It also&amp;nbsp;seems like you may want to consider default values here instead of rules, if possible.&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/79490.aspx</link><pubDate>Thu, 14 Jun 2012 13:33:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79490</guid><dc:creator>Kazzahere</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79490.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79490</wfw:commentRss><description>&lt;p&gt;Hi Hilary&lt;/p&gt;&lt;p&gt;I am now on a different form but am having a similar problem. Thanks your last post helped me with that problem.&lt;/p&gt;&lt;p&gt;I have 2 fields e.g. hours worked and weeks worked. I have numberous rules on weeks worked to provide calculations which are fine, if the user changes weeks worked the formulas update. If the user changes hours worked though as the rules aren&amp;#39;t on that field the totals do not update. I have tried duplicating the rule so it applies to both fields but it still doesn&amp;#39;t update.&lt;/p&gt;&lt;p&gt;Can you offer any light on this please.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Karen&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/76722.aspx</link><pubDate>Wed, 21 Mar 2012 21:41:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76722</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76722</wfw:commentRss><description>&lt;p&gt;Generally, your options are to create rules on all the fields used in the calculation - so if any of them change, the rules fire to update the target field - or to use default values. Usually, for a calculation, a default value (or even an expression box, if you don&amp;#39;t need to save the value of the field) work well.&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/76685.aspx</link><pubDate>Wed, 21 Mar 2012 12:30:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76685</guid><dc:creator>Kazzahere</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76685</wfw:commentRss><description>&lt;p&gt;Hi Hilary&lt;/p&gt;&lt;p&gt;That&amp;#39;s a really useful post, thanks.&lt;/p&gt;&lt;p&gt;Do you know if there is any way of adding a rule so that if the user changes a field used in a calculation the resulting field updates. I have managed to create a rule for if the user deletes the entry no result is shown but I cannot suss out how to get the final figure to update if they change their original entry.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;&lt;p&gt;Karen&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/42967.aspx</link><pubDate>Mon, 15 Jun 2009 20:48:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42967</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42967</wfw:commentRss><description>&lt;p&gt;Oh, I&amp;#39;m glad that worked for you. I find that it can be easy for people to confuse default value behavior with rule behavior. It took me a while before it really sunk in, but once I realized that the field with the rule on it has to change for a rule to fire, it got a lot easier....&lt;/p&gt;</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/42962.aspx</link><pubDate>Mon, 15 Jun 2009 18:00:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42962</guid><dc:creator>Rachel20J</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42962</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;Yes i finally got it what&amp;nbsp;I needed to do,&amp;nbsp;I realized that it was in the wrong&amp;nbsp;text box and now its works smoothly when you said this &amp;quot;the rule that is bound to a field will only fire if &lt;strong&gt;that&lt;/strong&gt; field changes.&amp;quot;&amp;nbsp;&amp;nbsp;Thank you for your time!</description></item><item><title>Re: Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/42949.aspx</link><pubDate>Mon, 15 Jun 2009 16:01:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42949</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42949</wfw:commentRss><description>&lt;p&gt;Hi --&lt;/p&gt;
&lt;p&gt;One thing that often trips people up with rules is that a field has to change for the rule to fire, and the rule that is bound to a field will only fire if &lt;strong&gt;that&lt;/strong&gt; field changes. When you say &amp;#39;if a person makes a mistake and makes one of the text boxes blank&amp;#39;, which text boxes are you concerned with? One that takes a value that is used in your calculations? Or one that displays a result? If it is the ones that display the result, change those to expression boxes, so the user can&amp;#39;t change them by mistake. If it is any of the fields used in calculations, you&amp;#39;ll need to add rules to those fields that will recalculate your values, and those new rules could have the condition &amp;#39;if field is blank&amp;#39;, with some special logic to work around the scenario. Let me know if you need more info....&lt;/p&gt;</description></item><item><title>Help with calculations</title><link>https://www.infopathdev.com:443/forums/thread/42939.aspx</link><pubDate>Mon, 15 Jun 2009 12:36:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42939</guid><dc:creator>Rachel20J</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42939</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;have a little section of calculations, very simple nothing to complicated but somehow it isn&amp;#39;t working.&amp;nbsp;(I also have hidden fields to help set these correctly SetQuant and SetFootage) Its also set up to keep the boxes filled with 0 in case it is blank so the calulations will work with rules.&amp;nbsp; Txtbox A will always calculate first over txtbox B if txtbox A is 0, then txtbox B calcuates.&amp;nbsp; If category of 8 is chosen, only txtbox B will calculate.&lt;/p&gt;
&lt;p&gt;txtboxA Rules&amp;nbsp;= conditions= category is not equal to 8 or txtboxA &amp;gt;0 and TxtboxB &amp;gt;0=&amp;nbsp;total value &lt;/p&gt;
&lt;p&gt;TxtboxA *TxtboxC=Totalvalue&lt;/p&gt;
&lt;p&gt;txtboxB Rule1= conditions = Category is equal to 8 or&amp;nbsp;txtboxA&amp;nbsp;&amp;gt;orequal to 0 = total value &lt;/p&gt;
&lt;p&gt;TxtboxB*TxtboxC=TotalValue&lt;/p&gt;
&lt;p&gt;Rule 2 - if txtbox A is equal to 0&lt;/p&gt;
&lt;p&gt;Set fields value of hidden box set footage value into the total value box.&lt;/p&gt;
&lt;p&gt;This works just fine but what if a person made a mistake and they make one of the boxes blank, and it goes back to 0, it will not recalculate the txtboxB by default, the total value does not refresh.&amp;nbsp; I do not have programming and hoping this is simple to make it&amp;nbsp;where if txtbox is = to 0, that it would force txtbox B to calculate but it doesn&amp;#39;t.&amp;nbsp; I will send a copy of form if needed I have been at this for a while and I am at my last ends wits to get this figured out... I hope i explained this ok.&lt;/p&gt;</description></item></channel></rss>