<?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: after selecting a name from a dropdown box I need additional fields to auto populate from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/73435.aspx</link><pubDate>Tue, 03 Jan 2012 21:12:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73435</guid><dc:creator>jacyou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73435</wfw:commentRss><description>&lt;p&gt;Thanks that worked great&lt;/p&gt;</description></item><item><title>Re: after selecting a name from a dropdown box I need additional fields to auto populate from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/73427.aspx</link><pubDate>Tue, 03 Jan 2012 19:45:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73427</guid><dc:creator>Lockdown</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73427</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m assuming your xml file is set up as follows (or close to this):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EmployeeName&amp;gt;Tim&amp;lt;/EmployeeName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ManagersName&amp;gt;Tom&amp;lt;/ManagersName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc...&lt;br /&gt;&amp;lt;/employee&amp;gt;&lt;br /&gt;&amp;lt;employee&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EmployeeName&amp;gt;Jim&amp;lt;/EmployeeName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ManagersName&amp;gt;James&amp;lt;/ManagersName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc...&lt;br /&gt;&amp;lt;/employee&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So what you want to do is add an expression for the default value that you want to set. If you want to set the value of Manager&amp;#39;s Name in your form, you will add the following expression to the default value:&lt;/p&gt;
&lt;p&gt;ManagersName[EmployeeName = EmployeeName]&lt;/p&gt;
&lt;p&gt;ManagersName refers to the element in the secondary XML. You then add a filter to that (that is what is on the square brackets of the formula). One EmployeeName refers to the element of your main data source, and the other refers to the element in your secondary data source. You can call them whatever you want, I just made them the same name so it would make more sense. Use the formula builder to select the different elements and to add the filter. &lt;/p&gt;
&lt;p&gt;Let me know if you have anymore questions!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>after selecting a name from a dropdown box I need additional fields to auto populate from an XML file</title><link>https://www.infopathdev.com:443/forums/thread/73426.aspx</link><pubDate>Tue, 03 Jan 2012 19:25:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73426</guid><dc:creator>jacyou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73426</wfw:commentRss><description>&lt;p&gt;I hope someone can help me here. I have created a time off request form. I have&amp;nbsp;a drop down box which an employee can select their name (XML file- employee name, employee&amp;#39;s manager, days available for time off, and a id #) when they choose their name I would like the field for the managers name and time available to automatically populate once the employee selects their name.&lt;/p&gt;
&lt;p&gt;I set all types of rules and conditions, nothing seems to work.&lt;/p&gt;
&lt;p&gt;HELP me please!!&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Jack&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>