<?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: get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/23829.aspx</link><pubDate>Fri, 19 Oct 2007 09:55:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23829</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23829</wfw:commentRss><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand &amp;quot;/SecondaryData/group1/group2[value = dropdown]/DispName&amp;quot;&lt;/p&gt;
&lt;p&gt;This is my XML File this I set to Secondary Datasource named &amp;quot;LeaveInfo&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;LeaveInfo&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Leaves&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Value&amp;gt;1&amp;lt;/Value&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DisplayName&amp;gt;Annual Leave&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Value&amp;gt;4&amp;lt;/Value&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DisplayName&amp;gt;CTO&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Value&amp;gt;2&amp;lt;/Value&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DisplayName&amp;gt;Sick Leave&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Value&amp;gt;3&amp;lt;/Value&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;DisplayName&amp;gt;Uncertified Sick Leave&amp;lt;/DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Leave&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/Leaves&amp;gt;&lt;br /&gt;&amp;lt;/LeaveInfo&amp;gt;&lt;/p&gt;
&lt;p&gt;How I try to set the formula?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Re: get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/23758.aspx</link><pubDate>Wed, 17 Oct 2007 08:39:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23758</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23758</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to know, Can this solution operate with Browser-Form?&lt;/p&gt;
&lt;p&gt;And How to?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Re: get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/8253.aspx</link><pubDate>Wed, 16 Nov 2005 15:52:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8253</guid><dc:creator>kikkoman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8253</wfw:commentRss><description>Thanks for the help Matt!  I just tried it and it worked.  I didn't think about just saving the values into an XML file and creating a data connection for it, but it was a good idea. I have created other XML files to populate ddl's but I didn't do it in this particular case b/c these values will never change.  The reason I used XML files for the other cases is b/c the users might change those values.  Also kudos for posting the formula, I was able to look at it and then make my Expression box work by filtering based on the 2DS.&lt;br /&gt;This is what my XPath Expression Box formula looked like:&lt;br /&gt;XML file had 2 fields. The parent node was called "Info" and the 2 child nodes "DisplayName" and "Value" like how you stated above.&lt;br /&gt;&lt;br /&gt;DisplayName[Value = Type]&lt;br /&gt;(which says to show the DisplayName in the expression box when the Value in the 2DS equals the value in Type field) &lt;br /&gt;&lt;br /&gt;This is also equivalent to this XPath (Advanced) formula:&lt;br /&gt;xdXDocument:GetDOM("Contracts")/Contracts/Info/&lt;br /&gt;DisplayName[../Value = xdXDocument:get-DOM()/my:Type]&lt;br /&gt;&lt;br /&gt;Thanks a bunch,</description></item><item><title>Re: get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/8252.aspx</link><pubDate>Wed, 16 Nov 2005 06:34:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8252</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8252</wfw:commentRss><description>Hi Matt,&lt;br /&gt;Sweet post. Send me e-mail with your address so I can send you a prize for your 100th post.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/8251.aspx</link><pubDate>Tue, 15 Nov 2005 20:01:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8251</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8251</wfw:commentRss><description>Your going to have to link your options on the DDL to a secondary data source to be able to dynamically pull more than one item of information from them - value and display name.  It's pretty easy, do this:&lt;br /&gt;&lt;br /&gt;1)Create a brand new blank form in infopath with a repeating table with 2 columns.&lt;br /&gt;2) Rename the first column "DisplayName" and the second column "Value"&lt;br /&gt;3) Save the form and open it again for filling out.&lt;br /&gt;4) Fill out the form with your diplay names and values. Save this form as an XML file.&lt;br /&gt;5) Go back to your original form with the DDL and import the XML file that you just saved as a data connection. Do this by going to Tools -&amp;gt; Data connections... -&amp;gt; Add.. -&amp;gt; Recieve Data -&amp;gt; XML Document -&amp;gt; Browse, etc. - Now your the information that you just saved in the XML document is linked as a secondary data source (2DS).&lt;br /&gt;6) Now double-click on your DDL and choose "Look up values in a data connection to a database,... file ..." and choose your 2DS as the data connectioin to use. - Now you have your DDL being populated from the data in the 2DS.&lt;br /&gt;&lt;br /&gt;To get at the "DisplayName" for each one and put it in another textbox or something, you would put a function in the textbox that would use XPath to find the correct node on the 2DS.  The XPath would look something like this:&lt;br /&gt;&lt;br /&gt;/SecondaryData/group1/group2[value = dropdown]/DispName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>get Display Name from ddl box thats done manually</title><link>https://www.infopathdev.com:443/forums/thread/5106.aspx</link><pubDate>Tue, 15 Nov 2005 15:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5106</guid><dc:creator>kikkoman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5106</wfw:commentRss><description>Hello everyone,&lt;br /&gt;&lt;br /&gt;I need help on just getting the "display name" for a drop down list box and then show it in a textbox.  I did search the forum and Greg says to:&lt;br /&gt;"You can get them by knowing where your drop-down list box is getting its display values. You can, for example, use a rule when the drop-down list changes to go to the source and filter by the selected value to get the selected display name and save that into the text box field."&lt;br /&gt;&lt;br /&gt;Most of the examples show where the drop down list box comes from a secondary data source (xml file or web services), but in my example i am listing the fields Manually.  I was trying to filter the "Value" in the drop down list box, but I don't know what I'm supposed to filter by?  I don't quite understand how to do this.  I think it's something basic, but I can't figure it out.  &lt;br /&gt;&lt;br /&gt;Anybody knows the answer, please let me know!  Thanks..and remember I am filling my drop down list box manually, NOT from a data source.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;</description></item></channel></rss>