<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Get the display name of the selected Drop Downlist box Instead of Value</title><link>https://www.infopathdev.com:443/forums/thread/41207.aspx</link><pubDate>Fri, 01 May 2009 10:37:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41207</guid><dc:creator>paralyzedcitizen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41207.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=41207</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;An easier way to achieve this (in my opinion) is put both peices of informaiton into the value field seperated by a unique seperator like an underscore. eg.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Display Name&lt;/p&gt;&lt;p&gt;0_Patient &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Patient&lt;/p&gt;&lt;p&gt;1_Nurse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nurse&lt;/p&gt;&lt;p&gt;etc.&lt;/p&gt;&lt;p&gt;Then create two other fields which by default equal the value of the above field only using the string-before/string-after functions. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get the display name of the selected Drop Downlist box Instead of Value</title><link>https://www.infopathdev.com:443/forums/thread/21106.aspx</link><pubDate>Thu, 21 Jun 2007 06:09:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21106</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21106</wfw:commentRss><description>&lt;p&gt;You cannot. The display value is a pure view notion and view cannot be accessed by neither rules not scripting.&lt;/p&gt;&lt;p&gt;Your workaround is to define an aux data source based off an XML file where you will type the values for the dropdown. For example, it may look like this:&lt;/p&gt;&lt;p&gt;&amp;lt;data&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;option value=&amp;quot;0&amp;quot;&amp;gt;Patient&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;option value=&amp;quot;1&amp;quot;&amp;gt;Nurse&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;nbsp; ...&lt;br /&gt;&amp;lt;/data&amp;gt;&lt;/p&gt;&lt;p&gt;Now you can bind your dropdown to this data source instead of typing the data in manually. Then when you look at /dfs:myFields/my:ComboReason, you can look up this value in the data source for the aux dom and find your string there.&lt;/p&gt;&lt;p&gt;A bit of an effort, but it works!&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;&lt;p&gt;Dave&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Get the display name of the selected Drop Downlist box Instead of Value</title><link>https://www.infopathdev.com:443/forums/thread/21105.aspx</link><pubDate>Thu, 21 Jun 2007 05:53:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21105</guid><dc:creator>chandu2007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21105</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;I have a dropdownlistbox with 4 Items, which are entered manually like&lt;/p&gt;&lt;p&gt;Value &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DisplayName&lt;/p&gt;&lt;p&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Patient&lt;/p&gt;&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Nurse&lt;/p&gt;&lt;p&gt;2 &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp; Doctor&lt;/p&gt;&lt;p&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Referral&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Lets say user selects Nurse, I want to send Nurse to the database and not 1 but when I use the code &lt;/p&gt;&lt;p&gt;mainNav1.SelectSingleNode(&amp;quot;/dfs:myFields/my:ComboReason&amp;quot;, NamespaceManager).Value it returns 1 but I want to get the actual DisplayName, how can I do it plz let me know ASAP.&lt;/p&gt;&lt;p&gt;Thanks very much guys&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Chandra&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>