<?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: Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/2312.aspx</link><pubDate>Thu, 10 Aug 2006 21:45:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2312</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2312.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2312</wfw:commentRss><description>Glad our forum could help.  This is also a good opportunity to point out that the samples that ship in InfoPath 2003 were built before the calculations functionality was added for SP1.  Therefore there is a ton of extra code in there that we wouldn't do today.  We just didn't have the option back then when we built them and could not take on the task to upgrade them for the SP1.&lt;br /&gt;&lt;br /&gt;The good news is that in InfoPath 2007 all new samples are provided which are simpler, but use no code at all and take advantage of calculations and other declarative business logic.</description></item><item><title>Re: Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/2311.aspx</link><pubDate>Tue, 02 May 2006 13:31:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2311</guid><dc:creator>rzwahr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2311</wfw:commentRss><description>That does the trick!  Thanks for your time and for the advice.&lt;br /&gt;&lt;br /&gt;Ryan</description></item><item><title>Re: Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/2310.aspx</link><pubDate>Tue, 02 May 2006 07:11:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2310</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2310</wfw:commentRss><description>Hi rzwahr,&lt;br /&gt;&lt;br /&gt;What you need to do is to create a rule within your "tax box" checkbox for selecting that the item is taxable that then calculates the sales tax in your sales tax amount field based upon the value of the checkbox (either checked or unchecked) - basically a true/false test.&lt;br /&gt;&lt;br /&gt;So when the user selects the "Yes this item is taxable" box, the sales tax is then calcuated.  You will need 2 rules within that text box - 1 to test for the condition that the checkbox is selected (checkboxName="yes" &amp; then the action is that sales tax is calcualated) and one condition for when the checkbox is NOT selected (checkbox Name="no" &amp; then the action is that sales tax is ="0").&lt;br /&gt;&lt;br /&gt;That way when the user selects or deselects the item as taxable the sales tax is calucated or not calcuated. It's also important that the "set condition" test within the rule checks for the appropriate value in the checkbox field - the defaults are fine in this case - "Yes" is on (checked) and "no" is off (unchecked).&lt;br /&gt;&lt;br /&gt;Hope that answers your question!</description></item><item><title>Re: Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/2309.aspx</link><pubDate>Mon, 01 May 2006 20:45:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2309</guid><dc:creator>rzwahr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2309.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2309</wfw:commentRss><description>I found what was causing the previous error.  I had created rules on more than one field, so they were all firing at once and stepping on each other.  I had put these rules on these other fields when experimenting with different ways to do this, and forgot to remove them.  So now at least it gives the right calculation and no error.  The issue remains however, as to how to let infopath know to re-apply the rules when something changes.  Is there a way to accomplish this?</description></item><item><title>Re: Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/2308.aspx</link><pubDate>Mon, 01 May 2006 20:11:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2308</guid><dc:creator>rzwahr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2308</wfw:commentRss><description>What I have tried doing at this point is associating a rule with the checkbox on the lineitem, which says if the value of the checkbox field is false, then calculate qty * unit price and set the extended price column value to that value.  If it is checked, then what I tell it to do is qty * unit price * (1+taxrate).&lt;br /&gt;&lt;br /&gt;When I first launch the form, and I go and type in a qty and unit price, nothing happens.  Then if I click the taxable checkbox, I get an error from Infopath which states "An error occurred in the form's code. The number of calls to the OnAfterChange event for a single update in the data exceeded the maximum limit." And then the incorrect value is filled into extended price.&lt;br /&gt;&lt;br /&gt;I suppose somehow, I've got to tell infopath with an OnAfterChange event somewhere to go and recalculate.  Can you somehow tell infopath to reapply rules after a change?</description></item><item><title>Tax/No Tax on Invoice</title><link>https://www.infopathdev.com:443/forums/thread/1274.aspx</link><pubDate>Mon, 01 May 2006 18:39:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1274</guid><dc:creator>rzwahr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1274</wfw:commentRss><description>Hi all,&lt;br /&gt;I have the need to create an invoice much like the one that is included with the samples that come with Infopath.  I am particularly interested in having a checkbox on each line item which allows the end user to turn tax on/off for that particular item.  Multiple tax rates are not a requirement.&lt;br /&gt;&lt;br /&gt;Being very new to infopath, the code which I have looked at in the sample seems quite confusing, and a lot of it doesn't make sense to me.  I am looking for a way to accomplish the same functionality with as little code as possible, for example using rules to accomplish as much of it as possible.  I will have a repeating table with lineitems, some of which will be taxable and some of which will not be.  The tax rate will be static, pulled from a field that the user fills in.  If the user checks the tax box I need the form to either recalculate everything based on the tax, or have a refresh button which does this.&lt;br /&gt;&lt;br /&gt;I thought there might be a good chance that someone out there who does this a lot may have some tricks that are easier to accomplish this with than the amount of code that is in the sample.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Ryan</description></item></channel></rss>