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
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
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