<?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: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34597.aspx</link><pubDate>Thu, 20 Nov 2008 14:18:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34597</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34597</wfw:commentRss><description>&lt;p&gt;Perfect.&amp;nbsp; Thank you so much for being patient with me.&amp;nbsp; I like InfoPath a lot now, I hope I can dabble around in it some more.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34588.aspx</link><pubDate>Thu, 20 Nov 2008 13:26:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34588</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34588</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can fix the issues by just opening &amp;nbsp;the form in design mode and publishing it again .&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34583.aspx</link><pubDate>Thu, 20 Nov 2008 13:08:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34583</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34583</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t open your form, it&amp;#39;s telling me to open it from the location in which it was published.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34529.aspx</link><pubDate>Wed, 19 Nov 2008 21:45:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34529</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34529</wfw:commentRss><description>&lt;p&gt;I am attaching the template after making some minor modifications:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;For your grand total, I put in a default value that sums all the cost nodes&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For your category, since you had no default value set, the first item (which is the one you were testing with) was never able to be &amp;#39;selected&amp;#39;. In effect, category was always blank.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Take a look and see if this is closer to what you want.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34528.aspx</link><pubDate>Wed, 19 Nov 2008 21:21:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34528</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34528</wfw:commentRss><description>&lt;p&gt;The form I started out with was the built-in IP template and modified it from there since I never used it before.&amp;nbsp; Either way, here&amp;#39;s the gist of the form, formulas intact.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34526.aspx</link><pubDate>Wed, 19 Nov 2008 21:03:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34526</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34526</wfw:commentRss><description>&lt;p&gt;So, what is the formula in the expression box that is giving you errors? Can you copy and paste it in here? If you preview the form, and put an amount in the &amp;#39;total&amp;#39; field, and add line items that have an amount in the &amp;#39;cost&amp;#39; field (if you have no sum of costs, you&amp;#39;ll see an error) do you still have an error? I guess I&amp;#39;m trying to understand what is different between your form and the sample I created....&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34524.aspx</link><pubDate>Wed, 19 Nov 2008 18:39:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34524</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34524</wfw:commentRss><description>&lt;p&gt;Yeah, the total field on the form is bound to the total data source and it&amp;#39;s default value was &amp;quot;subTotal-cashAdvance&amp;quot; but I just recently learned I didn&amp;#39;t need that, so I got rid of it and set the default value to 0.00.&amp;nbsp; I&amp;#39;ve even tried created a new field element named percent, inputting the function we&amp;#39;re working with, and then binding the expression box that&amp;#39;s showing the errors with the percent element, and that didn&amp;#39;t work either.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34521.aspx</link><pubDate>Wed, 19 Nov 2008 18:06:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34521</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34521</wfw:commentRss><description>&lt;p&gt;I wouldn&amp;#39;t think so. Just hide the expression box with the div calculation unless the total field has a value in it. The total field on your form is bound to the total field in the data source, correct? and that field has a default value? &lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34516.aspx</link><pubDate>Wed, 19 Nov 2008 17:31:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34516</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34516</wfw:commentRss><description>&lt;p&gt;Alright, so I downloaded the file and understand what you&amp;#39;re getting at completely, however unlike your total field,&amp;nbsp;my total field is automatically calculated.&amp;nbsp; Do I need to turn my total field into a regular text box and have the submitter total up the information themselves?&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34512.aspx</link><pubDate>Wed, 19 Nov 2008 15:36:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34512</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34512</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m attaching a quick sample to better explain what I mean. Right click the link, Save As, open in design mode and preview. Put an amount in the Total field, and add some rows to the repeating table with a category of A (use a capital A, that is what I used in my sum formulas). If total is blank and you have amounts in the table, you&amp;#39;ll get &amp;#39;Infinity&amp;#39; in the expression box with the div function. If total is blank and you don&amp;#39;t have amounts, you get NaN. If total is zero, you&amp;#39;ll have an error too, since we can&amp;#39;t divide by zero. I&amp;#39;ve conditionally hidden another expression box with the same formula, so that you can see how it would only display when there is an amount in total. Hope this helps!&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34472.aspx</link><pubDate>Tue, 18 Nov 2008 21:28:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34472</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34472</wfw:commentRss><description>&lt;p&gt;It still shows the NaN or -1.#IND on the design view and still calcualtes everything to be equal to zero.&amp;nbsp; The formula checker says there&amp;#39;s no issues with my (by my I mean your)&amp;nbsp;formula either.&amp;nbsp; So technically there shouldn&amp;#39;t be anything wrong.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34470.aspx</link><pubDate>Tue, 18 Nov 2008 20:59:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34470</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34470</wfw:commentRss><description>&lt;p&gt;Nah, you aren&amp;#39;t a bother at all. Everyone has to learn, and really, none of this stuff is all that simple.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s see. There are ways to make a default value or an expression box value &amp;#39;conditional&amp;#39; but they are a little complex. What about if you conditionally format the expression box so it only shows if cost is not 0 and total is not 0? That way you don&amp;#39;t display the expression box when it might have an error because of total being 0 (a divide by 0 error) or it being blank....&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34468.aspx</link><pubDate>Tue, 18 Nov 2008 20:46:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34468</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34468.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34468</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry to keep bugging you with simple stuff.&amp;nbsp; Here&amp;#39;s my XPath code: sum(/my:expenseReport/my:items/my:item/my:cost[../my:category = &amp;quot;86810&amp;quot;])&amp;nbsp;div /my:expenseReport/my:items/my:total.&amp;nbsp; The field will only have a value once the submitter fills in a field named &amp;quot;cost&amp;quot;.&amp;nbsp; Once that&amp;#39;s there, the code above should execute and provide me with a percentage&amp;nbsp;of the grand total.&amp;nbsp; I want to make a rule that&amp;#39;ll run when cost is not equal to 0.00, but the only option I have under expression box properties is conditional formatting which won&amp;#39;t get the job done.&lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34466.aspx</link><pubDate>Tue, 18 Nov 2008 20:29:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34466</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34466</wfw:commentRss><description>&lt;p&gt;What field are you dividing by? Does it have a value? &lt;/p&gt;</description></item><item><title>Re: Totals based on drop down selection</title><link>https://www.infopathdev.com:443/forums/thread/34463.aspx</link><pubDate>Tue, 18 Nov 2008 20:08:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34463</guid><dc:creator>punkn00dlez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34463</wfw:commentRss><description>&lt;p&gt;My error was generated because the way I tried it was completely and horribly wrong.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The code you just posted shoots back one of 2 errors depending on how the expression field properties are set.&amp;nbsp; As a decimal, I get &amp;quot;-1.#IND&amp;quot; and as text I get &amp;quot;NaN&amp;quot;.&amp;nbsp; These are showing up in design view when I see this.&amp;nbsp; The &amp;quot;-1.#IND&amp;quot; shows up when I switch to Form view until I tell it to calculate and both the NaN and the -1.#IND just calculate to zero no matter what.&amp;nbsp; I&amp;#39;ve tried some research on it, but I don&amp;#39;t really know what I&amp;#39;m looking for so it makes it a bit difficult.&amp;nbsp; I think the &amp;quot;-1.#IND&amp;quot; has something to do with an indent maybe?&amp;nbsp; As for the NaN, I found some posts on here, but none seem to be terribly relevant.&lt;/p&gt;</description></item></channel></rss>