<?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: ID incrementation "BU2018-001"</title><link>https://www.infopathdev.com:443/forums/thread/117872.aspx</link><pubDate>Fri, 15 Dec 2017 15:58:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117872</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117872</wfw:commentRss><description>&lt;p&gt;I think you&amp;#39;ll have to add a condition to your rules to check and see if you have a budget for the year. That may be a condition that checks the returned rows for the current budget year (using a contains condition) - if there are none, you could set the field to -001. So - two rules, one that runs if you find the year and one that runs if you do not. :)&lt;/p&gt;</description></item><item><title>ID incrementation "BU2018-001"</title><link>https://www.infopathdev.com:443/forums/thread/117864.aspx</link><pubDate>Thu, 14 Dec 2017 10:29:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117864</guid><dc:creator>Hélianza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117864</wfw:commentRss><description>Hello,

I have a trouble with an auto-increment.
We have BUdget, writen like this BU[YEAR]-[001]. 

When a user create a new budget, I need to take the max budget in the concerned year, and increment it.
So I have a formula who look all the budget with this year, take the max ID, substring to have the three last digits, add one and it&amp;#39;s ok !

My problem is : when i don&amp;#39;t have any budget in the year, I have no return. And I can&amp;#39;t make my +1.

So, my question : how to increment a name like BU2018-002 to BU2018-003, with only one rule in infopath, and create BU2019-001 if there is no 2019.

Sorry for my language, and thanks !

Hlz</description></item></channel></rss>