<?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: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61884.aspx</link><pubDate>Thu, 02 Dec 2010 14:12:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61884</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61884</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;As always... you are amazing :).&lt;/p&gt;&lt;p&gt;&amp;nbsp;I hope this is all he asks for! I am definitely understanding DOM and InfoPath a lot more after your help. Thanks for everything! I hope I don&amp;#39;t have to bug you again.. hah!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;:D &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61860.aspx</link><pubDate>Wed, 01 Dec 2010 20:45:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61860</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61860.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61860</wfw:commentRss><description>&lt;p&gt;I think you&amp;#39;ll need to use eval. So, for example, try this formula in field13 (by the way, before your form goes into production, you&amp;#39;ll want to get your data source renamed and tidied up):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sum(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;Job Data List&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Job_Data_List[@Job_Num = xdXDocument:get-DOM()/my:myFields/my:Job], &amp;quot;@Size * @List&amp;quot;))&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61859.aspx</link><pubDate>Wed, 01 Dec 2010 20:32:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61859</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61859</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, field 12 adds all the &amp;quot;@Units&amp;quot; fields and totals them. However, I can&amp;#39;t just do:&lt;/p&gt;&lt;p&gt;total_in_footer = sum(@Size[@Job_Num = Job] * @List[@Job_Num = Job]) because it gives an error.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Currently, I am using your expression box to calculate the Cost in each row (@Units * @List) and now I need the footer to include the total of all of those Costs to give a TotalCost. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;field12 works like this:&amp;nbsp; sum(@Size[@Job_Num = Job]) --- which works fine for just tallying up all the sizes. But now that I have a cost that is the calculation of @Units * @List, how can I sum this up?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sorry if I am confusing you -- this is all quite confusing to me. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61858.aspx</link><pubDate>Wed, 01 Dec 2010 20:23:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61858</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61858</wfw:commentRss><description>&lt;p&gt;If you need to set a single field in your main data source to the total of your ShP list data, you can do that with a formula -- look into the sum function (you may need eval, depending on what you are trying to do). Be careful with defaults that get updated when the data changes -- if the ShP list data changes and you re-open the form, you have to think about whether the total cost should change.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;I fill out your form on June 1. The total for the list items at that time is $7.00. I save my XML, the field has a value of 7.00.&lt;/p&gt;
&lt;p&gt;You open my XML August 15. The total for the list items is now $10.00. Should the value of the field in the XML I saved change?&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61857.aspx</link><pubDate>Wed, 01 Dec 2010 20:01:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61857</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61857</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, I originally thought this wouldn&amp;#39;t matter because he never asked me before to total up all the fields -- this was an addition.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So right now, the expression box is correctly adding up the data from the two sharepoint fields, but now he wants a total of all those totals to show up in the footer of the repeating table (similar to how I had field12). As it seems to be leading to, I don&amp;#39;t think I&amp;#39;ll be able to do this unless I actually create the totalCost field inside the sharepoint form so that when I grab the sharepoint data I can then do an expression box or text file to sum up all of these fields similar to how it&amp;#39;s done now (or in field12).&lt;/p&gt;&lt;p&gt;Is there any way I can do this without actually manipulating the sharepoint fields? It seems expression box/grabbing the data sources is the only way to display information from the secondary source as you have done. If there is no other way, manipulating the way sharepoint stores its data (i.e. adding an additional column to total the values before I pass them into this form) isn&amp;#39;t necessarily unfeasible, just not preferable.&lt;/p&gt;&lt;p&gt;Thanks, again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61855.aspx</link><pubDate>Wed, 01 Dec 2010 19:52:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61855</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61855.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61855</wfw:commentRss><description>&lt;p&gt;You are correct -- they don&amp;#39;t store. They merely reflect the state of your secondary data source. This is why I expressed concern over the schema for you form.&lt;/p&gt;
&lt;p&gt;What is the actual requirement you are working toward?&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61853.aspx</link><pubDate>Wed, 01 Dec 2010 19:11:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61853</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61853</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;One more quick question...&lt;/p&gt;&lt;p&gt;Manager just asked me to sum up all of the totalCost stuff but I can&amp;#39;t add expression box values since they do not store. Am I correct about this?&lt;/p&gt;&lt;p&gt;Sorry to bother you again! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61851.aspx</link><pubDate>Wed, 01 Dec 2010 18:18:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61851</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61851</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes! It works beautifully! After all this effort and I just needed an expression box?!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you so much for all your help -- this just saved me from the wrath of the higher ups. (AND you did responded promptly) -- I am forever grateful! :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61850.aspx</link><pubDate>Wed, 01 Dec 2010 18:11:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61850</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61850</wfw:commentRss><description>&lt;p&gt;Right click the file and save locally. Right click the saved file to open in design mode. Then you&amp;#39;ll be able to re-save. IP forms don&amp;#39;t much care for being moved about. :)&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61849.aspx</link><pubDate>Wed, 01 Dec 2010 18:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61849</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61849</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It is not necessary to have this information on the Sharepoint site -- this will be manipulated as an offline form for administrative purposes. Thanks for the heads up!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to open your file but I think it has to be published by you before I can open it? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61847.aspx</link><pubDate>Wed, 01 Dec 2010 17:30:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61847</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61847</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t think your data structure is workable. The field you want to calcuate the total cost in is in your main data source. Your other data is in your secondary data source. Even though you have made the field repeating, InfoPath won&amp;#39;t automatically insert enough instances of the field to have one for each line item.&lt;/p&gt;
&lt;p&gt;Remember, your secondary data source data won&amp;#39;t ever be saved with your stored form data. If any of that SharePoint list data needs to stay with the filled out form, you&amp;#39;ll need to rethink your approach.&lt;/p&gt;
&lt;p&gt;All that being said, I&amp;#39;ve added an expression box that should show the correct Size * List for each row (the current formula in total cost uses *, although your post above says + -- not sure what your desired result is).&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61846.aspx</link><pubDate>Wed, 01 Dec 2010 16:51:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61846</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61846</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;As an update, I got permission from my boss to give out the form. Obviously you can&amp;#39;t access the Sharepoint information but at least you can see the way the data is laid out and stored.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Looking to update: TotalCost field in myFields/Calc/TotalCost&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Value: @Size + @List&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any help you can give would be VERY useful and appreciated.&lt;/p&gt;&lt;p&gt;Thanks!! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61834.aspx</link><pubDate>Wed, 01 Dec 2010 13:19:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61834</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61834</wfw:commentRss><description>&lt;p&gt;Unfortunately, the work I am doing is material-sensitive so I can&amp;#39;t really send the form out.&lt;/p&gt;&lt;p&gt;What do you think is the alternative to code? I&amp;#39;ll do whatever I have to to get this resolved. I looked up some tutorials online where people are using current() method but it seems my default value field has to use up that spot because the data I am bringing it seems to be multi-layered (I&amp;#39;m not sure of this because I am quite new to InfoPath...)&lt;/p&gt;&lt;p&gt;Currently, the Formula field has:&lt;/p&gt;&lt;p&gt;@Size[@Job_Num = Job] * @List[@Job_Num = Job]&lt;/p&gt;&lt;p&gt;in it... the detailed version is:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Job Data List&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Job_Data_List/@Size[../@Job_Num = xdXDocument:get-DOM()/my:myFields/my:Job] * xdXDocument:GetDOM(&amp;quot;Job Data List&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Job_Data_List/@List[../@Job_Num = xdXDocument:get-DOM()/my:myFields/my:Job]&lt;/p&gt;&lt;p&gt;________&lt;/p&gt;&lt;p&gt;This works great and just fine and updates every value for when I manually add a line in it once I am previewing the form, but it just repeats the same value calculated from the first row of the repeating table when the form is pre-populated from SharePoint&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61806.aspx</link><pubDate>Tue, 30 Nov 2010 20:31:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61806</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61806</wfw:commentRss><description>You shouldn&amp;#39;t need code to calculate your total cost for items, I don&amp;#39;t think... Any chance you can attach your form to a reply so I can take a quick peek at it? Under the Options tab, there is a place you can attach a file.</description></item><item><title>Re: Sharepoint populated repeating table - unable to calculate field from repeating row values</title><link>https://www.infopathdev.com:443/forums/thread/61801.aspx</link><pubDate>Tue, 30 Nov 2010 19:32:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61801</guid><dc:creator>msacco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61801</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Bump -- still in need of this problem to be resolved. PLEASE help!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>