Author Topic: Inserting Tag Values into Document Generation  (Read 3419 times)

whizzo

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Inserting Tag Values into Document Generation
« 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?

« Last Edit: March 02, 2012, 08:31:56 pm by whizzo »

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Inserting Tag Values into Document Generation
« Reply #1 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"

whizzo

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Inserting Tag Values into Document Generation
« Reply #2 on: March 02, 2012, 08:29:28 pm »
Thank you Graham (and Phil).
I did search the forum but obviously had wrong criteria.