Book a Demo

Author Topic: Usage of Fragments in Report Builder in Sparx EA  (Read 4825 times)

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Usage of Fragments in Report Builder in Sparx EA
« on: August 31, 2020, 08:22:28 pm »
I am trying to understand how Sparx selects certain relationships to apply certain fragments. For 'Class' (not stereotyped) the built-in fragment 'Template Selector' refers to the built-in fragment 'Structural', which contains among others the fragments 'Structural Outgoing Relationship', 'Structural Incoming Relationship' and 'General Relationship'. I can't find why the last one only displays certain relationships. I don't see any filter set in this fragment.

(My goal is to have a report fragment in which for an element only certain types of relationships are shown (e.g. that have a certain stereotype). For one or another reason those relationships are in the built-in Sparx report shown as General Relationships.)

dgoetz

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Usage of Fragments in Report Builder in Sparx EA
« Reply #1 on: September 01, 2020, 02:20:18 am »
Hi Jacob,
this is a bit tricky.

1. Make a copy of the Template Selector (Right-Click Template in Resources Window). In the original file you have not all rights.
2. Open the copied template
3. Open the "Document Options" (you will find teh icon in the template editor, not in the ribbons).
4. Go to Custom Query, here you will find the template filters.

Dieter

Jacob Vos

  • EA User
  • **
  • Posts: 108
  • Karma: +0/-0
    • View Profile
Re: Usage of Fragments in Report Builder in Sparx EA
« Reply #2 on: September 04, 2020, 03:58:03 pm »
@dgoetz,

Thanks for this first help. How to proceed and to filter on relationship types?

dgoetz

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Usage of Fragments in Report Builder in Sparx EA
« Reply #3 on: October 30, 2020, 09:42:33 pm »
Hi Jacob,

maybe you can use a custom query. Never tried this.