Topic
  • 6 replies
  • Latest Post - ‏2012-11-06T16:51:41Z by Champagne
ktnguyen71
ktnguyen71
22 Posts

Pinned topic Pull Tags name and value from ReporterPlus

‏2009-11-25T14:15:40Z |
Hi,
I can't pull tags name and values out of a model using ReporterPlus. Do you know how to do it? Or even better, would you please send me a sample template to do that?

Thanks,
Kevin Nguyen
Updated on 2012-11-06T16:51:41Z at 2012-11-06T16:51:41Z by Champagne
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2009-11-26T08:33:57Z  
    See attached template thats extractgs tag information from classes.
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2009-11-26T08:35:24Z  
    Opps..missed the attachment
  • ktnguyen71
    ktnguyen71
    22 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2010-01-19T18:58:58Z  
    Thanks,
    Kevin
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2012-11-01T15:02:36Z  
    Opps..missed the attachment
    This template does not produce any output. The model I run it on has tags on classes...
  • SystemAdmin
    SystemAdmin
    1305 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2012-11-01T15:07:59Z  
    This template does not produce any output. The model I run it on has tags on classes...
    Sorry; it does work on an individual package.
  • Champagne
    Champagne
    42 Posts

    Re: Pull Tags name and value from ReporterPlus

    ‏2012-11-06T16:51:41Z  
    To extract the tags in ReporterPLUS:
    I assume you want the tags on each model element:
    All you do is add an iteration to the model element in the report you would like to see the tags for (add new item select the iteration tab check the "iterates" check box), in the iteration tab set the "Iteration Type" to "Association" then select "tags" from the drop down list.
    Then all you need include in the node beneath the iteration you created are the <<$name>> and <<$value>> attributes, it will probably have already added a <<$name>> in the Header.
    This will report out all the names and values for the model element.

    If you were to want to extract all the tags in the model (can't see what use this would be at the moment) but if you did just add a new iteration and set the iteration type to Class then select Tag from the drop down list.

    I have attached a template with one node that finds all the classes in a model and lists their tags and a second node that just finds all the tags and list them.
    P

    Attachments