<?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: populate a textbox from a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/74666.aspx</link><pubDate>Fri, 27 Jan 2012 16:38:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74666</guid><dc:creator>markarmstrong</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74666</wfw:commentRss><description>&lt;p&gt;i mangage to fix it with this using the timestamp to identify the field&lt;/p&gt;&lt;p&gt;thanks anyway&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Live$Vendor&amp;quot;)/dfs:myFields/dfs:dataFields/d:Live_Vendor/@Phone_No_[../@timestamp = xdXDocument:get-DOM()/my:PurchaseOrder/my:FirstDetails/my:SupplierSelect]&lt;/p&gt;</description></item><item><title>Re: populate a textbox from a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/74662.aspx</link><pubDate>Fri, 27 Jan 2012 16:03:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74662</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74662</wfw:commentRss><description>&lt;p&gt;Hi -&lt;/p&gt;
&lt;p&gt;Can you try this instead?&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Live$Vendor&amp;quot;)/dfs:myFields/dfs:dataFields/d:Live_Vendor/@Phone_No_[../@Name = xdXDocument:get-DOM()/my:PurchaseOrder/my:FirstDetails/my:Supplier]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: populate a textbox from a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/74658.aspx</link><pubDate>Fri, 27 Jan 2012 15:34:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74658</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74658</wfw:commentRss><description>&lt;p&gt;Is this a database bound form? (i.e. is the schema locked?) &lt;/p&gt;&lt;p&gt;If not, then it sounds like you&amp;#39;re doing everything correctly, though there may be
 an issue with the filter (which depends on the form schema). Is there another column besides Supplier that you could use to filter? Maybe an ID field?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>populate a textbox from a dropdown box</title><link>https://www.infopathdev.com:443/forums/thread/74647.aspx</link><pubDate>Fri, 27 Jan 2012 09:17:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74647</guid><dc:creator>markarmstrong</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74647</wfw:commentRss><description>&lt;p&gt;Ok so i&amp;#39;m new to this but i will try to describe as much as possible.&lt;/p&gt;&lt;p&gt;&amp;nbsp;My aim is to have a dropdown box with supplier names in, this is populated via an SQL query,&amp;nbsp;also i want to display the supplier phone number from the same sql query in another textbox based on the supplier selection.&lt;/p&gt;&lt;p&gt;&amp;nbsp;In simple terms there is a dropdown box, you select the supplier and the phone number for that supplier then appears in a textbox.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The only part i am struggling on is the display of the phone number, i can get the first phone number to show but that is it&lt;/p&gt;&lt;p&gt;&amp;nbsp;For example&lt;/p&gt;&lt;p&gt;SQL data&lt;/p&gt;&lt;p&gt;Supplier&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Phone number&amp;nbsp;&lt;/p&gt;&lt;p&gt;supplier A&amp;nbsp;&amp;nbsp;&amp;nbsp; 1234&lt;/p&gt;&lt;p&gt;supplier B&amp;nbsp;&amp;nbsp;&amp;nbsp; 4567&lt;/p&gt;&lt;p&gt;Supplier C&amp;nbsp;&amp;nbsp; &amp;nbsp;7891&lt;/p&gt;&lt;p&gt;it doesnt matter which supplier i choose from the drop down it always returs 1234 as the phone number&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Live$Vendor&amp;quot;)/dfs:myFields/dfs:dataFields/d:Live_Vendor/@Phone_No_[xdXDocument:GetDOM(&amp;quot;Live$Vendor&amp;quot;)/dfs:myFields/dfs:dataFields/d:Live_Vendor/@Name = xdXDocument:get-DOM()/my:PurchaseOrder/my:FirstDetails/my:Supplier]&lt;/p&gt;</description></item></channel></rss>