Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: whizzo on March 02, 2012, 03:29:29 am

Title: Inserting Tag Values into Document Generation
Post by: whizzo on March 02, 2012, 03:29:29 am
(RESOLVED)

I am creating a document template in which I want to display a specific tag value. When I right click I get insert filed and under that is "names", "note" and "value". If I use "value" I get all the tags in the generated document. Below is the data in the template.

{ElemExtRequirement.Name}
{ElemExtRequirement.Stereotype}
tagged value >
{ElementTagVal.Value}
< tagged value

What I want to do is only incorporate a single tag.

Any ideas?

Title: Re: Inserting Tag Values into Document Generation
Post by: Graham_Moir on March 02, 2012, 05:34:38 am
Here's the answer previously provided by philchudley

"Using the Element checkbox, right-click and insert a data field valueOf

You will then be prompted for a tagged value name, (you will have to remember this and type it correctly), upon output the current value of the tagged value will be output.

Repeat this process for as may tagged values as you wish

Simple example:

element>
{Element.valueOf(myTag)}
<element

Where myTag is the name of your selected tagged value"
Title: Re: Inserting Tag Values into Document Generation
Post by: whizzo on March 02, 2012, 08:29:28 pm
Thank you Graham (and Phil).
I did search the forum but obviously had wrong criteria.