Author Topic: Object status colors displayed in diagrams  (Read 6958 times)

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Object status colors displayed in diagrams
« on: May 23, 2015, 02:59:54 am »
Besides the value of the Status field in the object and the color associated with the status value in settings, how is EA determining the status color on the object in the diagram?  

I have a Package with many sub packages, diagrams and requirement object. When created they all defaulted to the status of "Proposed" which displays as a yellow border/shadow.

I tried to be quick and updated the t_object.status field to "Mandatory" for all elements in the package and subpackages. Expected to see the border displayed a orange, but it is still yellow. When I look at the properties of the object, status = Mandatory.

Apparently there is somewhere else in the database that is used to set the element's displayed color.  I looked at t_diagramobjects.ObjectStyle, but I do not think that is it.  

Any ideas?


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #1 on: May 23, 2015, 04:46:46 am »
Honestly, when using V12 I don't see the shadow color at all anymore. I remember the color did fade away some versions ago to quite some extend. Looks like it lost all of its color now :-/

q.

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #2 on: May 23, 2015, 06:32:00 am »
I am on 12 (1214) and I still see the color. The elements, like requrements, that use the left as part of the box to show status color still works the same.  For other objects, like database tables, that rely on the box shadow, it is there, but difficult to see because the shadow is so thin.
 
I think it was v9 or maybe 10 where they made a change regarding the element's borders, but for some reason did not implement the entire change. It was explained that they were going to allow the user to define the placement of the shadow and the thickness, but that so far has not been done. So now we are stuck with a very thin line that does not even appear sometimes. On line, sometime changing the diagram's zoom will reveal the shadow.  On documentation, it is hit or miss.

I wish they would either pull the change back out or complete the change as intended.

So...back to my initial question... i was hoping you (or someone) might be able to tell me why just changing t_object.status (via MS Access ODBC) to "Mandatory", does not change the color displayed in the diagram. Assuming there is another place(s) in database that gets updated when one changes the status in the properties.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #3 on: May 23, 2015, 07:02:47 am »
I'll see what I can do, but currently I don't see any colored shadow at all.


Will try with the requirement instead.

q.
« Last Edit: May 23, 2015, 07:05:10 am by qwerty »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #4 on: May 23, 2015, 07:10:34 am »
I just ran this Perl snippet

Code: [Select]
my $e = $rep->GetTreeSelectedObject();
$e->{Status} = "Approved";
$e->Update();

and the change was shown immediately even without reloading the diagram.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #5 on: May 25, 2015, 09:13:47 am »
Check Project | Settings | Project Types | General Types | Status (first page) | Applies to ...

If it's not checked there it won't display even if you enable status colors globally.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #6 on: May 25, 2015, 06:55:30 pm »
I stopped using this feature due to its bad visibility long ago. So that last part of the option settings slipped my mind. Thanks.

My above snippet also works on those tiny shadows.

q.
« Last Edit: May 25, 2015, 06:57:25 pm by qwerty »

kepNCI

  • EA User
  • **
  • Posts: 127
  • Karma: +1/-0
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #7 on: May 27, 2015, 12:23:40 am »
Apparently the Update() function when called within a script, not only updates t_object.status, but also some display properties of linked objects on diagrams that are not updated when a diagram is opened.

When using MS Access ODBC to directly update t_object.status, I am not triggering the other functions performed in the update(). Thus I see the status change when viewing the object's properties, but the status color on any diagram does not change.  I was hoping that when EA opened a diagram, it would display the color of the object's current status, but instead it must be displaying the color as indicated somewhere else in the database that only gets updated via the update() function.    

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Object status colors displayed in diagrams
« Reply #8 on: May 27, 2015, 01:30:17 am »
That's what happens if you bypass the official path  ;)

q.