Book a Demo

Author Topic: elements filtration within RTF template  (Read 3195 times)

xahdpe

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
elements filtration within RTF template
« on: June 12, 2013, 01:15:14 am »
hi,

is it possible to filter elements within diagram to have only elements with connectors of specified stereotype in the RTF output?

i have a rtf fragment which displays such are elements (with custom SQL script) in the special manner (literally, there is a table's row of following structure: [source_element.attribute | dest_element.attribute | connector.notes] as i'm using "link to element feature").
so, i'm putting my template within element tag:

[highlight]element>[/highlight]
{Template-showElem}
[highlight]<element[/highlight]

and i'm facing a problem, when a lot of spaces and empty lines are present because external [highlight]element[/highlight] tag processes all the elements including those elements that excluded in accordance with a logic my rtf fragment.

any help is strongly appreciated.)

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: elements filtration within RTF template
« Reply #1 on: June 12, 2013, 02:43:31 pm »
What Section is that: Package | Element or sub the: Package | Element | Connector?
« Last Edit: June 12, 2013, 02:44:04 pm by Dermot »

xahdpe

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: elements filtration within RTF template
« Reply #2 on: June 12, 2013, 10:25:07 pm »
Quote
What Section is that: Package | Element or sub the: Package | Element | Connector?

structure is the following:

[highlight]package >[/highlight]
{Pkg.Name}
[highlight]diagram >[/highlight]
{Diagram.Name}
[highlight]< diagram[/highlight]
<table header>
[highlight]element >[/highlight]
{Template - showTblRow}
[highlight]child elements >
< child elements
< element
child packages >
< child packages
< package[/highlight]

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: elements filtration within RTF template
« Reply #3 on: June 13, 2013, 02:24:33 pm »
Not sure why you are getting the blanks.
Have you tried  just a simple SQL query to eliminate a set of elements by say Element.Version <> 1.0 - check that does not return blanks for filtered out elements.
« Last Edit: June 13, 2013, 02:38:20 pm by Dermot »