Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: aguevara on March 09, 2017, 12:42:33 am

Title: Document Generation - Fragment - Custom Query yields blank
Post by: aguevara on March 09, 2017, 12:42:33 am
I have created a document template and am trying to include the results of a fragment into it.

I go through the steps to create the fragment without any issues. The fragment is composed of a very simple custom query (select name from t_package).

I then inserted the fragment into the template as shown in red below.

When I generate the document, the package names do not show up.


Thoughts?

package >
Package: {Pkg.Name}
{Pkg.Notes}

{Template - MyFirstTemplateFragment}

diagram >
Diagram Name: {Diagram.Name}

{Diagram.DiagramImg}
< diagram
element >

Element: {Element.Name}
constraint >
Constraint: {ElemConstraint.Name}
< constraint

custom property >

< custom property

embedded elements >

Constraint Params   Parameter   Type
{EmbeddedElement.Name}   {EmbeddedElement.Default}   {EmbeddedElement.Classifier}

< embedded elements
child elements >
< child elements

< element

child packages >
< child packages

< package
Title: Re: Document Generation - Fragment - Custom Query yields blank
Post by: Geert Bellekens on March 09, 2017, 03:48:22 pm
How does your template fragment look like?
Maybe you forgot to add the custom field.

Geert