JJ

Hi evrybody,

I have this :

var db = ArisData.getSelectedDatabases();
var models = db.get ????



I would like collect all modeles this database for after scan models.

 

I have this for scan :

for(var i=0;i<models.length;i++){
       ...
    }

How resolved my problem ?

 

Thanks you in advance.

by Abhijit Das
Posted on Wed, 11/23/2011 - 06:19

Hi Julien,

Not sure why you want to scan all the models. There might be easy solution if I know what you really want to achieve.

However to help you out this is how you can achieve your objective/s

var db= ArisData.getSelectedDatabases()

It will give you array of databases.

Considering you want to check only the first one.

you can get the root group of the db like this.

var selRootGroup=db[0].RootGroup().

It will let you get the main group of the selected db.

var selModels=selRootGroup.ModelList(true);//so that you get the models in the sub group also.

there are different method also depending on what type of model you want or based on Model name etc.

Hope this helps.

Thanks

Abhijit Das

abhijit.das@cba.com.au

 

0
by Julien Job Author
Posted on Thu, 11/24/2011 - 09:16

Thanks a lot Abhijit Das

I will use your solution.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CP
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • 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