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++){
      //      print(p_output, getGroupName(gr_list[j]))

Tags: ARIS Report ARIS Report Scripting Reports