<?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: Help with current(), drop downs, and text box</title><link>https://www.infopathdev.com:443/forums/thread/8068.aspx</link><pubDate>Sun, 23 Oct 2005 04:26:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8068</guid><dc:creator>faivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8068</wfw:commentRss><description>I removed the rules from the button and added:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = current()/../@VesselDescID]&lt;br /&gt;&lt;br /&gt;to the text box value property and it works fine.&lt;br /&gt;&lt;br /&gt;Brian</description></item><item><title>Help with current(), drop downs, and text box</title><link>https://www.infopathdev.com:443/forums/thread/5041.aspx</link><pubDate>Fri, 21 Oct 2005 22:55:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5041</guid><dc:creator>faivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5041</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I trying to do the following:&lt;br /&gt;&lt;br /&gt;I have a repeating table.  Each row has a button.  When that button is clicked I want to populate a text box with the value in a drop down list that is in the chosen row.  The drop down list is populated from a secondary database source.  Here is the rule I have for the button:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = current()/../@VesselDescID]&lt;br /&gt;&lt;br /&gt;Which isn't working.  If I have the following two actions in the rule, where I first set a field to the current VesselDescID:&lt;br /&gt;&lt;br /&gt;current()/@VesselDescID&lt;br /&gt;&lt;br /&gt;then use this field to get the value in the drop down list of the current row:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("VesselDesc")/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = xdXDocument:get-DOM()/dfs:myFields/my:VesselDesc.VesselDescID]&lt;br /&gt;&lt;br /&gt;it works just fine.  It seems that I should be able to combine these two action into one.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;br /&gt;Brian Faivre</description></item></channel></rss>