<?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: Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/87434.aspx</link><pubDate>Tue, 26 Feb 2013 15:46:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87434</guid><dc:creator>mrah75</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=87434</wfw:commentRss><description>Well, I knew that I could set a field&amp;#39;s value based on a single query of a data connection, I just didn&amp;#39;t realize that I could set three different query fields in the same connection.&lt;br /&gt;&lt;br /&gt;
Then I just queried the data, and assigned the annual counter field the default value of MAX([Annual Count])+1&lt;br /&gt;&lt;br /&gt;
It was quite a bit simpler than I was trying to make it, after I thought about it for a little while. Now I just need to figure out how to get rid of the NaN error I&amp;#39;m getting when the counter needs to reset to 1...&lt;br /&gt;&lt;br /&gt;MR</description></item><item><title>Re: Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/87432.aspx</link><pubDate>Tue, 26 Feb 2013 15:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87432</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=87432</wfw:commentRss><description>Fantastic! Want to post your solution?</description></item><item><title>Re: Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/87429.aspx</link><pubDate>Tue, 26 Feb 2013 15:29:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87429</guid><dc:creator>mrah75</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=87429</wfw:commentRss><description>In case anyone is following this, I did figure out how to perform this query...</description></item><item><title>Re: Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/87093.aspx</link><pubDate>Thu, 14 Feb 2013 19:52:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87093</guid><dc:creator>mrah75</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=87093</wfw:commentRss><description>Thanks for the reply, Brandon, but I don&amp;#39;t think that will do what I hope to accomplish.&lt;br /&gt;
&lt;br /&gt;
You see, the counter needs to restart at 1 for the first event of every year, and is also unique to the fields District and Division.&lt;br /&gt;
&lt;br /&gt;
e.g. There can be all of the following event numbers in the list:&lt;br /&gt;
&lt;br /&gt;
William Penn-North-2012-1&lt;br /&gt;
William Penn-North-2013-1&lt;br /&gt;
William Penn-South-2013-1&lt;br /&gt;
Tuscarora-North-2012-1&lt;br /&gt;
William Penn-North-2012-2&lt;br /&gt;
William Penn-North-2012-3&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;annual counter&amp;quot; needs to be a product of the other three fields...&lt;br /&gt;
&lt;br /&gt;
If I misunderstand your suggestion, please let me know, but it seems to me that the ID field you&amp;#39;re speaking of is the ID field of the entire list, which would number into the thousands...&lt;br /&gt;
&lt;br /&gt;
MR</description></item><item><title>Re: Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/87090.aspx</link><pubDate>Thu, 14 Feb 2013 19:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87090</guid><dc:creator>Bnighgrow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87090.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=87090</wfw:commentRss><description>&lt;p&gt;You can try to create a new data connection in Info Path 2010. Have that data connection retrieve the &amp;#39;ID&amp;#39; field from the list/library. Upon load or submit(I would do submit to make sure that two forms don&amp;#39;t happen to be&amp;nbsp;open at the same time.)&lt;/p&gt;&lt;p&gt;Then&amp;nbsp;have the Event Number set to concat(&lt;u&gt;District&lt;/u&gt;, &lt;u&gt;Division,&lt;/u&gt; year(&lt;u&gt;startdate&lt;/u&gt;), count(&lt;u&gt;ID&lt;/u&gt;) + 1)&lt;/p&gt;&lt;p&gt;Or you can do a max(ID) + 1 which just takes the largest ID and adds 1. &lt;/p&gt;&lt;p&gt;Check this website&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/browserforms/autonumber-infopath-form-submitted-sharepoint-library.htm"&gt;http://www.bizsupportonline.net/browserforms/autonumber-infopath-form-submitted-sharepoint-library.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I hope this is what you were asking for&lt;/p&gt;&lt;p&gt;Thanks, &lt;/p&gt;&lt;p&gt;Brandon&lt;/p&gt;</description></item><item><title>Counting list items based on query</title><link>https://www.infopathdev.com:443/forums/thread/86973.aspx</link><pubDate>Mon, 11 Feb 2013 20:25:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86973</guid><dc:creator>mrah75</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=86973</wfw:commentRss><description>OK, I&amp;#39;m pretty new to InfoPath and SharePoint. I&amp;#39;m also not sure if this is the correct forum to post this, but here goes...

So, I have this SharePoint list and an InfoPath form for adding new items. I&amp;#39;ve got several DDL&amp;#39;s and other fields populated with data - no problem.

I need to populate an &amp;quot;Event Number&amp;quot; field based on other selections. The Event Number field is a concatenation of three fields, plus a calculated count field, and I can&amp;#39;t figure out how to get the count!

The list I&amp;#39;m using is named &amp;quot;Events&amp;quot;

District and Division are DDLs, Start Date is a Date Picker.

Event Number = [District] &amp;amp; [Division] &amp;amp; YEAR([Start Date]) &amp;amp; [&amp;quot;Annual Counter&amp;quot;]

The &amp;quot;Annual Counter&amp;quot; is simply a count + 1 of all the items in the list WHERE District, Division, and Year are equal to the new item.

I could do this so easily in Access or with SQL, but I am lost with InfoPath&amp;#39;s formulas!

Any help is much appreciated!

Thanks,

MR</description></item></channel></rss>