Unique Value/Random generated id | Community
Skip to main content
narayanank84409
October 16, 2015
Solved

Unique Value/Random generated id

  • October 16, 2015
  • 3 replies
  • 1364 views

My Requirement:

I need to show unique/Random generated value either in Selection field or textfield.

to avoid overlapping.

Please some suggestion to achieve .

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey
Hi, If you want to keep things to client side. , I would suggest add a listerner in your selection / textfield , in that listerner you can write js code to generate random values     

3 replies

edubey
edubeyAccepted solution
October 16, 2015
Hi, If you want to keep things to client side. , I would suggest add a listerner in your selection / textfield , in that listerner you can write js code to generate random values     
smacdonald2008
October 16, 2015

Write an custom AEM Java Service that produces a GUID:

 String myGuid = java.util.UUID.randomUUID().toString();

narayanank84409
October 16, 2015

Thanks i wrote listener to fix that.