klincecum
(Kevin Lincecum)
1
If you want to check a group in App Studio, without a server call, you can do this:
Use a condition widget, and for the condition use:
#_Object.hasOwn(user.groups, "AGROUP")_#
I also made this very simple app with just a grid, and one Form_Load event with just this on a console write:
#_ trans.addRows( 'GroupList', Object.entries(user.groups).map(([key,value]) => ({ GroupID: key, GroupName: value })) ) _#
MyGroups.zip (2.2 KB)
Anyway, enjoy.
12 Likes
JasonMcD
(Jason McDermott)
3

Well that beats the serpentine EFx call I did here:
https://www.epiusers.help/t/some-app-studio-stuff-grid-selector-disabling-based-on-permissions-and-more/131170
I mean there’s an elegance and centralization to my method… but it might break more easily.
If you don’t want to scroll through that long post, it’s like this:
3 Likes