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
Jens Heylmann on
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