strict warning: Only variables should be assigned by reference in /home/itechpros/ on line 1434.

Get a Value List of all Servoy Users

Creates a value list where the display value is the User Name, and the store value is the UserUID.

var myUsers = security.getUsers() 

var displays = new Array() 
var uids = new Array() 
for(var i=1 ; i<=myUsers.getMaxRowIndex() ; i++)
    displays[i-1] = myUsers.getValue(i, 2)
    uids[i-1] = security.getUserUID(displays[i-1]) 

application.setValueListItems("vl_users", displays, uids)