Book a Demo

Author Topic: Own structured scenario template in reports  (Read 5328 times)

Slávek Rydval

  • EA User
  • **
  • Posts: 40
  • Karma: +2/-0
    • View Profile
    • homepage
Own structured scenario template in reports
« on: March 31, 2022, 01:44:18 am »
Hello,

I am preparing a custom report and need to create own teplate for structured scenarios. First of all, I have a template that shows a diagram of a package, where use cases are shown, and after that I have a list of these use cases. The use cases are NOT from the same package as the diagram is. Now, I need to show all structured scenarios, each separated from each other.

Do you have any idea, how to do it? I tried fragments but you cannot have a fragment (getting all the steps of particular scenario) in a fragment (getting all scenarios).

The pripary template look like this:

package >
{Pkg.Name}
diagram >
{Diagram.DiagramImg}

element >

{Element.Name}
{Element.Name} {Element.Notes}

Scenarios
What should be here?

< element
< diagram

< package

Thanks.

PS.: I know there is option to use from context menu Insert field --> Structured Scenario Text, but you cannot format it if the element is taken from diagram. An the default result is painfull.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Own structured scenario template in reports
« Reply #1 on: March 31, 2022, 04:04:10 am »
Best look into virtual documents.

That allows you to combine elements from different packages using different templates.

Geert

Slávek Rydval

  • EA User
  • **
  • Posts: 40
  • Karma: +2/-0
    • View Profile
    • homepage
Re: Own structured scenario template in reports
« Reply #2 on: March 31, 2022, 07:47:06 am »
Best look into virtual documents. That allows you to combine elements from different packages using different templates.

I am using it already. The thing is the use cases are not from one single package so virtual document is not a solution to this.

Slávek

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Own structured scenario template in reports
« Reply #3 on: March 31, 2022, 03:28:21 pm »
Best look into virtual documents. That allows you to combine elements from different packages using different templates.

I am using it already. The thing is the use cases are not from one single package so virtual document is not a solution to this.

Slávek
Why not? I'm often using model documents for single elements, using a search with the GUID as parameter.

Geert

Slávek Rydval

  • EA User
  • **
  • Posts: 40
  • Karma: +2/-0
    • View Profile
    • homepage
Re: Own structured scenario template in reports
« Reply #4 on: April 01, 2022, 10:48:12 pm »
Quote
Why not? I'm often using model documents for single elements, using a search with the GUID as parameter.

How? As you can see on the template I posted, I can insert fragment on the line

Scenarios
What should be here?

In this fragment I am able to insert all the structured scenarios (names) via SQL or Script. But I am not able to each scenario insert all its lines (it should be another fragment getting id of scenario as a parameter). Or am I missing something?

Cheers.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

Slávek Rydval

  • EA User
  • **
  • Posts: 40
  • Karma: +2/-0
    • View Profile
    • homepage
Re: Own structured scenario template in reports
« Reply #6 on: April 02, 2022, 04:11:40 am »