Page 1 of 1

security.getGroups()

PostPosted: Fri Feb 20, 2004 8:50 pm
by tweetie
Is there a way to get all the groupnames??

PostPosted: Fri Feb 20, 2004 9:08 pm
by IT2Be
yes :lol:

PostPosted: Fri Feb 20, 2004 9:37 pm
by tweetie
You want to enlighten this poor guy??
I only see:

security.changeGroupName(Object groupid, String groupname)
security.createGroup(String groupname)
security.getGroups() --->>>only ID's
security.getUserGroups(number [userid])

PostPosted: Fri Feb 20, 2004 9:52 pm
by IT2Be
Sure, was just kiddin'

Here it is:

var Groups = security.getGroups();
var showArray = new Array(Groups.getMaxRowIndex());

for ( var i = 0 ; i < Groups.getMaxRowIndex() ; i++ )
showArray[i] = Groups.getValue(i + 1, 2);

PostPosted: Mon Feb 23, 2004 2:47 pm
by tweetie
Thankx...i got it working....
There is one part I don't understand...
Groups.getValue(i + 1, 2);


GetValue from where? ....If I understand correctly (problably not) Groups only has ID's of the group...

PostPosted: Mon Feb 23, 2004 2:52 pm
by IT2Be
There is a second value and that is the name...