<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12316.aspx</link><pubDate>Tue, 21 Nov 2006 17:57:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12316</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12316</wfw:commentRss><description>Michael,&lt;br /&gt;&lt;br /&gt;I really think 12 posts in a row is a little unnecessary. E-mail me your form and I will reply with the XPath you need.</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12315.aspx</link><pubDate>Tue, 21 Nov 2006 15:42:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12315</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12315.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12315</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;        This what I want, but the Xpath still won't work. This works for one department.&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[@employeeDepartment = "5201 - Management IS-Hatfield"]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12314.aspx</link><pubDate>Tue, 21 Nov 2006 15:21:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12314</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12314.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12314</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;        Is it something else I should be doing with rules, because the Xpath seems to be right. When I put it in and click verify it's not coming up with any errors. When I click the drop down department box, it doesn't change amounts. Could you give me more insight please. If anyone else can help, I would &lt;font size="5"&gt;&lt;font color="brown"&gt;appreciate &lt;/font id="brown"&gt;&lt;/font id="size5"&gt;it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[@employeeDepartment = ../../dfs:dataFields/d:TOSS/@employeeDepartment]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12313.aspx</link><pubDate>Mon, 20 Nov 2006 19:52:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12313</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12313</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;         this is what I got so far, but it neither works&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[@employeeDepartment = /descendant-or-self::node()/../../selectedemployeeDepartment]/@monthlyExpenses)&lt;br /&gt;&lt;br /&gt;         or &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[@employeeDepartment = /../myfields/dataFields/d:TOSS/@selectedemployeeDepartment]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12312.aspx</link><pubDate>Mon, 20 Nov 2006 18:57:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12312</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12312.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12312</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;       I bought the Xpath 2.0 book, will that help. Because I still can't figure this out. I got a presentation tommorow on this. Can you please help.</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12311.aspx</link><pubDate>Mon, 20 Nov 2006 18:46:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12311</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12311</wfw:commentRss><description>Greg do you mean  ReverseAxis  or something</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12310.aspx</link><pubDate>Mon, 20 Nov 2006 18:05:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12310</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12310</wfw:commentRss><description>The XPath is still not right... your filter on d:TOSS is comparing the first instance of @employeeDepartment (i.e. the field value on the first row of the table) to itself.&lt;br /&gt;&lt;br /&gt;The beginning of the filter (or the parts in the square brackets '[ ]' is an absolute path to the first row of d:TOSS. The second part of the filter steps back up the tree, and then comes back down, once again selecting the first row of d:TOSS.&lt;br /&gt;&lt;br /&gt;Following is just pseudo-code for an XPath, so you'll need to find the right fields to fill in with, but it should point you in the right direction.&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[@employeeDepartment = XPATH_TO_SELECTED_DEPARTMENT_FIELD]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12309.aspx</link><pubDate>Mon, 20 Nov 2006 15:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12309</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12309.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12309</wfw:commentRss><description>Its coming from my secondary data source, because that is where I want to add up the totals depending on department.</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12308.aspx</link><pubDate>Mon, 20 Nov 2006 15:50:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12308</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12308</wfw:commentRss><description>Greg this is the Xpath I put in the ytdExp0enses text Box&lt;br /&gt;&lt;br /&gt;sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS[xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS/@employeeDepartment = ../../dfs:dataFields/d:TOSS/@employeeDepartment]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12307.aspx</link><pubDate>Fri, 17 Nov 2006 19:23:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12307</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12307.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12307</wfw:commentRss><description>I modified my Xpath to look like this....I don't know why I put Selectedemployee in there. It still doesn't sum up for every specific department. Shows $0.00 in the ytdExpenses text box.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sum(../../dfs:dataFields/d:TOSS[@employeeDepartment = ../../dfs:dataFields/d:TOSS/@monthlyExpenses]/@monthlyExpenses)</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12306.aspx</link><pubDate>Fri, 17 Nov 2006 17:33:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12306</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12306</wfw:commentRss><description>Modified:&lt;br /&gt;&lt;br /&gt;sum(../../dfs:dataFields/d:TOSS[@employeeDepartment = ../SelectedemployeeDepartment]/@monthlyExpenses)&lt;br /&gt;&lt;br /&gt;Note that the beginning slash forces the XPath to start at the root node, therefore /../.. means to go two levels above the root node, which is invalid.&lt;br /&gt;&lt;br /&gt;Also note that employeeDepartment is an attribute, not an element.&lt;br /&gt;&lt;br /&gt;Finally, I don't find SelectedemployeeDepartment anywhere in the schema you defined above, and must therefore assume that it is present in a separate data connection. Therefore you will need to either use current() to get back to it (if you started your query from in the context of the data connection that contains SelectedemployeeDepartment, or give an absolute XPath (which you should be able to consruct from within InfoPath and will likely include a call to get the other DOM).</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12305.aspx</link><pubDate>Thu, 16 Nov 2006 18:47:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12305</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12305.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12305</wfw:commentRss><description>Greg here is my schema. Thanks. Any help will be greatly appreciated.&lt;br /&gt;&lt;br /&gt;- &amp;lt;dfs:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-10-03T15:05:30" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"&amp;gt;&lt;br /&gt;- &amp;lt;dfs:queryFields&amp;gt;&lt;br /&gt;  &amp;lt;q:TOSS ReportID="" expenseReportDate="" expenseStartDate="" expenseEndDate="" monthlyExpenses="" monthlyBudgeted="" monthlyBudgetVariance="" expenseExplain="" CapitalReportDate="" CapitalStartDate="" CapitalEndDate="" monthlyCapitalExpenses="" monthlyCapitalBudgeted="" monthlyCapitalVariance="" CapitalExplain="" employeeDepartment="" /&amp;gt; &lt;br /&gt;  &amp;lt;/dfs:queryFields&amp;gt;&lt;br /&gt;- &amp;lt;dfs:dataFields&amp;gt;&lt;br /&gt;  &amp;lt;d:TOSS ReportID="" expenseReportDate="" expenseStartDate="" expenseEndDate="" monthlyExpenses="" monthlyBudgeted="" monthlyBudgetVariance="" expenseExplain="" CapitalReportDate="" CapitalStartDate="" CapitalEndDate="" monthlyCapitalExpenses="" monthlyCapitalBudgeted="" monthlyCapitalVariance="" CapitalExplain="" employeeDepartment="" /&amp;gt; &lt;br /&gt;  &amp;lt;/dfs:dataFields&amp;gt;&lt;br /&gt;- &amp;lt;my:YTDTotals&amp;gt;&lt;br /&gt;  &amp;lt;my:ytdExpenses /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdBudgeted /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdVariance /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalExpenses /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalBudgeted /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalVariance /&amp;gt; &lt;br /&gt;  &amp;lt;/my:YTDTotals&amp;gt;&lt;br /&gt;- &amp;lt;my:YTDTotals&amp;gt;&lt;br /&gt;  &amp;lt;my:ytdExpenses /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdBudgeted /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdVariance /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalExpenses /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalBudgeted /&amp;gt; &lt;br /&gt;  &amp;lt;my:ytdCapitalVariance /&amp;gt; &lt;br /&gt;  &amp;lt;/my:YTDTotals&amp;gt;&lt;br /&gt;- &amp;lt;xd:SchemaInfo LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"&amp;gt;&lt;br /&gt;- &amp;lt;xd:Namespaces&amp;gt;&lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;/xd:Namespaces&amp;gt;&lt;br /&gt;  &amp;lt;/xd:SchemaInfo&amp;gt;&lt;br /&gt;- &amp;lt;xd:DataConnection Name="TOSSReceive"&amp;gt;&lt;br /&gt;- &amp;lt;dfs:myFields xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-10-03T15:05:30" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"&amp;gt;&lt;br /&gt;- &amp;lt;dfs:dataFields&amp;gt;&lt;br /&gt;  &amp;lt;d:TOSS ReportID="" expenseReportDate="" expenseStartDate="" expenseEndDate="" monthlyExpenses="" monthlyBudgeted="" monthlyBudgetVariance="" expenseExplain="" CapitalReportDate="" CapitalStartDate="" CapitalEndDate="" monthlyCapitalExpenses="" monthlyCapitalBudgeted="" monthlyCapitalVariance="" CapitalExplain="" employeeDepartment="" /&amp;gt; &lt;br /&gt;  &amp;lt;/dfs:dataFields&amp;gt;&lt;br /&gt;- &amp;lt;xd:SchemaInfo LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"&amp;gt;&lt;br /&gt;- &amp;lt;xd:Namespaces&amp;gt;&lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;xd:Namespace LocalName="myFields" NamespaceURI="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" /&amp;gt; &lt;br /&gt;  &amp;lt;/xd:Namespaces&amp;gt;&lt;br /&gt;  &amp;lt;/xd:SchemaInfo&amp;gt;&lt;br /&gt;  &amp;lt;/dfs:myFields&amp;gt;&lt;br /&gt;  &amp;lt;/xd:DataConnection&amp;gt;&lt;br /&gt;  &amp;lt;/dfs:myFields&amp;gt;</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12304.aspx</link><pubDate>Thu, 16 Nov 2006 18:23:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12304</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12304.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12304</wfw:commentRss><description>Okay Greg,&lt;br /&gt;            I almost have it. Just a little help. This is the Xpath I have now..&lt;br /&gt;&lt;br /&gt;sum(/../../dfs:dataFields/d:TOSS/employeeDepartment[../employeeDepartment = ../SelectedemployeeDepartment]/@monthlyExpenses)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;it's just displays $0.00   as I change department with the drop down list box...it should add up all the monthly monthly expenses for that department.</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12303.aspx</link><pubDate>Thu, 16 Nov 2006 18:17:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12303</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12303</wfw:commentRss><description>Okay, obviously I'm confused. . . . :o)&lt;br /&gt;&lt;br /&gt;The XPath needs to be placed in whatever field you are expecting to show the results of that XPath. (Sorry so vague).</description></item><item><title>Re: Filtering with current from an SQL database</title><link>https://www.infopathdev.com:443/forums/thread/12302.aspx</link><pubDate>Thu, 16 Nov 2006 17:58:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12302</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12302</wfw:commentRss><description>Greg,&lt;br /&gt;&lt;br /&gt;         Where do I put the sum(monthlyExpenses)    at to sum the monthlyExpenses. If I put that Xpath in there.</description></item></channel></rss>