ARIS Community - We Love BPM

GroupList in Database

Uran's picture
by Dias Syzdykov in Reports & Macros posted on 2016-11-09

Hi,      

Please help me. How to get a list of all groups in Database? Run reports from the database)

 groups = ArisData.getActiveDatabase().GroupList(ArisData.getSelectedGroups()[0]); - It only works when you run the reports from the group, need for a database. Sorry for my bad english. Thank you in advance

 for(var i=0; i<p_aDatabase1.length; i++) {
          var groups =ArisData.getActiveDatabase().GroupList(?????)    // list group

           for(var j=0;j<groups.length;j++){
            p_output.TableRow()
      //      print(p_output, getGroupName(gr_list[j]))
           }
        }

3549 Views
0 Likes
5 Comments
There are no attachments
Tricarico Romain posted on 2016-11-09

Hi,

Try with this simple code :

var allGroups = ArisData.getSelectedDatabases()[0].RootGroup().Childs(true);

Best Regards,
Romain Tricarico from BPMap

www.bpmap.fr

Dias Syzdykov posted on 2016-11-09

Thank you!

Cool, but output without main groups). How can output main groups?

Best Regards,

Dias Syzdykov

 

Tricarico Romain posted on 2016-11-09

var allGroups = [ArisData.getSelectedDatabases()[0].RootGroup()];

allGroups = allGroups.concat(ArisData.getSelectedDatabases()[0].RootGroup().Childs(true));

 

Best Regards

Dias Syzdykov posted on 2016-11-09

Thank you very much!

Best Regards,

Dias Syzdykov

Didier Nowak posted on 2016-11-16

Hi,

I think the following code is faster and easier to read :

var allGroups = ArisData.getActiveDatabase().Find(Constants.SEARCH_GROUP);

Cheers,

Didier