<?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: InfoPath XML Filter</title><link>https://www.infopathdev.com:443/forums/thread/60719.aspx</link><pubDate>Tue, 26 Oct 2010 16:38:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60719</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60719</wfw:commentRss><description>&lt;p&gt;I very much doubt xdDate:Today() is going to work here.&amp;nbsp; How about:&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;q.FileLocation = q.FileLocation + &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;amp;FilterField1=Status&amp;amp;FilterValue1=Pending&amp;amp;FilterField2=Employee&amp;amp;FilterValue2=&amp;quot;&lt;/span&gt; + GetUserNameValue() + &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;amp;FilterField3=WeekEndingDetail&amp;amp;FilterValue3&amp;lt;&amp;quot; &lt;font color="#000000"&gt;DateTime.Today.ToString(&amp;quot;yyyy-MM-dd&amp;quot;)&lt;/font&gt;;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;And double-check that&amp;nbsp;using &amp;lt; in a query string like this is actually allowed.&amp;nbsp;</description></item><item><title>Re: InfoPath XML Filter</title><link>https://www.infopathdev.com:443/forums/thread/60715.aspx</link><pubDate>Tue, 26 Oct 2010 16:24:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60715</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60715.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60715</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m assuming you are using SharePoint for the workflow - what is the column data type for WeekEndingDetail in SharePoint?&amp;nbsp; Have you tried changing the data type in SharePoint to see if that fixes it?&lt;/p&gt;</description></item><item><title>InfoPath XML Filter</title><link>https://www.infopathdev.com:443/forums/thread/60711.aspx</link><pubDate>Tue, 26 Oct 2010 15:44:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60711</guid><dc:creator>dondipalma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60711</wfw:commentRss><description>&lt;p&gt;I am writing a filter for an XML data connection to filter out status of Pending, employee of current employee and date (WeekEndingDetail) of &amp;lt; today.&amp;nbsp; I got the status and the employee working, but I can not get the filter to work for the date (WeekEndingDetail).&amp;nbsp; I am not sure if xDdate is the correct format or item to use.&amp;nbsp; Thanks.&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; &lt;span style="COLOR:blue;"&gt;void&lt;/span&gt; Search_Clicked(&lt;span style="COLOR:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="COLOR:teal;"&gt;ClickedEventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;SetUserNameOptions(); &lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;"&gt;private&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; &lt;span style="COLOR:blue;"&gt;void&lt;/span&gt; SetUserNameOptions()&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:teal;"&gt;FileQueryConnection&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; q = (&lt;span style="COLOR:teal;"&gt;FileQueryConnection&lt;/span&gt;)&lt;span style="COLOR:blue;"&gt;this&lt;/span&gt;.DataConnections[&lt;span style="COLOR:maroon;"&gt;&amp;quot;AllocDetail xml filter&amp;quot;&lt;/span&gt;];&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;q.FileLocation = q.FileLocation + &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;amp;FilterField1=Status&amp;amp;FilterValue1=Pending&amp;amp;FilterField2=Employee&amp;amp;FilterValue2=&amp;quot;&lt;/span&gt; + GetUserNameValue() + &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;amp;FilterField3=WeekEndingDetail&amp;amp;FilterValue3&amp;lt;xdDate:Today()&amp;quot;&lt;/span&gt;;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;q.Execute();&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;"&gt;private&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; &lt;span style="COLOR:blue;"&gt;string&lt;/span&gt; GetUserNameValue()&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:teal;"&gt;XPathNavigator&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; nav = &lt;span style="COLOR:blue;"&gt;this&lt;/span&gt;.CreateNavigator();&lt;/span&gt;&lt;/font&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;"&gt;string&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; filterValue = (&lt;span style="COLOR:blue;"&gt;string&lt;/span&gt;)nav.SelectSingleNode(&lt;span style="COLOR:maroon;"&gt;&amp;quot;/my:myFields/my:QueryAllocDetail/my:AllocDetail/my:Employee&amp;quot;&lt;/span&gt;, &lt;span style="COLOR:blue;"&gt;this&lt;/span&gt;.NamespaceManager).ValueAs(&lt;span style="COLOR:blue;"&gt;typeof&lt;/span&gt;(&lt;span style="COLOR:blue;"&gt;string&lt;/span&gt;));&lt;/span&gt;&lt;/font&gt;&lt;font face="Times New Roman"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;"&gt;return&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;"&gt; filterValue;&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Times New Roman"&gt;}&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>