cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Ten Digits Unique Id generation in MII

former_member206397
Contributor
0 Likes
399

Hi All,

Is there any way to generate 10 digits unique id in MII which will never repeat.

Thanks in Advance

Chandan

View Entire Topic
Former Member
0 Likes

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