Book a Demo

Author Topic: How to use Requirement of Package-Diagram-Element in document templates  (Read 4613 times)

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Hi,

When elements are part of the package being documented, it is possible to use its requirements by enabling:
Package -> Element -> Requirement

To use a diagram as subset it is possible to use linked elements, and thus enable:
Package -> Diagram -> Element

Is it possible to somehow to get to the requirements of the elements in the diagram?
Thank you.

Kind regards,
Robert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Probably not that easy.
There are basically two options
- you write an (SQL) fragment that returns all fields needed from the requirements linked to elements shown in the package
- you use virtual documents and use a (SQL) search to determine the requirements to report on.

Geert

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Hi Geert,

Thanks for your quick reply!
I will check out the fragment custom query and see what is possible.

- Robert

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
While I can retrieve all data, the text in the requirement is added without conversion.
In other words, the markup in HTML is put in the document without actually marking up the text.

Do you know whether there is a way around this?
Or maybe better to use the virtual document option?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
look for [Description-Formatted] in the forum and you should find the answer.

Geert

Robert Lelieveld

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
I ended up looking at the first template and when selecting both:
Package -> Diagram -> Element, as
Package -> Element -> Requirement
the document contained elements and its requirements (formatted) without SQL statements.

As I noticed I would like to only have a subset of the diagrams elements in the output, I am now looking into virtual documents.

Good stuff!