<?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: Populating Text Box Depending on Selection from Drop Down</title><link>https://www.infopathdev.com:443/forums/thread/50575.aspx</link><pubDate>Wed, 13 Jan 2010 17:04:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50575</guid><dc:creator>BPChris1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50575</wfw:commentRss><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;I got it figured out using another expample that I found on the forum which was a link to &lt;a href="http://www.bizsupportonline.net/infopath2003/autofill-fields-infopath-dropdown-selection-secondary-data-source.htm"&gt;http://www.bizsupportonline.net/infopath2003/autofill-fields-infopath-dropdown-selection-secondary-data-source.htm&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This example did not work exactly though.&amp;nbsp; If I understand this at all, the problem that I have is that sharepoint delivers a flat data source.&amp;nbsp; (Although the list items have a unique identifier, the other elements are not chlild elements of that ID element.)&amp;nbsp; I was able to adapt this example though, by changing the field selected in step 14 to the field in the secondary data source to which my dropdown was bound.&amp;nbsp; In this case the&amp;nbsp;field value in the add action dialog became:&amp;quot;@Business_Phone[@Last_Name = Name]&amp;quot;, where &amp;quot;Name&amp;quot; is the drop down box, and&amp;nbsp;&amp;quot;Last_Name: is the field in the secondary data source.&amp;nbsp; I never reference &amp;quot;ID&amp;quot;.&amp;nbsp; I suspect that another issue with the previous example (and I could be wrong as I am a newbie) is that in reading the help file, it appears as though the &amp;quot;current&amp;quot; function only works with repeating elements, and in my case the drop down box is not a repeating element.&amp;nbsp; Any thoughts?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populating Text Box Depending on Selection from Drop Down</title><link>https://www.infopathdev.com:443/forums/thread/50574.aspx</link><pubDate>Wed, 13 Jan 2010 16:27:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50574</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50574.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50574</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;ID is the name of a node in the data source that uniquely identifies each row of data (you can see that each &amp;lt;Client&amp;gt; element in the tutorial has an &amp;lt;ID&amp;gt; child element).&amp;nbsp; Does your data source have anything like that?&amp;nbsp; If so, replace ID with that.&amp;nbsp; Judging from the XPath right now, it will probably be an attribute, not an element, so remember to place an &lt;b&gt;@&lt;/b&gt; before its name.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Populating Text Box Depending on Selection from Drop Down</title><link>https://www.infopathdev.com:443/forums/thread/50571.aspx</link><pubDate>Wed, 13 Jan 2010 15:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50571</guid><dc:creator>BPChris1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50571</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Still working on same form, was able to solve previous problems around cascading drop downs, after days of trial and error.&amp;nbsp; New problem, hoping I can get some&amp;nbsp;help with this one.&amp;nbsp; In&amp;nbsp;my form, my user is to select&amp;nbsp;a name from a dropdown listbox which is populated&amp;nbsp;from a sharepoint list.&amp;nbsp; Based on which name is selected, I would like a&amp;nbsp;&amp;quot;Phone&amp;nbsp;Number&amp;quot; text box to be automatically populated from the same row in the same sharepoint list.&amp;nbsp; Found&amp;nbsp;tutorial on this forum (&lt;a href="http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85"&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&lt;/a&gt;), and trying to adapt it.&amp;nbsp; The problem I have is this, when creating the rule, I am using the following expression (appended to match the tutorial&amp;nbsp;):&amp;nbsp; &lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Contacts&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Contacts/@Business_Phone [../ID = current () ]&lt;/p&gt;
&lt;p&gt;I am getting the following error message.&lt;/p&gt;
&lt;p&gt;&amp;quot;xdXDocument:GetDOM(&amp;quot;Contacts&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Contacts/ID&amp;quot; does not point to a valid location path of a field or group.&lt;/p&gt;
&lt;p&gt;The following portion of the expression is populated by infopath&amp;nbsp;when I select the field&amp;nbsp;in the add expression dialog box:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;quot;xdXDocument:GetDOM(&amp;quot;Contacts&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Contacts/@Business_Phone&amp;quot; &lt;/p&gt;
&lt;p&gt;One question is this:&lt;/p&gt;
&lt;p&gt;Is ID used here an xml function or should I be entering something else.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Please help, last step to getting form working and really need to get it done.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;CMH&lt;/p&gt;</description></item></channel></rss>