<?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: Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/2862.aspx</link><pubDate>Wed, 02 Aug 2006 13:53:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2862</guid><dc:creator>lotusvball</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2862</wfw:commentRss><description>Ok, I tried to simplify this and use just the secondary data source and the tblADAllowanceActualHeader table only. &lt;br /&gt;&lt;br /&gt;In the repeating section of the Header table I have a dropdown list for Div.  I have two rules setup.  The first rule to show me the value of Div currently using:&lt;br /&gt;&lt;br /&gt;current()/../@Div&lt;br /&gt;&lt;br /&gt;This shows me the current value of Div&lt;br /&gt;&lt;br /&gt;My second rule is to give me the division bugdet where Division = Div&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("vADAllowanceBudget")/dfs:myFields/dfs:dataFields/d:vADAllowanceBudget/@DivBudget[../@Division = current()/../@Div]&lt;br /&gt;&lt;br /&gt;This does not work.  I get an empty box.  vADAllowanceBudget is the secodary data source and I know the Division has a budget number.  What am I missing?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/2861.aspx</link><pubDate>Tue, 01 Aug 2006 22:39:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2861</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2861</wfw:commentRss><description>Ok, I think you need to do this:&lt;br /&gt;&lt;br /&gt;Replace each instance of "xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblADAllowanceActualHeader/d:tblADAllowanceActualDetail" with "current()" and each instance of "xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblADAllowanceActualHeader" with "current()/.."&lt;br /&gt;&lt;br /&gt;I hope this helps!</description></item><item><title>Re: Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/2860.aspx</link><pubDate>Mon, 31 Jul 2006 18:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2860</guid><dc:creator>lotusvball</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2860.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2860</wfw:commentRss><description>I am not using a button but instead have a rule setup after the ProductDescription is selected.  This is within a repeating table.&lt;br /&gt;</description></item><item><title>Re: Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/2859.aspx</link><pubDate>Mon, 31 Jul 2006 17:32:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2859</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2859</wfw:commentRss><description>Hello lotusvball! Where are you putting this button to pop up the message box? My guess is that you will probably have to use the current() function to get at the appropriate values that you are trying to perform the lookup with, but I would like to know a little bit more about the schema of the form and what exactly you are trying to do.</description></item><item><title>Re: Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/2858.aspx</link><pubDate>Mon, 31 Jul 2006 13:48:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2858</guid><dc:creator>lotusvball</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2858</wfw:commentRss><description>Anyone have any clue on how to do this?  There has to be someone smart enough to figure this out.</description></item><item><title>Fill second repeating table</title><link>https://www.infopathdev.com:443/forums/thread/1444.aspx</link><pubDate>Wed, 26 Jul 2006 20:16:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1444</guid><dc:creator>lotusvball</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1444</wfw:commentRss><description>Extreme newbie.  I have search for about 4 hours for an answer to this and I am very close but I can't seem to get this to work.  &lt;br /&gt;&lt;br /&gt;I have 3 SQL tables.&lt;br /&gt;tblAdAllowanceBudget&lt;br /&gt;tblAdAllowanceActualHeader&lt;br /&gt;tblAdallowanceActualDetail&lt;br /&gt;&lt;br /&gt;I have my main connection set to tblAdAllowanceActualHeader joined to tblAdAllowanceActualDetail on AdCode&lt;br /&gt;&lt;br /&gt;I have a secondary connection to tblAdAllowanceBudget&lt;br /&gt;&lt;br /&gt;tblAdAllowanceActualHeader contains Div,Dealer, AdCode&lt;br /&gt;tblAdAllowanceActualDetail contains AdCode,ProdDesc,ProdCode,InvAmt&lt;br /&gt;&lt;br /&gt;tblAdAllowanceBudget contains Div,Dealer,ProdCode,Year, Budget&lt;br /&gt;&lt;br /&gt;I have the form setup with the info from the Header file entered in a repeating section with the ability to insert turned off (this is the way it was brought in when the connection was set up).  I have the Detail file entered in a repeating table.  The ProdDesc DDL is filter based off of the Div entered.  The ProdCode is then filed in with a Rule based off of the ProdDesc selected.  The section also includes InvAmt.  I would like to have the budget amt auto fill in based off of the Div, Dealer and Code that has been filled in already.  I am at a compete loss as to how to do this.  &lt;br /&gt;&lt;br /&gt;I set up a rule to show the concat() of Div, Dealer, Year, and Code.  and this works, but I can not filter the secondary data source based on this info.  &lt;br /&gt;&lt;br /&gt;here is the xpath I used for the concat():&lt;br /&gt;concat(../../@Div, "2006", ../../@Dealer, ../@ProdCode)&lt;br /&gt;&lt;br /&gt;and here is the code I am trying to use to get the budget to pop up in a message box just to see if it will work.&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("AdAllowanceBudget")/dfs:myFields/dfs:dataFields/d:tblAdAllowanceBudget/@CodeAmt[../@Dealer = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblADAllowanceActualHeader/@Dealer and ../@Code = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblADAllowanceActualHeader/d:tblADAllowanceActualDetail/@ProdCode and ../@Division = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:tblADAllowanceActualHeader/@Div and ../@BudgetYear = "2006"]&lt;br /&gt;&lt;br /&gt;I get a blank message box and I am sure there is info matching the filter in the budget table.&lt;br /&gt;&lt;br /&gt;I am at my wits end here.  I know this should be possible, but can't seem to get there.</description></item></channel></rss>