Ulysses

General => Developers Corner => Topic started by: doc_brown on June 04, 2019, 05:12:37 PM

Title: GetGroupstable for DListView
Post by: doc_brown on June 04, 2019, 05:12:37 PM
I'm trying to display all the ranks of ulx
in a Dlistview with a simple for k,v loop

I have tried to look at the util.GetUserGroups() table,
but this table only has values pertaining to people already with
a usergroup.
I was wondering if ULX has something like this built in I would be able to use,
or if I would have to access the groups from the data folder.

thanks in advance!
Title: Re: GetGroupstable for DListView
Post by: Megiddo on June 04, 2019, 05:50:50 PM
It's not in the documentation because we don't want anyone messing with it directly, but for your use case of simply getting a list of groups, you can access
Code: [Select]
ULib.ucl.groups
Title: Re: GetGroupstable for DListView
Post by: doc_brown on June 04, 2019, 06:13:33 PM
Thanks for the quick response time!
worked amazingly.
 8)