Book a Demo

Author Topic: Default value of structured Tagged Value "Boolean"  (Read 4683 times)

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Default value of structured Tagged Value "Boolean"
« on: October 09, 2012, 02:56:28 am »
Hi folks,

recently I had the following issue:

I created a component and assigned a tagged value "XYZ" to it.
This tagged value "XYZ" was a structured type "Boolean" (predefined in EA); I set default value to "False".

Then I parsed through the model via an Add-In and read all tagged values of all components. Coming to the tagged value "XYZ", the .Value-field of this tagged value "XYZ" was NULL instead of the default value "False".

Looking in the tagged value list in EA itself, the tagged value had the value "False", but via the Add-In it was just empty.

As I double clicked the tagged value to toggle between true and false once and run the add-in method again, the correct value was there too.

Is this a bug?

Thanks!

Jonathan
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Default value of structured Tagged Value "Bool
« Reply #1 on: October 10, 2012, 11:37:40 pm »
I guess the browser just displays NULL as FALSE. Sparx will probably call it a feature.

q.

Jonathan Lubach

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Default value of structured Tagged Value
« Reply #2 on: October 11, 2012, 07:40:23 pm »
Quote
I guess the browser just displays NULL as FALSE.

That may well be so.

I redefined the default value of the structured tagged value to TRUE and then back to FALSE. Now it works as expected :)


Jonathan
« Last Edit: October 11, 2012, 07:42:12 pm by syboowa »
Enterprise Architect Corporate Edition v12.1
Windows 7 64bit