<?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: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122411.aspx</link><pubDate>Thu, 13 Feb 2020 00:47:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122411</guid><dc:creator>erzon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122411</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Right. This in the XPath: xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW gets replaced by current()/.. which basically means &amp;quot;From this current node, go up the tree to the the repeating my:SharePointListItem_RW group, and find the my:Items node in that same group as I am in&amp;quot;.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you so much.&amp;nbsp;This really help you save my day.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122406.aspx</link><pubDate>Wed, 12 Feb 2020 17:01:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122406</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122406</wfw:commentRss><description>Right. This in the XPath: xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW gets replaced by current()/.. which basically means &amp;quot;From this current node, go up the tree to the the repeating my:SharePointListItem_RW group, and find the my:Items node in that same group as I am in&amp;quot;.</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122403.aspx</link><pubDate>Wed, 12 Feb 2020 11:41:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122403</guid><dc:creator>erzon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122403</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The reason you are getting only the first one is because the XPath is using absolute paths instead of relative paths. If the field is in the my:SharePointListItem_RW group, I&amp;#39;d try something like this: sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity2[current()/../my:Items = ../d:Item2]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity1[current()/../my:Items = ../d:Item1]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity3[current()/../my:Items = ../d:Items3]) + sum(../my:Quantity)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;oh my god this works perfectly.&amp;nbsp;So i just need to add the current() code?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122392.aspx</link><pubDate>Tue, 11 Feb 2020 15:39:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122392</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122392</wfw:commentRss><description>The reason you are getting only the first one is because the XPath is using absolute paths instead of relative paths. If the field is in the my:SharePointListItem_RW group, I&amp;#39;d try something like this: sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity2[current()/../my:Items = ../d:Item2]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity1[current()/../my:Items = ../d:Item1]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity3[current()/../my:Items = ../d:Items3]) + sum(../my:Quantity)</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122391.aspx</link><pubDate>Tue, 11 Feb 2020 15:08:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122391</guid><dc:creator>erzon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122391</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Could I see a copy of your form? You can attach it under the Options tab in a reply.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sorry&amp;nbsp;we are not allowed to upload anything but this is the&amp;nbsp;default value of the field&amp;nbsp; sum(Quantity2[Items = Item2]) + sum(Quantity1[Items = Item1]) + sum(Quantity3[Items = Items3]) + sum(Quantity) or &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity2[xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Items = ../d:Item2]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity1[xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Items = ../d:Item1]) + sum(xdXDocument:GetDOM(&amp;quot;COO Store&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Quantity3[xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Items = ../d:Items3]) + sum(../my:Quantity)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The problem the only first field with sum is the one showing as a result&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122388.aspx</link><pubDate>Mon, 10 Feb 2020 21:59:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122388</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122388</wfw:commentRss><description>Could I see a copy of your form? You can attach it under the Options tab in a reply.</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122386.aspx</link><pubDate>Mon, 10 Feb 2020 21:02:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122386</guid><dc:creator>erzon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122386</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I need more info. I don&amp;#39;t know what &amp;quot;not working&amp;quot; means here - the number isn&amp;#39;t what you expect? The formula returns an error? You can&amp;#39;t get the formula editor to accept the formula? etc....&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

the correct total is not showing and it only compute the first field but the other field it seems ignored</description></item><item><title>Re: sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122385.aspx</link><pubDate>Mon, 10 Feb 2020 19:09:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122385</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122385</wfw:commentRss><description>I need more info. I don&amp;#39;t know what &amp;quot;not working&amp;quot; means here - the number isn&amp;#39;t what you expect? The formula returns an error? You can&amp;#39;t get the formula editor to accept the formula? etc....</description></item><item><title>sum of secondary data</title><link>https://www.infopathdev.com:443/forums/thread/122384.aspx</link><pubDate>Mon, 10 Feb 2020 17:27:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122384</guid><dc:creator>erzon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122384</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have 5 fields that are coming from secondary data. They are all in numeric format. What I need to do is once the user select the items in the list it will check how many quantity of that items from field1 to field5 and add them together. &lt;/p&gt;&lt;p&gt;I tried 1 field and it&amp;#39;s working fine but when I sum all 5 fields like sum(field1)&amp;nbsp;+sum(field2) it&amp;#39;s not working. all of files include filter already if the items = items in other list.&lt;/p&gt;&lt;p&gt;Is the anyway to fix this?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>