<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: reset sequence number base on year and another field</title><link>https://www.infopathdev.com:443/forums/thread/122269.aspx</link><pubDate>Fri, 17 Jan 2020 16:22:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122269</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122269</wfw:commentRss><description>When you publish the form to the library, include the Year field as a promoted property. Then, add a secondary data connection to the same library that your form is published to - make sure to deselect the checkbox that automatically loads data when the form is opened - you don&amp;#39;t need data till you get ready to submit your form. As part of your submit rules, when you set the field that contains this sequential value (have a condition to only set it when blank so the value stays stable), first set the Year query field (your secondary data connection to the library will have query and data fields) to the year in the current form. Then run the query. All the returned data will be for the same year as the current form. If the count of returned rows = 0, you know that this is the first entry for the year. Otherwise, you should be able to count the returned rows to find the correct number of entries and then increment that.</description></item><item><title>Re: reset sequence number base on year and another field</title><link>https://www.infopathdev.com:443/forums/thread/122268.aspx</link><pubDate>Fri, 17 Jan 2020 06:29:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122268</guid><dc:creator>J_ho_jong</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122268</wfw:commentRss><description>Hi Hilary

Yes, I&amp;#39;m submitting the form to SharePoint. Sorry, I&amp;#39;m not sure how to query the list to retrieve the last record in the list base on the year field.

I do have a Year field in the form, and the autonumbering field with this formula in the field &amp;quot;max(ReqNumber[CustPreFix = ReqPrefix]) + 1&amp;quot;. it will look for the biggest number in the list and do a incremental of 1. My Year Field is set as &amp;quot;substring(today(),1,4)&amp;quot;

I can&amp;#39;t do If and Else statement in InfoPath, so I&amp;#39;m not sure how can I reset the autonumbering when the Year Field is a new Year.</description></item><item><title>Re: reset sequence number base on year and another field</title><link>https://www.infopathdev.com:443/forums/thread/122264.aspx</link><pubDate>Thu, 16 Jan 2020 17:20:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122264</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122264</wfw:commentRss><description>So - I dislike any such auto numbering sequence - I think it is fraught with the possibility for error. However, I understand that sometimes business requirements aren&amp;#39;t as flexible as one would like! I&amp;#39;d probably promote the year to the library you submit to (assuming the form submits to SharePoint?) and then you can set the year query field, query the list, and if no rows are returned, you know it is 1. If rows are returned, you can count them and add one.</description></item><item><title>reset sequence number base on year and another field</title><link>https://www.infopathdev.com:443/forums/thread/122260.aspx</link><pubDate>Wed, 15 Jan 2020 08:28:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122260</guid><dc:creator>J_ho_jong</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122260.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=122260</wfw:commentRss><description>Hi

I&amp;#39;m trying to create a form to capture Change and need to have AutoNumbering on the form base on Current Year and customer Prefix. The auto number need to be reset when it cross over the year.
The format will be yyyy[Customer Prefix][AutoNumber], so example the form capture 2019AB01, 2019BC01, 2019BC02..2019AB35... Then in year 2020, the form should capture as 2020AB01, 2020BC01 and not 2020AB36 or 2020BC03.

How do I get it to reset and restart the auto number again base on the Customer Prefix.

Anyone can advise on this.</description></item></channel></rss>