<?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: Filter &amp; Retrieve Data from 2 Sharepoint Lists</title><link>https://www.infopathdev.com:443/forums/thread/23957.aspx</link><pubDate>Wed, 24 Oct 2007 17:26:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23957</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23957</wfw:commentRss><description>&lt;p&gt;Sorry it took so long to reply. The method I use (which I found somewhere here but can&amp;#39;t remember) is not that elegant but works for my purposes and may work for yours. Create an xml document like this&lt;/p&gt;
&lt;p&gt;&amp;lt;Support&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;RowPosition/&amp;gt;&lt;br /&gt;&amp;lt;/Support&amp;gt;&lt;/p&gt;
&lt;p&gt;Import it as a secondary file. Create a rule for your dropdown that sets RowPosition - count(../preceding-sibling::my:Your repeating node) + 1&lt;/p&gt;
&lt;p&gt;Then when setting up your conditional functionality, use the rowPosition in your xpath - xdXDocument:GetDOM(&amp;quot;ProfileCapture&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:ProfileData/@WNAME[../@PROFILENUM = xdXDocument:get-DOM()/my:myFields/my:Waste_Line_Items&lt;strong&gt;[number(xdXDocument:GetDOM(&amp;quot;Support&amp;quot;)/Support/RowPosition)]&lt;/strong&gt;/my:PROFILENUM]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Hope this helps. Cheers!&lt;/p&gt;</description></item><item><title>Re: Filter &amp; Retrieve Data from 2 Sharepoint Lists</title><link>https://www.infopathdev.com:443/forums/thread/23756.aspx</link><pubDate>Wed, 17 Oct 2007 06:47:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23756</guid><dc:creator>hodgy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23756</wfw:commentRss><description>&lt;p&gt;Indeed, the fields will be filled based on a drop down selection. I am currently trying to implement based on some conditional formatting but it isnt giving me what i want. &lt;/p&gt;
&lt;p&gt;I have repeating section A - it contains FirstName, LastName, Organisation&lt;br /&gt;I have repeating section B - it contains Organisation, Address1, Address2, Postal_Code ...etc&lt;/p&gt;
&lt;p&gt;I attempted to &amp;quot;nest&amp;quot; repeating section B inside repeating section A and said &amp;quot;hide this control&amp;quot; when Organisation from section B NOT EQUAL TO Organisation from section A. HOWEVER, this comparison always takes the Organisation value of the very first record in section A. I have tried to implement using current() but it&amp;#39;s not quite giving me what i need. &lt;/p&gt;
&lt;p&gt;Any suggestions would be greatfully received as this is now an urgent issue.&lt;/p&gt;</description></item><item><title>Re: Filter &amp; Retrieve Data from 2 Sharepoint Lists</title><link>https://www.infopathdev.com:443/forums/thread/23748.aspx</link><pubDate>Tue, 16 Oct 2007 19:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23748</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23748</wfw:commentRss><description>&lt;p&gt;One question, how do you plan on implementing your form? You can easily do this with managed code however&amp;nbsp;if you want to automatically fill the fields based on a dropdown selection&amp;nbsp;then it would be easier to use rules. &lt;/p&gt;</description></item><item><title>Filter &amp; Retrieve Data from 2 Sharepoint Lists</title><link>https://www.infopathdev.com:443/forums/thread/23708.aspx</link><pubDate>Mon, 15 Oct 2007 09:19:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23708</guid><dc:creator>hodgy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23708</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;I have the following scenario:&lt;/p&gt;
&lt;p&gt;I am trying to populate a simple repeating section in infopath with values from&amp;nbsp;2 sharepoint lists. &lt;/p&gt;
&lt;p&gt;- Sharepoint List A contains info FirstName, LastName, Company. &lt;br /&gt;- Sharepoint List B Company, AddressLine1, AddressLine2, PostalCode&lt;/p&gt;
&lt;p&gt;What I need to achieve is that when the form is loaded, the FirstName, LastName, Company, AddressLine1, AddressLine2, PostalCode are ALL populated. I can get data from Sharepoint List A very easily, but i now need it to retrieve the Company address from List B based on the value of Company in List A. I&amp;#39;m sure this has been discussed, achieved before, any links to similar solutions, explanations, ideas would be greatfully received.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item></channel></rss>