PP

Hello,

I use the function Find and compare constant "SEARCH_CMP_EQUAL" in order to reuse existing objects of the database in a script drawing models automatically. I notice that if the name of the object is longuer than 100 caracters the function find don't work anymore, it retrives no objects. So i'm not able to reuse objects in this case.

Do you have any tip to alow me to find objects with a name longuer than 100 caracters ?

Thanks for your help.

Pierre

by Jens Heylmann
Posted on Fri, 11/23/2012 - 19:24

Hi Pierre,

I can reproduce this.

With the following script...testet with a model name that has 111 characters.

I think it is an issue. Please get in contact with Software AG Support Team.

var searchFor = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
var db = ArisData.getActiveDatabase();
var item = db.Find ( Constants.SEARCH_MODEL, null, Constants.AT_NAME, Context.getSelectedLanguage(), searchFor, Constants.SEARCH_CMP_EQUAL);
for( var i = 0; i < item.length; i++ ) {
    if( item[i].IsValid() ) {
        
       Dialogs.MsgBox( item[i].Name(-1));
       
    }
}

Regards,

Jens

0
by Jens Heylmann
Posted on Thu, 12/06/2012 - 14:01

Hi Pierre,

I got the following feedback:

 

The development department confirms the effect.

The constraint is set in the Business Server for technical reasons - thus it the cause is not located in the script method.  

We will add the limit in the script documentation in that way that developers know it and can handle it in an adequate way.  The development department confirms the effect.

The constraint is set in the Business Server for technical reasons - thus it the cause is not located in the script method.  

We will add the limit in the script documentation in that way that developers know it and can handle it in an adequate way. 

Regards,

Jens

 

 

0
by Pierre Pilven Author
Posted on Sun, 12/09/2012 - 12:11

Thank you for your help Jens,

I wrote a function to compare names when they are longuer than 100 caracters, it's time spending but at list my script works well.

Pierre

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • ПЦ
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • 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