<?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: Repeating table calculation</title><link>https://www.infopathdev.com:443/forums/thread/9644.aspx</link><pubDate>Tue, 25 Apr 2006 18:21:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9644</guid><dc:creator>lisaspencer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9644</wfw:commentRss><description>We are using rules to populate the miles field.  What is a Node-test expected error?</description></item><item><title>Re: Repeating table calculation</title><link>https://www.infopathdev.com:443/forums/thread/9643.aspx</link><pubDate>Tue, 25 Apr 2006 17:30:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9643</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9643</wfw:commentRss><description>You will have to change your XPath to include use of the current() function. I'm not sure how your schema is laid out, but this might work:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Company Mileage")/dfs:myFields/dfs:dataFields/dfs:Company_Mileage/@Mileage[(../@Company_Name = current()/my:Mileage/my:Client_Name) and (current()/my:Mileage/my:Override_Mileage != string(true()))]&lt;br /&gt;&lt;br /&gt;Are you using rules on the drop-down or a default value formula to populate the miles field? Here are some references for the current() function:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.google.com/search?q=xsl+current+function&gt;http://www.google.com/search?q=xsl+current+function&lt;/a&gt;</description></item><item><title>Re: Repeating table calculation</title><link>https://www.infopathdev.com:443/forums/thread/9642.aspx</link><pubDate>Tue, 25 Apr 2006 15:03:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9642</guid><dc:creator>lisaspencer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9642</wfw:commentRss><description>Matt,&lt;br /&gt;The drop down list works fine, it's the Miles control that is duplicating miles for the second company.  I can send you the form if you'd like.&lt;br /&gt;Thanks,</description></item><item><title>Re: Repeating table calculation</title><link>https://www.infopathdev.com:443/forums/thread/9641.aspx</link><pubDate>Tue, 25 Apr 2006 01:10:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9641</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9641</wfw:commentRss><description>You will need to use the current function for this. Check out this HowTo I recently wrote and I think it should be able to get you on the right track:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&lt;/a&gt;</description></item><item><title>Repeating table calculation</title><link>https://www.infopathdev.com:443/forums/thread/5557.aspx</link><pubDate>Mon, 24 Apr 2006 21:49:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5557</guid><dc:creator>lisaspencer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5557</wfw:commentRss><description>I have a form that creates total mileage using a repeating table.  The Miles control is populated from a SharePoint library when a company is chosen on the Infopath form.  The first company works fine, but when I go to add another company, Miles duplicates the first company no matter what the company is.  Here's the code for the Miles control:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Company Mileage")/dfs:myFields/dfs:dataFields/dfs:Company_Mileage/@Mileage[(../@Company_Name = xdXDocument:get-DOM()/my:Technician_Mileage/my:Mileage/my:Client_Name) and (xdXDocument:get-DOM()/my:Technician_Mileage/my:Mileage/my:Override_Mileage != string(true()))]&lt;br /&gt;&lt;br /&gt;Thanks in advance, &lt;br /&gt;</description></item></channel></rss>