Book a Demo

Author Topic: v15(1503) - Legends by class name, or package name  (Read 3295 times)

MichaelJ

  • EA User
  • **
  • Posts: 77
  • Karma: +14/-7
    • View Profile
v15(1503) - Legends by class name, or package name
« on: June 18, 2019, 01:56:26 am »
Hi, is it possible to create a legend key that colours elements based on properties like "Name" or "Package"?

The "Value" field allows using expression-style entries like '=xxxx' or '>yyyy', one therefore (rather naively?) expects this works similar to standard expression parsing, for example "Name=XXXX" (or if string values must be quoted, "Name='XXXX'").

Have tried to selected different "Applies To" values, such as "Applies To: Property" (thinking that expression "Name" is a property ...), without much success.

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 344
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: v15(1503) - Legends by class name, or package name
« Reply #1 on: June 21, 2019, 02:29:43 am »
Although the value field allows some operations, the element properties available for colouring the elements are:
  • Alias
  • Author
  • Complexity
  • Difficulty
  • Keyword
  • Phase
  • Priority
  • Scope
  • Status
  • Stereotype
  • Type
  • Version

As the package, or the name are not available, you could "trick" it by creating a script that stores the name of the element or the name of the package into a tag value, then colour it by tag value. (not the best option but... it works)