<?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: Expression Box vs. Text Box</title><link>https://www.infopathdev.com:443/forums/thread/28640.aspx</link><pubDate>Thu, 08 May 2008 23:50:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28640</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28640.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28640</wfw:commentRss><description>&lt;p&gt;Your eval has a problem, look at the XPaths:&lt;/p&gt;
&lt;p&gt;(lineItems, &amp;quot;../my:lineItems/my:Quantity * ../my:lineItems/my:Price&amp;quot;)&lt;/p&gt;
&lt;p&gt;lineItems is the starting point, yet your multiplication XPaths step up above that node (&amp;quot;../&amp;quot;) and then come back into it to always get the first row.&lt;/p&gt;
&lt;p&gt;It should look more like: &lt;/p&gt;
&lt;p&gt;(lineItems, &amp;quot;my:Quantity * my:Price&amp;quot;)&lt;/p&gt;</description></item><item><title>Expression Box vs. Text Box</title><link>https://www.infopathdev.com:443/forums/thread/28623.aspx</link><pubDate>Thu, 08 May 2008 15:30:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28623</guid><dc:creator>bmerrifield</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28623</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to get the order total and using an XPath as an example from the InfoPath Team Blog in an Expression Box:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in;font-family:Calibri;font-size:11pt;"&gt;sum(xdMath:Eval(my:lineItems,
&amp;quot;my:Price * my:Quantity&amp;quot;))&lt;/p&gt;&lt;p&gt;However, I would like to have the order total presented in a column in our SharePoint library. I&amp;#39;m trying to create the same XPath in a Text Box, but am running into problems. Here is my XPath for the text box:&lt;/p&gt;&lt;p&gt;sum(eval(lineItems, &amp;quot;../my:lineItems/my:Quantity * ../my:lineItems/my:Price&amp;quot;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But this results in a incorrect total - the Total keeps increasing by whatever is on line number one in the form.&lt;/p&gt;&lt;p&gt;How can I &amp;quot;promote&amp;quot; the order total from the form, not using an Expression Box?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Brian&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>