<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: I'm looking to display in a text box the address field of the selected "Customer" from a drop down list box connected to a sharepoint customer list.</title><link>https://www.infopathdev.com:443/forums/thread/46901.aspx</link><pubDate>Sat, 12 Sep 2009 15:17:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46901</guid><dc:creator>homeslacks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46901.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=46901</wfw:commentRss><description>&lt;p&gt;This sounds great Bhavesh! I&amp;#39;m going to give it a try as soon as I can.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you very much for your help on this one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>Re: I'm looking to display in a text box the address field of the selected "Customer" from a drop down list box connected to a sharepoint customer list.</title><link>https://www.infopathdev.com:443/forums/thread/33437.aspx</link><pubDate>Thu, 23 Oct 2008 19:27:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33437</guid><dc:creator>Bhavesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33437</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have two drop downs, one for customer and one for address of selected customers. For dislpaying the address of selected customer from first dropdown follow these steps&lt;/p&gt;
&lt;p&gt;* create secondary data source for retrive data. (name it Customer) this will fetch customer info from SP list. while creating this secondary data source keep the checkbox ON for retriving the data on load.&lt;/p&gt;
&lt;p&gt;* create another secondary data source for retriving data. (name it Address)&amp;nbsp; this will fetch customer address info from the SP list. while creating this data source keep the checkbox OFF for retriving the data on load&lt;/p&gt;
&lt;p&gt;* copy the following code&lt;/p&gt;&lt;font color="#0000ff"&gt;
&lt;p&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;void&lt;/font&gt; Customer_Changed(&lt;font color="#0000ff"&gt;object&lt;/font&gt; sender, &lt;font color="#2b91af"&gt;XmlEventArgs&lt;/font&gt; e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; cities = MainDataSource.CreateNavigator();&lt;/p&gt;
&lt;p&gt;cities.SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:Address&amp;quot;&lt;/font&gt;, NamespaceManager).SetValue(&lt;font color="#a31515"&gt;&amp;quot;&amp;quot;&lt;/font&gt;);&lt;/p&gt;
&lt;p&gt;SetAddressOptions();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt; &lt;font color="#0000ff"&gt;void&lt;/font&gt; SetAddressOptions()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af"&gt;FileQueryConnection&lt;/font&gt; q = (&lt;font color="#2b91af"&gt;FileQueryConnection&lt;/font&gt;)&lt;font color="#0000ff"&gt;this&lt;/font&gt;.DataConnections[&lt;font color="#a31515"&gt;&amp;quot;Address&amp;quot;&lt;/font&gt;];&lt;/p&gt;
&lt;p&gt;q.FileLocation = q.FileLocation + &lt;font color="#a31515"&gt;&amp;quot;&amp;amp;FilterField1=&lt;strong&gt;Custcode&lt;/strong&gt;&amp;amp;FilterValue1=&amp;quot;&lt;/font&gt; + GetAddressValue();&lt;/p&gt;
&lt;p&gt;q.Execute();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt; &lt;font color="#0000ff"&gt;string&lt;/font&gt; GetAddressValue()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; nav = &lt;font color="#0000ff"&gt;this&lt;/font&gt;.CreateNavigator();&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt; filtervalue = nav.SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:Customer&amp;quot;&lt;/font&gt;, &lt;font color="#0000ff"&gt;this&lt;/font&gt;.NamespaceManager).Value;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt; filtervalue;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is working fine for me for my web based infopath form running in SP environment.&lt;/p&gt;
&lt;p&gt;Hope will work for you as well&lt;/p&gt;
&lt;p&gt;Enjoyyyyyyy&lt;/p&gt;
&lt;p&gt;Bhavesh&lt;/p&gt;</description></item><item><title>Re: I'm looking to display in a text box the address field of the selected "Customer" from a drop down list box connected to a sharepoint customer list.</title><link>https://www.infopathdev.com:443/forums/thread/29032.aspx</link><pubDate>Thu, 29 May 2008 15:47:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29032</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29032</wfw:commentRss><description>&lt;p&gt;You should be able to put a rule on the field which the drop down is bound to.&lt;/p&gt;
&lt;p&gt;Use a set field action to set the address field based on the name, although if you have multiple identical names that might be an issue. You may need to use the ID or something. or make your names unique in your list.&lt;/p&gt;
&lt;p&gt;I believe this should be browser compatible.&lt;/p&gt;</description></item><item><title>I'm looking to display in a text box the address field of the selected "Customer" from a drop down list box connected to a sharepoint customer list.</title><link>https://www.infopathdev.com:443/forums/thread/29028.aspx</link><pubDate>Thu, 29 May 2008 14:25:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29028</guid><dc:creator>homeslacks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=29028</wfw:commentRss><description>&lt;p&gt;I have a browser enabled form that has a drop down list linked to a sharepoint list of customers. The sharepoint customers list has fields for customer name, address and ID. This drop down list box allows of course one of the many fields to be used, I&amp;#39;ve selected the customer name. The issue I have is that on the same infopath form I want to display the address of the now selected customer name on the form and I just can&amp;#39;t figure out how to do that. This would not only help to &amp;quot;auto populate&amp;quot; the form fields but it would solve an issue I have where I do have multiple customer records of the same name on this sharepoint list with different addresses. The issue being that people can&amp;#39;t tell what the address is, all they would see in this one drop down list are two records example &amp;quot;Company abc, Complany abc&amp;quot;. It would be super nice if as they select the first &amp;quot;Company abc&amp;quot; a field right next to it display&amp;#39;s the address, they then could move to select the next company abc and see the address for that one ect.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can I do this with browser enabled forms, and if so how please. This would take my forms to a new level!&amp;nbsp; :)&lt;/p&gt;</description></item></channel></rss>