Author Topic: GetGroupstable for DListView  (Read 1925 times)

0 Members and 1 Guest are viewing this topic.

Offline doc_brown

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
GetGroupstable for DListView
« 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!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: GetGroupstable for DListView
« Reply #1 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
Experiencing God's grace one day at a time.

Offline doc_brown

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: GetGroupstable for DListView
« Reply #2 on: June 04, 2019, 06:13:33 PM »
Thanks for the quick response time!
worked amazingly.
 8)