<?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>Solution: Secondary Datasource Filtering Problem</title><link>https://www.infopathdev.com:443/forums/thread/38323.aspx</link><pubDate>Wed, 11 Feb 2009 16:10:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38323</guid><dc:creator>thebear98</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38323</wfw:commentRss><description>&lt;div&gt;&amp;nbsp;Turns out I had to call the number function for the form-side ProjNum value:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Max(@SubProjNum[@ProjNum = number(ProjNum)]) &lt;/div&gt;
&lt;div&gt;&amp;nbsp;Hope this saves someone a few hours of anxiety...&lt;/div&gt;
&lt;div&gt;&amp;nbsp; Thx,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp; Barry&lt;/div&gt;</description></item><item><title>Re: Secondary Datasource Filtering Problem</title><link>https://www.infopathdev.com:443/forums/thread/38319.aspx</link><pubDate>Wed, 11 Feb 2009 15:08:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38319</guid><dc:creator>thebear98</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38319</wfw:commentRss><description>&lt;p&gt;@ProjNum and @SubProjNum&amp;nbsp;are&amp;nbsp;both fields&amp;nbsp;returned by the secondary datasource.&lt;/p&gt;
&lt;p&gt;My setup is exactly as you describe it, but max(@SubProjNum[@ProjNum = ProjNum]) returns NaN.&lt;/p&gt;
&lt;p&gt;Could&amp;nbsp;there be a type problem with the fields (i.e. max of an HTML&amp;nbsp;string)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be appreciated...&lt;/p&gt;
&lt;p&gt;Barry&lt;/p&gt;</description></item><item><title>Re: Secondary Datasource Filtering Problem</title><link>https://www.infopathdev.com:443/forums/thread/38301.aspx</link><pubDate>Wed, 11 Feb 2009 06:02:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38301</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38301</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the @ProjNum child of @SubProjNum in secondary data source? Once verify that. Also after selecting @SubProjNum, click on Filter data. There select the @ProjNum in the first drop down, is equal to in the second drop down and ProjNum (main &amp;nbsp;data source) in the third drop down. Click ok until all the windows gets closed.&lt;/p&gt;</description></item><item><title>Secondary Datasource Filtering Problem</title><link>https://www.infopathdev.com:443/forums/thread/38293.aspx</link><pubDate>Tue, 10 Feb 2009 23:29:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38293</guid><dc:creator>thebear98</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38293.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38293</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&amp;nbsp;I have an InfoPath/Sharepoint &amp;#39;03 form library datasource that returns all values for &lt;br /&gt;ProjNum and SubProjNum from the forms submitted there.&lt;br /&gt;&amp;nbsp;I am now filtering this datasource to identify the max value of the &lt;br /&gt;SubProjNum&amp;#39;s for a specific ProjNum (in order to increment by 1 for the next &lt;br /&gt;sub proj form).&lt;br /&gt;&amp;nbsp;My assignment looks like this:&lt;br /&gt;&amp;nbsp;NewSubProjNum = max(@SubProjNum[@ProjNum = ProjNum]) + 1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;ProjNum is a value in a field on the new form and displays fine.&lt;br /&gt;&amp;nbsp;max(@ProjNum) returns the max(ProjNum) from the datasource fine.&lt;br /&gt;&amp;nbsp;But filtering the datasource for the max SubProjNum where @ProjNum = &lt;br /&gt;ProjNum returns NaN.&lt;br /&gt;count(@SubProjNum[@ProjNum = ProjNum])&amp;nbsp;= 0, even though I can see the&amp;nbsp;existing record&amp;nbsp;in the form library.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Can anyone see what I am doing wrong here?&lt;br /&gt;&amp;nbsp;Any suggestions?&lt;br /&gt;&amp;nbsp; Thx,&lt;br /&gt;&amp;nbsp; Barry &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>