<?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: Filter with Data Connection data, with c# or else</title><link>https://www.infopathdev.com:443/forums/thread/29749.aspx</link><pubDate>Wed, 25 Jun 2008 14:47:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29749</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=29749</wfw:commentRss><description>&lt;p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;To get the secondary dom node value using below the code,&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;IXMLDOMNode dateNode = XDocument.GetDOM(“Secondary DOM Name”).selectSingleNode(“XPath of the field”);&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Example: XPath of the field is: /SecondaryRootNode/Dates/Date[last()]&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Filter with Data Connection data, with c# or else</title><link>https://www.infopathdev.com:443/forums/thread/29277.aspx</link><pubDate>Tue, 10 Jun 2008 15:10:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29277</guid><dc:creator>Yurnero_</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=29277</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I got a probleme related to DataSources and arepeating Table.&lt;/p&gt;
&lt;p&gt;In one hand, I got a Secondary DataSources with Repeating data (imported from a SharePoint Library) which contains a list of non-worked days. string&lt;/p&gt;
&lt;p&gt;In the other hand, I have a repeating Table with&amp;nbsp;a DateField. I create&amp;nbsp;this dynamic repeating Table&amp;nbsp;which represents a month, &amp;nbsp;with xCollection. &lt;/p&gt;
&lt;p&gt;All I want is if both of the dates match,&amp;nbsp;to set an other field of the collection as&amp;nbsp;&amp;#39;nonworked&amp;#39;. (I extract the substring from the date without year)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First, I tried with rules on the insert event but this doesnt work at all.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using c#, and I think this could be done using last() after xCollectionInsert as I already set sunday over for example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I don&amp;#39;t know how to get the date from the second datasource properly with code and make the filter. I&amp;#39;m a newbie with xml and iterator and so more freaking stuff.&lt;/p&gt;
&lt;p&gt;Can anyone help me to find how to do that,&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>