RD

Hi All ,

Iam trying to search specific models from Groups using below code and the Models iam looking for the models name have the suffix '_NGU' . I would like to fetch these models from group called : B. Processes .

Groups which i had A, B ,C and D in my database , Need to fetch these specific models from all groups .

var oCurrentDatabase=ArisData.getActiveDatabase();
var aModels=new Array();
var arrSelectedGroups = ArisData.getSelectedGroups();
var searchItem2=oCurrentDatabase.SearchModels("B. Processes","*NGU",Constants.SEARCH_OPTION_MATCH_PATTERN);

When iam executing this code , iam getting syntax error Cannot find SearchModels function .

iam struggling to find solution for this ,Can any one help me on this Please .......................

Thanks in Advance .

Rams.

by Brooke Baker
Posted on Tue, 08/20/2013 - 06:53

Hi,

You could try

var aModels=new Array();
var oCurrentDatabase = ArisData.getActiveDatabase();
var searchResults = oCurrentDatabase.Find(Constants.SEARCH_MODEL, null, Constants.AT_NAME, 1033, "*NGU", Constants.SEARCH_CMP_WILDCARDS);

for(var i=0; i<searchResults.length(); i++){
  if(searchResults[i].Group().Name(1033)=="B. Processes")
    aModels.push(searchResults[i]);
}

 

**Note - I havent tested this - just a suggestion.

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

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