Book a Demo

Author Topic: RTF Template and child elements  (Read 5672 times)

TonyN

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
RTF Template and child elements
« on: August 11, 2011, 11:19:40 am »
HI All,

I have a diagram with an element in it that has a number of child elements.  In my RTF Template I have selected Package->Diagram->Element
& Package->Element->Child Elements so that when the template finds and element in the diagram it also reports on the child elements. But it doesn't.  I need to ge the child elements out in a report. The template contents has been pasted below can anybody help please?

Regards,
Tony

[highlight]package >[/highlight]
{Pkg.Name}

[highlight]diagram >
element >
< element
< diagram
element >[/highlight]
{Element.Name}
[highlight]child elements >[/highlight]
child Elementt:- {Element.Name}
[highlight]< child elements
< element
< package[/highlight]

Ralph

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: RTF Template and child elements
« Reply #1 on: August 11, 2011, 06:06:49 pm »
Hi Tony,

I am not sure, but could it be that the first element section in the diagram section is wrong. From my point of view all elements will be captured in this first diagram section and the second element section will not be used!

Please remove the first element section and try it again!

Best regards,

cu … Ralph
« Last Edit: August 11, 2011, 06:07:45 pm by RalphKopp »

TonyN

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: RTF Template and child elements
« Reply #2 on: August 12, 2011, 10:19:26 am »
HI Ralh,

The first element tags are from "Package->Diagram->Element
" and without that you can't iterate through the elements in the diagram. hence you get nothing.

So I am still stuck. I know the elements in the diagram have child elements but it wont out put them.

I still need help here please!

TIA,
Tony

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: RTF Template and child elements
« Reply #3 on: August 12, 2011, 09:36:21 pm »
If you remove the content from the child element section, the child elements will be documented just like their parents.

See this help topic:

http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/reporting/rtftemplateeditorchildsect.html

TonyN

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: RTF Template and child elements
« Reply #4 on: August 13, 2011, 12:01:19 pm »
Hi Fred,

Thanks for your help, however I understand this principal but I can't get the template to iterate through the child elements of the element it found on the  diagram.  The structure of the elements is as follows

element A
element A::subA
element A::subB
element A::subC

element A is the only one on the diagram and from the template I would of expected an output of :-

A

child Elementt:- sub A
child Elementt:- sub B
child Elementt:- sub C

Still looking for help....

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: RTF Template and child elements
« Reply #5 on: August 17, 2011, 08:45:24 pm »
Make sure that there aren't any filters skipping the element type of the subs...

TonyN

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: RTF Template and child elements
« Reply #6 on: August 17, 2011, 10:12:00 pm »
There are no filters used at all.  :(


OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: RTF Template and child elements
« Reply #7 on: August 17, 2011, 10:45:58 pm »
Hi Tony,

It could be down to how you have structured your model. Are the elements you wish to report upon in the same package as the diagram? Are there details showing ? If so when you say "child element" in your "project browser" are these actually shown as "child elements" of the parent element? Sorry if the questions are a bit silly, just want to make sure we are using the same terminology...

Regards,

Jon.