<?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: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33160.aspx</link><pubDate>Thu, 16 Oct 2008 14:37:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33160</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33160</wfw:commentRss><description>&lt;p&gt;Or is there any other better approach to do the same?&lt;/p&gt;</description></item><item><title>Re: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33159.aspx</link><pubDate>Thu, 16 Oct 2008 14:37:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33159</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33159</wfw:commentRss><description>&lt;p&gt;Thanks Anuma &amp;amp; Swathip.&amp;nbsp; That worked.&amp;nbsp; When the user don&amp;#39;t see the item which they are looking for, i have to give them the ability to add new items which&amp;nbsp;create&amp;nbsp;records in the DB &amp;amp; open up this same form with the newly added items.&amp;nbsp; I am thinking to have a button to add new items next to the dropdown and in the managed code of the button call a new IP form which adds the records to the DB, closes and refreshes this main form.&amp;nbsp; Any help on how to do that?&lt;/p&gt;</description></item><item><title>Re: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33139.aspx</link><pubDate>Thu, 16 Oct 2008 05:37:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33139</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33139.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33139</wfw:commentRss><description>&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Hi BigMo,&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Read the following link.&lt;/span&gt;&lt;u&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Verdana;"&gt;&lt;a href="http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2006/04/18/Automatically-Populate-Fields-from-a-Drop_2D00_Down-Selection.aspx&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Verdana;mso-themecolor:text1;"&gt;In the above link, they used the clients.xml as a secondary data source. You can use your data base secondary source.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Verdana;mso-themecolor:text1;"&gt;Hope this will help you.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-themecolor:text1;"&gt;&lt;/span&gt;</description></item><item><title>Re: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33138.aspx</link><pubDate>Thu, 16 Oct 2008 05:32:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33138</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33138</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Enter following formula&amp;nbsp;as text box (Another field) default value. Double click on the text box and enter below formula in the default value field.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;“Name[@id = field1]”&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Name – Display name from Secondary xml.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;ID – ID from Secondary Xml.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Field1 – Dropdown.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33132.aspx</link><pubDate>Thu, 16 Oct 2008 02:22:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33132</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33132.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33132</wfw:commentRss><description>&lt;p&gt;Can you please give me some more detail.&amp;nbsp; I am little confused. Thanks.&lt;/p&gt;</description></item><item><title>Re: Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33125.aspx</link><pubDate>Wed, 15 Oct 2008 20:55:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33125</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33125</wfw:commentRss><description>&lt;p&gt;Hello &amp;amp; welcome!&lt;/p&gt;
&lt;p&gt;I would set the other field to the Name field from your secondary data source and then filter based on the ID being equal to the field in you Main DOM connected to the dropdown that is populated from that secondary data source. Does that make sense? Let me know if you need more detail...&lt;/p&gt;</description></item><item><title>Getting the displayname of the selectedvalue of a dropdown</title><link>https://www.infopathdev.com:443/forums/thread/33123.aspx</link><pubDate>Wed, 15 Oct 2008 20:22:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33123</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33123</wfw:commentRss><description>&lt;p&gt;I have a dropdown in a infopath form. The items are comin from the DB via webservices. The dropdown is populated with a ID as a value and a NAME as the display name - no problem with that.&amp;nbsp; Now i want to set another field with the displayname of the selected value.&amp;nbsp; How can we achieve that?&amp;nbsp; If we use the xpathnavigator of the main data source / add rule to &amp;#39;Set a field&amp;#39;s value&amp;#39; with the selected value, it would set the ID (which is the value of the dropdown); not the display name.&amp;nbsp; Any help would be appreciated.&lt;/p&gt;</description></item></channel></rss>