<?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: Add Total Expense Report entries to GL Entries at bottom of form</title><link>https://www.infopathdev.com:443/forums/thread/19861.aspx</link><pubDate>Mon, 14 May 2007 21:02:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19861</guid><dc:creator>paustin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19861</wfw:commentRss><description>&lt;p&gt;Now I need to go a step further.&lt;/p&gt;&lt;p&gt;For each expense item entry, I have added a dept # column.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In the GL total section I added at the bottom of the form, I still need to sum the amounts of the expenses grouped by the category.&amp;nbsp; But in addition to that, I need to also group by dept # within the category.&amp;nbsp; So, in the GL section I have added, the &amp;quot;entertainment&amp;quot; category is summed, but I also need a sum of each entertainment entry for each dept # that was entered.&amp;nbsp; I can&amp;#39;t add a test for individual dept #&amp;#39;s because there are too many of them.&lt;/p&gt;&lt;p&gt;Any ideas?&amp;nbsp;I would prefer to do it without coding.&amp;nbsp; I have done a lot of coding in Access&amp;nbsp;VBA, but I haven&amp;#39;t figured out the coding behind the infopath forms yet.&amp;nbsp; If I have to add code&amp;nbsp;to loop through all the expenses and sum all amounts for different depts that way, I don&amp;#39;t know how to return the summed amount to the GL section of the form.&amp;nbsp; (I actually don&amp;#39;t know how to code any of it, but am hoping I can&amp;nbsp;find examples on how to loop through the expense items and create memory varaibles for the values I need).&lt;/p&gt;</description></item><item><title>Re: Add Total Expense Report entries to GL Entries at bottom of form</title><link>https://www.infopathdev.com:443/forums/thread/19793.aspx</link><pubDate>Fri, 11 May 2007 20:17:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19793</guid><dc:creator>paustin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19793</wfw:commentRss><description>&lt;p&gt;I kept searching and found in another blog the answer I needed.&amp;nbsp; In the blog I found how to reference a particular row in a repeating table based on a condition.&lt;/p&gt;&lt;p&gt;In the GL amount expression box data source, I used&amp;nbsp;sum(/my:myFields/my:group1/my:group2[my:category = &amp;quot;entertainment&amp;quot;]/my:amount)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you Matt Faus!&lt;/p&gt;</description></item><item><title>Add Total Expense Report entries to GL Entries at bottom of form</title><link>https://www.infopathdev.com:443/forums/thread/19792.aspx</link><pubDate>Fri, 11 May 2007 19:56:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19792</guid><dc:creator>paustin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19792.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19792</wfw:commentRss><description>&lt;p&gt;I am starting with the InfoPath Expense Report template.&amp;nbsp;&amp;nbsp;I have added a section at the bottom of the form, that has a GL entry for every category that can be chosen in the Itemized Expenses section.&amp;nbsp;What would be the easiest way to get the total of the amounts for each &amp;quot;category&amp;quot; chosen in the Itemized Expenses section&amp;nbsp;and put that total in my new GL section?&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;It didn&amp;#39;t work to set a condition on the &amp;quot;amount&amp;quot; in the Itemized Expenses section and say Sum(amount) for category = &amp;quot;entertainment&amp;quot; because it sums all the amounts for all the expense items.&amp;nbsp; If I add VB code to the changed event for the &amp;quot;amount&amp;quot; column in the Itemized Expenses section,&amp;nbsp;and have it create&amp;nbsp;variables for each category and&amp;nbsp;add the amounts for each when they are entered, I don&amp;#39;t know how to get the data from the variable to new the GL section.&lt;/p&gt;</description></item></channel></rss>