on 2012 Feb 07 8:43 PM
Hi All,
Is there any way to generate 10 digits unique id in MII which will never repeat.
Thanks in Advance
Chandan
Request clarification before answering.
Hi Chandan,
the GUID function will give you a 32 digit unique ID in the following format, which is an alphanumeric one with special characters:
f29b8b81-5609-11e1-bb55-e058a77ec828
If you are planning to pass this unique ID from the webpage, you can make use of the Math.random() available in javascript. It gives you a Unique ID in the following format:
0.6167780349126499
you can remove the decimal by replacing it with blank using the string.replace(regexp/substr,newstring) and make use of the random number.
Regards,
Gita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know about 10, but guid will give you 32.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.