Book a Demo

Author Topic: Icons no longer visible in search via API  (Read 3214 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Icons no longer visible in search via API
« on: January 29, 2019, 12:06:26 am »
I wrote a script that uses Repository.RunModelSearch "","","", dataString
In v12.1 it nicely shows the appropriate icon depending on the value in the CLASSTYPE.

The exact same script in 14.1 generates a result with only the generic icon.
See below image for a comparison https://imgur.com/a/hSBX3Sn



Reported

Geert


satrman

  • EA User
  • **
  • Posts: 50
  • Karma: +2/-0
    • View Profile
Re: Icons no longer visible in search via API
« Reply #1 on: March 04, 2019, 10:11:51 am »
Hi Geert,
there is much more weird icon behaviour in EA 14+.
It happens uppon any project reload related action
- project reload
- profile import
- or using method Repository.RefreshModelView in a script
You need to restart EA to get to normal state.
The icon change appears in SQL search using "t_object.Object_Type AS CLASSTYPE" clause, as well as in Profile Elements under Resources (in the second case it is fatal, as if someone uses Drag&Drop onto a diagram, any stereotype turns out to be extending Class metatype...)
Cheers
Miloš Lang