<?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>How do i filter a data query?</title><link>https://www.infopathdev.com:443/forums/thread/81511.aspx</link><pubDate>Wed, 08 Aug 2012 18:35:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81511</guid><dc:creator>zergcow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81511.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=81511</wfw:commentRss><description>&lt;p&gt;I want to figure out how to filter a data connection. I know how to do it in the xsf ... but how do I do it in C#?&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// TODO: build a query string based on filter selections&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xiAssessments = xnAssessments.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/d:Solution[contains(@Value, ../my:field4)]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, ns);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// old one ... &amp;quot;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&amp;quot;, ns);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So what am I doing wrong? It still returns all of the items in my sharepoint list. I simply want to find only items where the Solution column (multi-choice checkboxes) contains what I selected from a drop down menu (which I am populating with the options from the Solution Column).&lt;/p&gt;</description></item></channel></rss>