<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Find and compare values from a repating table from secondary source?</title><link>https://www.infopathdev.com:443/forums/thread/60472.aspx</link><pubDate>Tue, 19 Oct 2010 11:29:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60472</guid><dc:creator>WannabeSharePointGuru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60472</wfw:commentRss><description>&lt;p&gt;Ok. I keep this one man show going :D &lt;/p&gt;
&lt;p&gt;I managed to iterate properly now, and find the titles properly by adding the attribute on the XPathNodeIterator&amp;nbsp; like this&lt;/p&gt;
&lt;p&gt;XPathNodeIterator rows = root.Select(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Form_Workflow_Tasks/&lt;strong&gt;@Title&lt;/strong&gt;&amp;quot;, NamespaceManager); &lt;/p&gt;
&lt;p&gt;Now I only need help to hide the irrelevant rows in the repeating table. So, please help me with that :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Find and compare values from a repating table from secondary source?</title><link>https://www.infopathdev.com:443/forums/thread/60471.aspx</link><pubDate>Tue, 19 Oct 2010 10:13:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60471</guid><dc:creator>WannabeSharePointGuru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60471</wfw:commentRss><description>&lt;p&gt;Ok. I found it.. (Points for myself :D)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Insted of this: &lt;/p&gt;
&lt;p&gt;XPathNavigator root = MainDataSource.CreateNavigator(); &lt;/p&gt;
&lt;p&gt;I have to do this &lt;/p&gt;
&lt;p&gt;XPathNavigator root = this.DataSources[&amp;quot;Name of connection&amp;quot;]; &lt;/p&gt;
&lt;p&gt;.. but still I wonder how to show only the relevant row,&amp;nbsp; and I am looping the wrong way because I only get the first title from the first row allways, so please let me know if you got some tips on how to fix :)&lt;/p&gt;</description></item><item><title>Find and compare values from a repating table from secondary source?</title><link>https://www.infopathdev.com:443/forums/thread/60470.aspx</link><pubDate>Tue, 19 Oct 2010 09:57:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60470</guid><dc:creator>WannabeSharePointGuru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60470</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I am trying to loop through a repeating table, which is a&amp;nbsp;secondary data source, and compare the Title column from the repeating table to another string which is not from the table. If they equal, I want all other rows to be hidden, except the equal one.&amp;nbsp;Under you can see in code what I have tried to do, but the problem is that it returns 0 on rows.count, so, I basically never get to itterate at all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;// Retrieve the rows of the repeating table
XPathNavigator root = MainDataSource.CreateNavigator();

XPathNodeIterator rows = root.Select(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Form_Workflow_Tasks&amp;quot;, NamespaceManager);

// Loop through the rows of the repeating table

int counter = 1;
while (rows.MoveNext())
{
// Retrieve the title
string title = rows.Current.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Form_Workflow_Tasks&amp;quot;, NamespaceManager).Value;

// Increment the counter
counter++;
}&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Is it at all possible to itterate through a repeating table from a secondary data source. Any help is appreciated :)&lt;/pre&gt;&lt;pre&gt;Regards&lt;/pre&gt;</description></item></channel></rss>