<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97859.aspx</link><pubDate>Mon, 09 Jun 2014 14:44:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97859</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97859</wfw:commentRss><description>&lt;p&gt;Excellent! So glad you have it doing what you need. :)&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97841.aspx</link><pubDate>Sat, 07 Jun 2014 01:08:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97841</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97841</wfw:commentRss><description>&lt;p&gt;You are truly wonderful.&amp;nbsp; Your guidance has allowed me to create the following sample code of my Subroutine that utilizes &amp;amp; manipulates the setup of a default XML connection titled &amp;quot;XML Connection&amp;quot;.&amp;nbsp; I think we can consider this one resolved. Cheers and have a great weekend!&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;::::::::::::::::::::::::::::::::::::::::&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; MainNav &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.CreateNavigator() &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;SETUP MAIN XPATH NAVIGATION OF GRC TEMPLATE FORM&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileName &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = MainNav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:Admin_Submit_Data_Pull&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;DETERMINE XML FILE TO PULL&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileName.Length() &amp;lt; 5 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;IF NO FILE SELECTED, DO NOT RUN SUB&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;MessageBox.Show(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;No File Selected&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Exit&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileConnection &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FileQueryConnection = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;XML Connection&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Set XML File Connection Query&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;XMLFileConnection.FileLocation =&amp;nbsp;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;http://sp.com/xml library folder/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; XMLFileName &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Update XML File Location&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataSources(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;XML Connection&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).QueryConnection.Execute() &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Pull in XML Data&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileNavigator &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataSources(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;XML Connection&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).CreateNavigator() &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Create XML File Navigator&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileRows &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNodeIterator = XMLFileNavigator.Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/ns1:myFields/ns1:Customer_Account_All/ns1:Customer_Account_Name_All&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;While&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XMLFileRows.MoveNext()&lt;/p&gt;MessageBox.Show(XMLFileRows.Current.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ns1:CUSTOMER_NAME&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;While&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97840.aspx</link><pubDate>Fri, 06 Jun 2014 21:40:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97840</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97840</wfw:commentRss><description>&lt;p&gt;No problem, I appreciate the help and what you laid out here does clarify it better for me :).&amp;nbsp; I&amp;#39;ll look over your provided resources and see if I can put something together.&amp;nbsp; More to come and thanks again!&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97839.aspx</link><pubDate>Fri, 06 Jun 2014 21:06:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97839</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97839</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not being clear enough.&lt;/p&gt;
&lt;p&gt;Here is what I would do if this were my form.&lt;/p&gt;
&lt;p&gt;I would:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Add a new receive data connection to my form using the data connection wizard. This would connect to an XML file. For the location, I would put in the URL of an XML that is the created by the form that you want to copy data from. I would set the connection to NOT add the XML as a resource file, but to query it from its current location. I would set the data connection to NOT query on load&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;At the appropriate point in the form, when I know what the form is the user would like to get data from, I would programmatically change the URL for the data connection and then query it.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Here are some MSDN links that may help you:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.filequeryconnection(v=office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.filequeryconnection(v=office.14).aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.filequeryconnection.filelocation(v=office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.filequeryconnection.filelocation(v=office.14).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I hope that makes more sense now? One benefit of this approach is that by leveraging an existing data connection, your form does not have to be full trust.&lt;/p&gt;
&lt;p&gt;At that point, you&amp;#39;ll have the XML from the original, in its original state, and can do what you need with it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97838.aspx</link><pubDate>Fri, 06 Jun 2014 20:03:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97838</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97838</wfw:commentRss><description>&lt;p&gt;Well I&amp;#39;m definitely not an expert on the topic, but since you recently mentioned adding a connection URL, I was able&amp;nbsp;to google a&amp;nbsp;MSDN site&amp;nbsp;reference&amp;nbsp;to SharePointListRWQuestyConnection, which I&amp;#39;ve now used to build out at least loading the Query with;&lt;/p&gt;
&lt;p&gt;-------&lt;/p&gt;
&lt;p&gt;Dim SPList As SharePointListRWQueryConnection = DirectCast(Me.DataConnections(&amp;quot;Secondary Database Name&amp;quot;), SharePointListRWQueryConnection)&lt;/p&gt;
&lt;p&gt;Dim SpListConnection as DataConnection = SPList&lt;/p&gt;
&lt;p&gt;-------&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is about as far as I&amp;#39;ve got so far, testing around more from there.&amp;nbsp; The method I was attempting to utilize before regarding pulling specific XML documents was through an XMLreader and passing that into XMLdocument.Load() which I don&amp;#39;t believe was what I was quite looking for (despite the naming convention misleading me a bit there).&amp;nbsp; You got me on the right path now (I think), but any further direction is of course appreciated as far as now pulling in the XML documents per the SharePointListRWQueryConnection.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97837.aspx</link><pubDate>Fri, 06 Jun 2014 19:43:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97837</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97837.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97837</wfw:commentRss><description>&lt;p&gt;Well, first simply add an XML data connection to an existing file in the library - is that where you started? Are you having permissions issues just creating a data connection to an existing XML in the library?&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97836.aspx</link><pubDate>Fri, 06 Jun 2014 17:41:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97836</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97836</wfw:commentRss><description>&lt;p&gt;I do have the ability to request our technology department to post an admin-approved form template (sandboxed environments are disabled), so yes, I can implement some coding features.&amp;nbsp; I tried toying around with how to pull each individual XML document , but I couldn&amp;#39;t get the loading procedures quite right with our sharepoint site (I kept running into issues with System expressions resulting in insufficient permissions despite my repeated attempts to copy over the default credentials of the website and/or specifying username/pass/domain/etc).&amp;nbsp; Do you have an example that I could build from?&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97834.aspx</link><pubDate>Fri, 06 Jun 2014 17:19:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97834</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97834</wfw:commentRss><description>&lt;p&gt;But is custom code ok? You can do this with code....you need to change the connection URL for the XML file then query it.&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97833.aspx</link><pubDate>Fri, 06 Jun 2014 17:12:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97833</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97833</wfw:commentRss><description>&lt;p&gt;No problem Hilary; the difficulties associated with using qRules is this process is being developed in&amp;nbsp;our admin-restricted&amp;nbsp;work environment (lots of privacy related information for our customers), so implementing third-party solutions incurs costs, additional oversight, etc (i.e. most software implementations need to have an enterprise viability and since our group is significantly smaller compared to the organization as a whole, the cost&amp;nbsp;unfortunately cannot be&amp;nbsp;justified).&amp;nbsp; In short, I&amp;#39;d love to use qRules if the option was available to us for free and I could easily access it without pestering our technology department ;).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;NIck&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97786.aspx</link><pubDate>Wed, 04 Jun 2014 23:45:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97786</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97786</wfw:commentRss><description>&lt;p&gt;Sorry I was slow to notice this - but couldn&amp;#39;t you just create a data connection (XML) to a file in the library? Then use qRules / code to change that data connection to point to the correct XML prior to querying it? Then you&amp;#39;d have the actual repeating table from the original XML file in your secondary data source...&lt;/p&gt;</description></item><item><title>Re: Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97785.aspx</link><pubDate>Wed, 04 Jun 2014 23:38:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97785</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97785</wfw:commentRss><description>&lt;p&gt;Well I found a solution for this (Q rules) or a very dirty method of concat&amp;#39;ing all fields with a delimmiter and then splitting them out on the second form&amp;nbsp;template and programmatically adding the amount of rows needed per each repeating section/table.&amp;nbsp; Sad this basic functionality is handled in such a complex manner!&lt;/p&gt;</description></item><item><title>Q: Get/Pull/Read ** ALL ** Repeating Table Values of a Secondary Data Source (SharePoint Library)</title><link>https://www.infopathdev.com:443/forums/thread/97753.aspx</link><pubDate>Tue, 03 Jun 2014 03:25:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97753</guid><dc:creator>NickCalifornia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=97753</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read numerous posts on here about this topic, but I&amp;#39;m stumped.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have two separate InfoPath web forms (segregated for privacy concerns); let&amp;#39;s call them &amp;quot;Form Template 1&amp;quot; and &amp;quot;Form Template 2&amp;quot;.&lt;/p&gt;
&lt;p&gt;Form Template 1 houses a repeating table with field&amp;nbsp;&amp;quot;Name&amp;quot;.&amp;nbsp; Each new form, created off of Form Template 1, is saved with a unique ID and uploaded to a SharePoint Library.&lt;/p&gt;
&lt;p&gt;My issues arise when I attempt to reference Form Template 1&amp;#39;s SharePoint Library as a secondary data source in Form Template 2.&amp;nbsp; In particular, my goal is to create a duplicate and editable repeating table based on a specific Form Template 1 Item.&amp;nbsp; For example; A user can create a new Form based on Form Template 2.&amp;nbsp; From there, the user can select to pre-populate the data with a specific Form from Form Template 1.&amp;nbsp; However, when referencing the Form Template 1 as a secondary data source, I can only reference/pull-in the first row of data per each unique form entry in the database.&amp;nbsp; I am well aware of how to reference multiple first-row entries of separate forms, but my issue is getting the data that is repeated amongst the specific &amp;quot;Name&amp;quot;.&amp;nbsp;&amp;nbsp;In other words, getting the secondary fields values of a field located in a repeating table.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a visual that may explain better: &lt;a href="http://i.imgur.com/UHsnKn2.png?1"&gt;http://i.imgur.com/UHsnKn2.png?1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s also&amp;nbsp;an example of some code I&amp;#39;ve utilized (VSTA - VB) to pull each form&amp;#39;s &amp;quot;Name&amp;quot; field on a &amp;#39;form load event&amp;#39;:&lt;/p&gt;
&lt;p&gt;-----------------------&lt;/p&gt;
&lt;p&gt;&amp;#39;SecNav = Secondary Data Source Path/Name&lt;/p&gt;
&lt;p&gt;&amp;#39;SecNavRows = Path/Node Iteration&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SecNav &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataSources(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;GRC FI FL RECEIVE&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).CreateNavigator()&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SecNavRows &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; XPathNodeIterator = SecNav.Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;While&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SecNavRows.MoveNext()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;MessageBox.Show(SecNavRows.Current.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;d:CUSTOMER_x0020_NAME&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;While&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;-----------------------&lt;/p&gt;
&lt;p&gt;As you can see, the code simply cycles through each form&amp;#39;s &amp;#39;Customer Name&amp;#39; field and outputs the first row&amp;#39;s value, but what&amp;#39;d I&amp;#39;d love to get is the ability to say &amp;quot;d:CUSTOMER_x0020_NAME[VARIABLE ROW POSITION]&amp;quot;, but any time I use this one a secondary data source, it fails.&amp;nbsp; I&amp;#39;ve also tried current() filter solutions and I just can&amp;#39;t seem to get the convention right.&amp;nbsp; Any help would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nick&lt;/p&gt;</description></item></channel></rss>