Book a Demo

Author Topic: RTF document generation: Limit selections  (Read 2950 times)

fferm

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
RTF document generation: Limit selections
« on: December 01, 2010, 08:44:23 pm »
Hi

I'm creating an RTF report to list requirements and associated properties.

When I do the selections in the template editor, I want to limit these.  I do not want all of the "children" in the selection to appear in the document based on some criteria.  Examples of what I want to do are:
- Only include elements that are of type Requirement
- Only include tagged values with a specific name

Is there any way to do this?

Regards
/ Fredrik Ferm

Happy

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: RTF document generation: Limit selections
« Reply #1 on: December 01, 2010, 09:49:27 pm »
You may have a look for "Report Generation"/"RTF"/"Virtual Documents" Section in EA help.

There read  the sections about applying standard model searches to model documents via SearchName/SearchField Tagged Values of a Model Document.

Only the result of a search is used for reporting, then.
« Last Edit: December 01, 2010, 09:52:10 pm by Happy »

fferm

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: RTF document generation: Limit selections
« Reply #2 on: December 01, 2010, 10:38:58 pm »
To me, that looks as if I lock my document to specific packages in my model, which is not really what I want to do.  Perhaps, I have misunderstood something, if so, please set me straight.

Instead, I want to create a template that lists requirements from the selected model scope (package selected when document generation started), and in this document I want to list all elements of type Requirement.  Also, for each Requirement I want to list the value of a specific tagged value (identified by its name).

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: RTF document generation: Limit selections
« Reply #3 on: December 01, 2010, 11:48:23 pm »
EA does let you filter by such things as element type, stereotype and tagged values. Unfortunately, filters apply to all elements. There is no capability to define separate filter criteria for primary elements, related elements, and child elements. I think that this is the functionality that you need.

This has been raised to Sparx a number of times. I contacted them back in October for a similar requirement and received the following response.

"Unfortunately it's not currently possible to filter the connector target (or source) in an RTF report in the way you described.  Our developers advised that the next major release of EA (Version 8.1) will have scripting functionality which would allow this type of report, though we cannot yet say when EA 8.1 will be released."