java - Is there any uniqe id provided by WorkLight? -


i want construct request web service worklight server unique id each request.

so, question. there provided class(java) or function(js) worklight or have implement myself.

many :)

you can generate unique id using javascript, see answer. relevant bit:

function generateuidnotmorethan1million() {    return ("0000" + (math.random()*math.pow(36,4) << 0).tostring(36)).substr(-4) } 

there's more info. inside original answer, should able modify fit needs if 4 chars small. sample usage:

generateuidnotmorethan1million() "z38b" generateuidnotmorethan1million() "4szu" 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -