ARIS User Group Meeting Wien (German)
Register
ARIS Process Mining in action - Live Demo
Register
ARIS Super User Group
Register

View all
DS

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]))

           }

        }

by Tricarico Romain
Posted on Wed, 11/09/2016 - 16:26

Hi,

Try with this simple code :

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

Best Regards,

Romain Tricarico from BPMap

www.bpmap.fr

0
by Dias Syzdykov Author
Posted on Wed, 11/09/2016 - 19:07

Thank you!

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

Best Regards,

Dias Syzdykov

 

0
by Tricarico Romain
Posted on Wed, 11/09/2016 - 19:47

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

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

 

Best Regards

0
by Dias Syzdykov Author
Posted on Wed, 11/09/2016 - 21:03

Thank you very much!

Best Regards,

Dias Syzdykov

0
by Didier Nowak
Posted on Wed, 11/16/2016 - 13:09

Hi,

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

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

Cheers,

Didier

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • BH
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock