Hi,
I have an RTF template that is used to generate dynamic content within a Custom Document from selected packages.
For each diagram in the package branch, it shows the name, image, type, and other details.
I only want a specific type of diagrams to be generated and although I selected all other types in the Exclude filter > Exclude diagram type, I'm getting the diagrams that have an empty type (in the db, t_diagram.StyleEx inside value is MDGDgm=).
Since custom queries are only available in Fragments, I created one.
In my template, I have the package + diagram + child packages sections enabled. Within the diagram section, I inserted the template fragment.
In the fragment, I defined a Custom SQL query: SELECT d.Name, d.Notes, d.Diagram_Type, d.Stereotype FROM t_diagram d
WHERE d.StyleEx LIKE '%MDGDgm=myTest::MyType%' and Diagram_ID = #DIAGRAMID#
I then added a Custom section and custom fields to show the name, notes, etc.
The result is blank so this is not the right way to go. I also wonder if I can generate the diagram image from the SQL..
I also tried to use directly a template fragment for my dynamic sections but it didn't work.
Is there a way to force only picking the diagrams matching a specific type + stereotype to be generated as per the selected template ?