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

View all
TZ

Hello all, 

I am trying to do a research of some ObjDef in an ARIS Report Script. I would like to operate a search on a Database but I would like to filter my search to a specific group. Is this something that is possible? Here is what I tried to do but it is not working somehow. 

I even get an error that createSearchItem is not present in the Database object

function getRegulationsFromGroup(group) {
   const searchItem =  group.Database().createSearchItem(
                               Constants.OT_TYPE,          // AttrTypeNum
                               g_nLoc,                     // LocaleId
                               group,                      // sAttributeValue
                               Constants.SEARCH_CMP_EQUAL, // comparisonMethod
                               true,                       // bCaseSensitive
                               false                       // bAllowWildcards
                           );
   var regulationsArray =  group.Database().Find(
                               Constants.SEARCH_OBJDEF,    // SearchKind
                               Constants.OT_CLST,          // itemTypes
                               searchItem                  // searchItem
                           );
   return (regulationsArray);
}
by Theo Zanchi Author
Posted on Wed, 10/30/2024 - 14:05

Oh my bad I saw in the documentation that a Method called ObjDefs() could be used for that purpose

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