Hi everyone,
I've taken my first steps in the Document generation with EA(v13), but I'm still struggling with styling document fragments.
Problem :- I've got a document in which I reference a document template fragment.
- In this template fragment I'm using the custom tag, getting diagram names where the element is used in using SQL :
select Name from t_diagram where Diagram_ID in
(select Diagram_ID from t_diagramobjects where object_id=#OBJECTID#)
and t_diagram.Diagram_Type like 'Analysis'
order by Name
- In the template fragment template I have :
custom >
{Name}
< custom
Required:I want to show the fragment result in the document, with a title above saying 'Diagrams'.
But I
don't want to show the title if no results were returned.
I can't put the Title in the template fragment, as only text/layout is taken into account within the custom tag, but this would repeat the title for each result..
I can put the title in the main document template, before the TemplateFragment tag, but this shows the title, even if no results were found in the fragment, which gives a kind of sloppy document.
I walked through different documentations, but could not solve this.
Anyone who can shed some light on this ?
Thanks
Arnout