Author Topic: add list of relationships from diagram to template documentation  (Read 3489 times)

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Hi
EA 16.1
I want add to template documentation list of relationships but only from diagram elements
Such like this:
package >
Name:{Pkg.Name}
diagram >
{Diagram.DiagramImg}

connector >
{Connector.Name}
conveyed: {Connector.Conveyed}
type Connection: {Connector.Type}
Source: _{Connector.SourceColumns} -> Target:{Connector.TargetColumns} ___________________________________________
< connector

< diagram
< package

But "Source" and "Target" in document I have still empty.
How the template should look like - to show (only for relations visible in the diagram): name, source type and name, target type

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: add list of relationships from diagram to template documentation
« Reply #1 on: October 22, 2024, 06:26:20 pm »
You probably need to resort to an SQL fragment to get this type of info into the document

Geert

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: add list of relationships from diagram to template documentation
« Reply #2 on: October 23, 2024, 03:39:29 am »
oh, that's what I'm afraid of.
I tried to add it to the template in the "Document Options" -> "custom SQL" field but I did something wrong.
On the other hand, no one noticed that "selected information" for Diagram-> Connections doesn't work when building a template using "Checkboxes" in Section? Am I the only one using it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: add list of relationships from diagram to template documentation
« Reply #4 on: November 19, 2024, 01:45:23 am »
Thx Geert Bellekens - it's work. 
The only problem I have left is that I have to change the diagram name in the SQL content - it's inconvenient if the documentation is to be generated by different people

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: add list of relationships from diagram to template documentation
« Reply #5 on: November 19, 2024, 02:02:43 am »
Thx Geert Bellekens - it's work. 
The only problem I have left is that I have to change the diagram name in the SQL content - it's inconvenient if the documentation is to be generated by different people
Why would you have the diagram name in the SQL content? You can use the diagram ID macro that is passed by the template engine.

Geert

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: add list of relationships from diagram to template documentation
« Reply #6 on: November 21, 2024, 09:49:35 pm »
the solution I managed to do requires that the name of the diagram or its ID be provided in the SQL itself. Relying on the package indication mechanism in <<model document>> did not give anything

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: add list of relationships from diagram to template documentation
« Reply #7 on: November 21, 2024, 09:59:04 pm »
the solution I managed to do requires that the name of the diagram or its ID be provided in the SQL itself. Relying on the package indication mechanism in <<model document>> did not give anything
Then you must have done something wrong. That is not how SQL fragments are supposed to work.

If you post the relevant code and descriptions we might be able to spot the error.

Geert