<?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: Resetting the form number when using @MAX(ID) field</title><link>https://www.infopathdev.com:443/forums/thread/40996.aspx</link><pubDate>Mon, 27 Apr 2009 07:19:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40996</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40996.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40996</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Add the below condition to set max(@ID) to 0 when year is 2010.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Case&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;when &lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;year&lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;04/12/2010&amp;#39;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;2010&amp;#39;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;then&lt;/font&gt;&lt;font size="2"&gt; 0&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;else&lt;/font&gt;&lt;font size="2"&gt; @ID &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;end&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Resetting the form number when using @MAX(ID) field</title><link>https://www.infopathdev.com:443/forums/thread/40971.aspx</link><pubDate>Fri, 24 Apr 2009 14:59:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40971</guid><dc:creator>smate</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40971</wfw:commentRss><description>&lt;p&gt;I am generating a form Number (Request ID) using the ID of the forms from sharepoint form Library. I would like to generate a number based on the year and a sequence number. (Form ID) &lt;/p&gt;
&lt;p&gt;Function would look Concact(year(request date), max(@ID)) This works fine but I would like to reset the max(@ID) to &amp;#39;0&amp;#39; for year 2010. How would I do this? &lt;/p&gt;</description></item></channel></rss>