<?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: Show selected display name from dropdown in another field</title><link>https://www.infopathdev.com:443/forums/thread/83317.aspx</link><pubDate>Mon, 08 Oct 2012 20:40:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83317</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83317</wfw:commentRss><description>&lt;p&gt;Looks like&amp;nbsp;I don&amp;#39;t understand current() at all. I changed the calculated value to use the xml data source to which the drop down is bound:&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;GetFormsList&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetFormsListResponse/tns:GetFormsListResult/tns:Item[tns:Value = xdXDocument:GetDOM(&amp;quot;SelectedId&amp;quot;)/SelectedId/Id]/tns:DisplayName&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hope to watch all the webinars soon.&lt;/p&gt;&lt;p&gt;Thanks for your help.&lt;/p&gt;</description></item><item><title>Re: Show selected display name from dropdown in another field</title><link>https://www.infopathdev.com:443/forums/thread/83239.aspx</link><pubDate>Thu, 04 Oct 2012 22:32:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83239</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83239</wfw:commentRss><description>&lt;p&gt;Hi -&lt;/p&gt;
&lt;p&gt;Well, I think what you may not be understanding is current(). Where is your calculated value located? Is it in a section bound to the same field that is bound to the dropdown? I&amp;#39;m thinking probably not... so I&amp;#39;d expect something perhaps more like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;GetFormsList&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetFormsListResponse/tns:GetFormsListResult/tns:Item/tns:DisplayName[../tns:Value = current()/&lt;strong&gt;my:FieldThatIsBoundToTheDropDown&lt;/strong&gt;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you need to figure out where you are, you can always try just the local-name function in your calculated value - that will tell you, so you will then know what current() means in your particular instance. Does that make sense?&lt;/p&gt;
&lt;p&gt;(PS - I did a webinar on this recently - you can find a recording&amp;nbsp;&lt;a href="http://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=hilary%20stoupa%20qdabra%20webinar%20xpath%20youtube&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;ved=0CCUQtwIwAA&amp;amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-SDZD-XgGn8&amp;amp;ei=Rw5uULKiJOzqiQKY1oCYCg&amp;amp;usg=AFQjCNHFW04IvkFnFyIi-d9s8ZRBS4IZqA"&gt;here&lt;/a&gt;.)&lt;/p&gt;</description></item><item><title>Show selected display name from dropdown in another field</title><link>https://www.infopathdev.com:443/forums/thread/83228.aspx</link><pubDate>Thu, 04 Oct 2012 19:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83228</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=83228</wfw:commentRss><description>&lt;p&gt;...but I don&amp;#39;t want this other field to be part of the main datasource, which I think&amp;nbsp;means I need to use a calculated field.&amp;nbsp; I&amp;nbsp;tried that with this formula:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;GetFormsList&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetFormsListResponse/tns:GetFormsListResult/tns:Item/tns:DisplayName[../tns:Value = current()]&lt;/p&gt;&lt;p&gt;but that doesn&amp;#39;t work. What am I not understanding here?&lt;/p&gt;</description></item></channel></rss>