Unique number generator for Infopath forms 2010

site rencontre catholique traditionaliste see post he said mujeres solteras en lomas de zamora rencontre gratuit pour homme et femme rencontre pertuis 84120 http://oaklearners.ca/?pimakerey=site-rencontre-mode-emploi&bef=d7 hotel rencontre ixelles http://oaklearners.ca/?pimakerey=application-iphone-rencontre-gratuite&d77=b9 rencontres particuliers 06 I have been struggling to generate unique (not random) number for Infopath field  and searched across all the blogs. Everyone has their own way of doing it, someone suggests to append number to the item ID and concat date and time etc. If i take this approach, there are several issues, if concurrent users opens the form at the same time, it throws all weird errors.

Thanks to my old good friend and these guys who has pointed me to the right direction in achieving  what I need. They have done an excellent test and analysis on “Unique random” numbers using RNGCryptoServiceProvider.

I would simply provide links to their blog rather than re-writing everything here.

HERE IS THE LINK

Below is the code for your to simply copy and paste it in your infopath code editor. But remember to replace “/my:myFields/my:po_number” with your field name. Also you can append “ITPO” with anything you like. Continue reading