<?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: Repeating table sum and select from a database</title><link>https://www.infopathdev.com:443/forums/thread/3471.aspx</link><pubDate>Tue, 14 Nov 2006 22:14:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3471</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3471</wfw:commentRss><description>Ok. I have it working with rules, but I can't figure out how to make it work. I have sum(monthlyExpenses) as the Xpath.....I need to sum them up by a particular department. Any Ideas please.&lt;br /&gt;</description></item><item><title>Re: Repeating table sum and select from a database</title><link>https://www.infopathdev.com:443/forums/thread/3470.aspx</link><pubDate>Tue, 14 Nov 2006 15:17:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3470</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3470</wfw:commentRss><description>Shiva,&lt;br /&gt;&lt;br /&gt;         I added this Xpath and it filters out everything. I want it to be filtered by the drop down list for that department. If anyone can help, I would greatly be thankful for the help.</description></item><item><title>Re: Repeating table sum and select from a database</title><link>https://www.infopathdev.com:443/forums/thread/3469.aspx</link><pubDate>Fri, 10 Nov 2006 18:13:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3469</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3469</wfw:commentRss><description>Hi Michael,&lt;br /&gt;&lt;br /&gt;Can you try below two Xpaths: &lt;br /&gt;&lt;br /&gt;/myFields/datafields/d:TOSS/employeeDepartment[../@monthlyExpenses = current()/SelectedemployeeDepartment]&lt;br /&gt;&lt;br /&gt;/myFields/datafields/d:TOSS[@monthlyExpenses = current()/SelectedemployeeDepartment]/employeeDepartment</description></item><item><title>Repeating table sum and select from a database</title><link>https://www.infopathdev.com:443/forums/thread/1659.aspx</link><pubDate>Fri, 10 Nov 2006 16:15:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1659</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1659</wfw:commentRss><description>I'm trying to Use a drop down box to select a department, then I want a repeating table below to select just that department monthly expenses and just sum it up from that department which was select from the drop down box above. I've tried this with rules, but I think I'm a little off. If someone can assist me, I will greatly appreciate it. If anyone knows anyway else I can do this, let me know.&lt;br /&gt;&lt;br /&gt;Here is my Schema&lt;br /&gt;&lt;br /&gt;.myFields&lt;br /&gt;....queryFields&lt;br /&gt;....dataFields&lt;br /&gt;.......d:TOSS&lt;br /&gt;...........employeeDepartment (drop down box with 10 departments)&lt;br /&gt;.......my:ytdExpenseR   (repeating table that sums up the monthlyexpense)&lt;br /&gt;.......my:ytdCapitalR   (repeating table that sums up the monthlyexpense)&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;I found that I may have to use current(), but I can't get it to work exactly right. Here is the code that I got so far to put in Xpath.&lt;br /&gt;&lt;br /&gt;/myFields/datafields/d:TOSS/employeeDepartment[../@monthlyExpenses = current()/Selection/SelectedemployeeDepartment]</description></item></channel></rss>