<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71571.aspx</link><pubDate>Tue, 01 Nov 2011 13:10:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71571</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71571</wfw:commentRss><description>&lt;p&gt;Hilary was right, I used the following: 10 - count(xdXDocument:GetDOM(&amp;quot;SharePoint Training&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training/@Class_Date[starts-with(., xdXDocument:get-DOM()/my:SharePointTraining/my:dClassDate)])&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again Hilary and all who contributed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Mike V&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71554.aspx</link><pubDate>Mon, 31 Oct 2011 18:11:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71554</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71554</wfw:commentRss><description>&lt;p&gt;Hilary&amp;#39;s probably right.&amp;nbsp; Dates from SharePoint usually seem to be in that strange format with a space in the middle.&amp;nbsp; Could you give this a try?&lt;/p&gt;
&lt;p&gt;count(/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training[substring(@Class_Date, 1, 10)&amp;nbsp;= substring(xdXDocument:get-DOM()/my:SharePointTraining/my:dClassDate, 1, 10)])&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71548.aspx</link><pubDate>Mon, 31 Oct 2011 16:49:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71548</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71548</wfw:commentRss><description>&lt;p&gt;What does the text in the secondary data source look like?&lt;/p&gt;
&lt;p&gt;dClassDate, as a date, will store its data like this:&lt;/p&gt;
&lt;p&gt;2011-10-31T10:18:32&lt;/p&gt;
&lt;p&gt;What does the SharePoint data look like? You may need to use some string functions in the formula to make the two fields have the same format - if ShP is returning:&lt;/p&gt;
&lt;p&gt;2011-10-31 12:00 am&lt;/p&gt;
&lt;p&gt;for example, you&amp;#39;ll never get a match.&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71546.aspx</link><pubDate>Mon, 31 Oct 2011 16:39:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71546</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71546</wfw:commentRss><description>&lt;p&gt;Hilary, I dragged the datasource, SharePoint Training(Secondary), Class_Date to the InfoPath form and I was able to view the data in InfoPath and also in the Web Form.&amp;nbsp; Strange that the InfoPath form sorts the list descending and the Web form is sorted ascending.&amp;nbsp; Since I know that I can see the data from the SharePoint list, how do I count the dates that equal the date on the main datasource (dClassDate).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I just noticed that dClassDate is a data type date and the secondary datasource is a string.&amp;nbsp; Would that matter?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Mike&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71545.aspx</link><pubDate>Mon, 31 Oct 2011 16:12:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71545</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71545</wfw:commentRss><description>&lt;p&gt;Drag your data source in InfoPath that is connected to your SharePoint list onto your form temporarily so you can see if you are getting any data.&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71543.aspx</link><pubDate>Mon, 31 Oct 2011 16:08:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71543</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71543</wfw:commentRss><description>&lt;p&gt;Jimmy, looking at your function, it seems it should work but I get a value of 0.&amp;nbsp; I wonder if it would be a permission issue between the SharePoint Server and the database server.&amp;nbsp; Everything I have tried seems to fail.&amp;nbsp; I am thinking about creating a Web service to get the count for me.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I had another situation that a specific value of a SharePoint&amp;nbsp;list did not return anything.&amp;nbsp; I created a Web service to access this SharePoint list and it returned the correct value.&lt;/p&gt;
&lt;p&gt;The SharePoint database is on another server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Mike&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;How&amp;#39;s this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;count(/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training[@Class_Date = xdXDocument:get-DOM()/my:SharePointTraining/my:dClassDate])&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71536.aspx</link><pubDate>Mon, 31 Oct 2011 14:02:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71536</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71536</wfw:commentRss><description>&lt;p&gt;How&amp;#39;s this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;count(/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training[@Class_Date = xdXDocument:get-DOM()/my:SharePointTraining/my:dClassDate])&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71534.aspx</link><pubDate>Mon, 31 Oct 2011 13:48:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71534</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71534</wfw:commentRss><description>It did not work.&amp;nbsp; Your example shows counting from one field in another group.&amp;nbsp; Both fields are in the Main datasourcem&lt;font size="2"&gt; 
&lt;p&gt;count(my:group1/my:group2[my:field2 = ../../my:field1]).&lt;/p&gt;&lt;/font&gt;I am trying to count from a secondary data source where the date equals the date in the main data sources.&amp;nbsp; For example when I tried this: &lt;font size="2"&gt;
&lt;p&gt;count(/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training/@Class_Date = my:SharePointTraining/my:dClassDate)&lt;/p&gt;
&lt;p&gt;I get an error, &amp;quot; Argument 1 must return a node-set.&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there something I need to add?&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71501.aspx</link><pubDate>Fri, 28 Oct 2011 18:46:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71501</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71501</wfw:commentRss><description>&lt;p&gt;You should be able to do this with a count formula and a filter. I&amp;#39;m attaching a simple sample - save the file from the link, then right click and select design to open in design mode - from there you can preview.&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71436.aspx</link><pubDate>Wed, 26 Oct 2011 18:15:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71436</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71436</wfw:commentRss><description>&lt;p&gt;I need to know the number of times a date is listed in a sharepoint list.&amp;nbsp; I want to get this number or count&amp;nbsp;and put in into my InfoPath form.&amp;nbsp; Does this make better sense?&amp;nbsp; T&lt;/p&gt;
&lt;p&gt;&amp;nbsp;he form is called a training request form and I am trying to get the available seats&amp;nbsp; for a specific date.&amp;nbsp;&amp;nbsp;I want to know the number of dates in a specific date&amp;nbsp;and return that number to infopath?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71431.aspx</link><pubDate>Wed, 26 Oct 2011 17:30:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71431</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71431</wfw:commentRss><description>&lt;p&gt;Hi - what exactly are you trying to do? I get that you need to count the number of forms for a specific date - but what is the logic for that date? That is - you say &amp;quot;the integer 2 will change every day&amp;quot; - can you help me better understand what you need to do?&lt;/p&gt;</description></item><item><title>Re: Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71430.aspx</link><pubDate>Wed, 26 Oct 2011 17:15:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71430</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71430</wfw:commentRss><description>&lt;p&gt;I was able to get closer.&amp;nbsp; I have three dates 10/28/2011 in the list.&amp;nbsp; I was abe to run this rule in a test text box, count(xdXDocument:GetDOM(&amp;quot;TestSharePoint Training&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:SharePoint_Training[substring-before(@Class_Date, &amp;quot; &amp;quot;) = xdDate:AddDays(xdDate:Today(), 2)]).&amp;nbsp; However, the interger 2 will change every day.&amp;nbsp; How can I get that to change?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mike V&lt;/p&gt;</description></item><item><title>Count dates in a specific sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/71423.aspx</link><pubDate>Wed, 26 Oct 2011 16:18:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71423</guid><dc:creator>Michael Vasquez</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71423</wfw:commentRss><description>&lt;p&gt;I have a Web form that submits multiple variables to a sharepoint list.&amp;nbsp; One of the variables is a simple date field called dDate, i.e., date submitted.&amp;nbsp; For now, lets ignore the creation date that is part of a sharepoint list.&lt;/p&gt;
&lt;p&gt;So, in this list, there will be multiple dates in the dDate variable in the sharepoint list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Now using Infopath, with rules, how do I get a count of dates for a certain date submitted.&amp;nbsp; For example, if several people submitted the form on 10/1/2011 and several on 10/2/2011, I need to know the count of how many forms were submitted on 10/1/2011.&lt;/p&gt;
&lt;p&gt;I have tried different ways and get no count.&amp;nbsp; I can count all the dates, which will give me a count of all the forms submitted for 10/1/2011 and 10/2/2011.&lt;/p&gt;
&lt;p&gt;I have also submitted&amp;nbsp;this question a long time ago and got no&amp;nbsp;answer.&amp;nbsp; May be this time I&amp;#39;ll be lucky.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;TIA.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item></channel></rss>