Hi guys,
I got a problem which I don't find a workaround for so far. Basically I want to filter the groups via part of their name. For which I need the names of the groups.
So far I got:
ListOfGroups = ArisData.getActiveDatabase().Find(Constants.SEARCH_GROUP);
for (var e = 0; e < ListOfGroups.length; e++){
var CurrentGroup = ListOfGroups[e];
GroupName[e] = CurrentGroup.getGroupName();
}
Which doesn't work. I always get: "Cannot find function getGroupName in object ....
What am I doing wrong?
Thanks for your help.
Nikita Martyanov on
Hi,
try to use Name() function, e.g.
var Group;
var loc = Context.getSelectedLanguage();
var groupName = Group.Name(loc);
or another universal method is:
var groupName = Group.Attribute(Constants.AT_NAME, loc).getValue();
---
BR, Nikita