Book a Demo

Author Topic: Show class properties in RTF Report  (Read 2327 times)

Kevin Escalera

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Show class properties in RTF Report
« on: March 21, 2012, 03:33:10 am »
Hi everyone, I'm tryng to generate an RTF report that lists my Class Model, I created a template based on the Basic template, but I'm having trouble with showing the properties defined for my classes, I can get attributes, relationships and methods, is there any way to get the properties in the template??

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Show class properties in RTF Report
« Reply #1 on: March 21, 2012, 06:45:05 am »
By properties are you referring to TaggedValues?

If so, then there is a checkbox labelled [highlight]Tagged Values[/highlight] under the Elements checkbox in the RTF Template editor. This will output ALL tagged values for the class (or element).

To output a specific tagged value Insert a field for the element and choose [highlight]valueOf[/highlight]

You will then be prompted for the name of the tagged value, enter it exactly as defined and you will see its value in the RTF output.

Hope this is clear

Cheers

Phil
Models are great!
Correct models are even greater!

Kevin Escalera

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Show class properties in RTF Report
« Reply #2 on: March 21, 2012, 07:27:25 am »
I was actually talking about the structure of the class: for example:

Class: Person

has a field : _name

read/write property: Name



    public class Person
    {        
        string _name;

        public string Name
        {
            get { return _name; }
            set { _name= value; }
        }
    }

When I use the basic template of the RTF reports I only see the field _name, but I cannot see the property Name