<?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: Automatic count</title><link>https://www.infopathdev.com:443/forums/thread/121423.aspx</link><pubDate>Mon, 26 Aug 2019 23:18:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121423</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121423</wfw:commentRss><description>So - I generally don&amp;#39;t recommend this, because unless you get really fancy you always a chance that two users will get the same number. However, if you must, here&amp;#39;s how I&amp;#39;d do it. I&amp;#39;d keep the XYXYX data in its own field and promote that, so I can query on just that piece. Add a data connection to the library that includes the XYXYX field. Don&amp;#39;t run the query on load. On your submit rules, if the form name is blank (just add a formname field to your data source, use it in your submit connection as the name of the form), set the XYXYX query field to the XYXYX value in the current form. Execute the query. Then use the count function to find out how many rows are returned. If you search this forum for zero padding, you should find posts explaining that part. :)</description></item><item><title>Automatic count</title><link>https://www.infopathdev.com:443/forums/thread/121419.aspx</link><pubDate>Mon, 26 Aug 2019 14:26:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121419</guid><dc:creator>Hordec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121419</wfw:commentRss><description>Hello,

I am quite a newbie using InfoPath and I am having a hard time trying to turn my wishes into reality.

I am creating a form and I would like to include an ID for each entry that would depend on the following:
- First a fix part that depends from several entries of the form. Let&amp;#39;s say the fix part is XXXXX. I was able to generate this fixed part with concat formula mainly so this is ok
- Then a variable part, depending on the XXXXX combination. The variable part is numerical and should appears with three digits. Thys, if the list already contains 3 entries containing the XXXXX combination, the variable part should be 003. Another example would be the first time the combination XYXYX appears in the entries of the list, the variable part would be 001.

Then I would use concat to merge both parts and have a unique ID XXXXX001.

Could anyone please help me in knowing how to generate the variable part? 

Thank you so much!</description></item></channel></rss>