Book a Demo

Author Topic: Default value for tagged value not shown in report  (Read 4619 times)

Kristofer

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Default value for tagged value not shown in report
« on: March 28, 2018, 12:05:04 am »
Hi!

I have developed a MDG Technology and extended Class by adding a few tagged values. Some of these tagged values have a list of possible values, where one of the values is the default value.

When I deploy and use this technology the default value of the tag is visible in EA (Tagged Values window), but when I create a report, there is no value (using custom SQL in the report). If I explicity set the value to the default value, everything works as expected.

What should I do so it it not necessary to change the default value to...the default value to see it in the report?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Default value for tagged value not shown in report
« Reply #1 on: March 28, 2018, 02:25:25 pm »
Yes, that is annoying.

Tagged values with their default value actually don't have any value at all in the database.
In the GUI EA shows the default value, but this mechanism doesn't work for reports.

I guess you can either replace the empty values with the actual default value using a script of some kind, or use an SQL fragment and report the default value instead of NULL.

Geert

Kristofer

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Default value for tagged value not shown in report
« Reply #2 on: March 28, 2018, 05:35:06 pm »
Very annoying.

Thanks for the information! At least I didn't do something wrong.