<?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: Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81926.aspx</link><pubDate>Fri, 24 Aug 2012 01:00:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81926</guid><dc:creator>dsanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81926</wfw:commentRss><description>&lt;p&gt;Cheers Jimmy... it was the former. The rule was on the dropdown and as both you and Hilary pointed out, the current function was required. I added it into the formula and it worked fine!&lt;/p&gt;
&lt;p&gt;Many thanks to you both&lt;/p&gt;</description></item><item><title>Re: Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81890.aspx</link><pubDate>Thu, 23 Aug 2012 10:11:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81890</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81890</wfw:commentRss><description>&lt;p&gt;Where are you using that formula.&amp;nbsp; Is it in a rule on the dropdown, or is it the formula in a calculated value box? &lt;/p&gt;&lt;p&gt;&amp;nbsp;If it&amp;#39;s the former, try this:&lt;/p&gt;&lt;p&gt;&lt;em&gt;xdXDocument:GetDOM(&amp;quot;ExpenseClaimsCostCentre&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:ExpenseClaimsCostCentre/@AccountName[../@ID = current()]&lt;/em&gt;&lt;/p&gt;&lt;p&gt;If it&amp;#39;s the latter, try this:&lt;/p&gt;&lt;p&gt;&lt;em&gt;xdXDocument:GetDOM(&amp;quot;ExpenseClaimsCostCentre&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:ExpenseClaimsCostCentre/@AccountName[../@ID = current()/my:costCentreCode]&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81887.aspx</link><pubDate>Thu, 23 Aug 2012 07:06:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81887</guid><dc:creator>dsanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81887</wfw:commentRss><description>&lt;p&gt;Hate to bump this but any feedback?&lt;/p&gt;</description></item><item><title>Re: Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81793.aspx</link><pubDate>Mon, 20 Aug 2012 01:38:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81793</guid><dc:creator>dsanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81793</wfw:commentRss><description>&lt;p&gt;The full xpath formula is below: &lt;em&gt;(please note that this is from my form so the field names are obviously different from the example)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;xdXDocument:GetDOM(&amp;quot;ExpenseClaimsCostCentre&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:ExpenseClaimsCostCentre/@AccountName[../@ID = xdXDocument:get-DOM()/my:expenseForm/my:paymentDetails/my:paymentDetailsRS/my:costCentreCode]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You are correct though as there is no reference to the current() function&lt;/p&gt;</description></item><item><title>Re: Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81753.aspx</link><pubDate>Fri, 17 Aug 2012 15:01:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81753</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81753</wfw:commentRss><description>&lt;p&gt;What is the rule you have on your field that is setting the other field? Or default value, if that is what you are using instead? When you look at the value in the formula editor, check the edit XPath button and paste the full XPath into a reply - I&amp;#39;m going to bet your formula is not using current()....&lt;/p&gt;</description></item><item><title>Auto fill fields from drop down issue</title><link>https://www.infopathdev.com:443/forums/thread/81729.aspx</link><pubDate>Fri, 17 Aug 2012 03:07:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81729</guid><dc:creator>dsanchez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81729</wfw:commentRss><description>&lt;p&gt;Hi guys, been a while since I&amp;#39;ve been in here but came across something which requires the assistance of the gurus! :)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Sorry if this is posted in the wrong area, but mods please feel free to move it if required&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I was successfully able to utilise the auto fill fields function from a drop down which was attached to a sharepoint library list. So whenever an item is selected from the drop-down list box,&amp;nbsp;I was able to auto-fill fields on my form with data corresponding to the selected item in the drop-down list box. Example is shown below. Click on the fruit, and it should show the colour etc&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.bizsupportonline.net/infopath2003/articles/images/200703041902.png" alt="" /&gt;&amp;nbsp;&lt;img src="http://www.bizsupportonline.net/infopath2003/articles/images/200703041842.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;I was able to incorporate this on my form fine. Each drop down would correctly display the information it related to for a single record. I then realised the user may be required to enter more than 1 record, so I created a repeating function.&lt;/p&gt;
&lt;p&gt;This is where the functionality fell over, for 1 record without using the repeating function (i.e. Add new item) the records would show the correct data. &lt;strong&gt;As soon as another record was added&lt;/strong&gt; the auto fill function would not work as it should. By clicking on a few of the options within the drop down, the lookup seems to stop working, it displays wrong information or it just doesnt recognise the command. In most cases the new record replicates the original entry and does not change the data even when a new drop down list entry is selected.&lt;/p&gt;
&lt;p&gt;I used &lt;a href="http://www.bizsupportonline.net/infopath2003/autofill-fields-infopath-dropdown-selection-secondary-data-source.htm"&gt;this link&lt;/a&gt; to set&amp;nbsp;up the auto fill procedure and it works 100% for just 1 record lol .. Anything else added after this and it goes&amp;nbsp;haywire. &lt;/p&gt;
&lt;p&gt;So&amp;nbsp;has anyone come across this happening before, or a solution as to how to get around this? In most cases&amp;nbsp;users will definitely be using more than 1 record so I would really love to get this working properly.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Sanchez&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>