Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Modesto Vega on November 22, 2019, 05:50:08 am

Title: Templates and report specifications
Post by: Modesto Vega on November 22, 2019, 05:50:08 am
We have a set of templates as part of an enterprise/corporate architecture repository. They work fine but would like to make a number of enhancements.

In a nutshell, we have a repository with multiple pages per domain/area/project and we have strategically placed Report Specification elements on diagrams to be able to generate the relevant documentation. All of this works fine but will like to try to achieve the following and don't seem to get it working:
Title: Re: Templates and report specifications
Post by: Geert Bellekens on November 22, 2019, 06:46:13 pm
Have you tried using virtual documents?
On the «master document» you can set a number of tagged values that can be used on the cover page.

Geert
Title: Re: Templates and report specifications
Post by: Modesto Vega on November 22, 2019, 08:02:18 pm
I have not looked into this. Thanks for the tip, I will give it a try.
Title: Re: Templates and report specifications
Post by: Modesto Vega on December 04, 2019, 07:15:37 pm
Thanks Geert, report packages and master documents were not only the answer that I was looking for but as I wrote elsewhere provide the means of segregating the documentation from the actual models. It is a very elegant way of placing the documentation and the models in separate branches of the repository. As a result, this allows the creation of a documentation view which differs from the actual structure of your models.
Title: Re: Templates and report specifications
Post by: Geert Bellekens on December 04, 2019, 07:37:24 pm
Thanks Geert, report packages and master documents were not only the answer that I was looking for but as I wrote elsewhere provide the means of segregating the documentation from the actual models. It is a very elegant way of placing the documentation and the models in separate branches of the repository. As a result, this allows the creation of a documentation view which differs from the actual structure of your models.
I couldn't agree more  :)

Geert
Title: Re: Templates and report specifications
Post by: Paolo F Cantoni on December 05, 2019, 11:24:14 am
Thanks, Geert, report packages and master documents were not only the answer that I was looking for but as I wrote elsewhere to provide the means of segregating the documentation from the actual models. It is a very elegant way of placing the documentation and the models in separate branches of the repository. As a result, this allows the creation of a documentation view which differs from the actual structure of your models.
I couldn't agree more  :)

Geert
+1

Paolo
Title: Re: Templates and report specifications
Post by: Modesto Vega on December 11, 2019, 05:25:58 am
There are 2 minor glitches with this, none of which would cause us to abandon this approach. But it is a bit annoying that we cannot find a way around them.

The simplest one concerns concatenating the element name to its stereotype(s). We always end up with “Element Name <<Stereotype>>” when we want “Element Name Stereotype”. Is there anyway to remove both pairs of < and >?

The more complex is to do with filtering, we are trying to use one template for 2 purposes: to publish approved documentation/designs and to make available work-in-progress documentation/designs for review and discussion. In one case we want to include all elements irrespective of their status and in the other we only want to include elements with a status of approved or implemented. The idea is to be able to iterate through a set of documents/designs. We have tried a number of workarounds all of them resulting on the same frustrating result: we always get all elements.

The search functionality in the Master Document does not seem to do anything. Furthermore, the only way to achieve this appears to be to use 2 copies of the same template with different filters which is not very efficient because any template change has to be done twice.

Title: Re: Templates and report specifications
Post by: RoyC on December 12, 2019, 10:00:05 am
The simplest one concerns concatenating the element name to its stereotype(s). We always end up with “Element Name <<Stereotype>>” when we want “Element Name Stereotype”. Is there anyway to remove both pairs of < and >?

Not sure, but try opening the 'Preferences' window (Ctrl+F9) and, on the 'General' page, clearing the checkbox for 'Use extended « and » characters'.
Title: Re: Templates and report specifications
Post by: Geert Bellekens on December 12, 2019, 03:27:19 pm
The simplest one concerns concatenating the element name to its stereotype(s). We always end up with “Element Name <<Stereotype>>” when we want “Element Name Stereotype”. Is there anyway to remove both pairs of < and >?

Not sure, but try opening the 'Preferences' window (Ctrl+F9) and, on the 'General' page, clearing the checkbox for 'Use extended « and » characters'.
I thought that was simply replacing « and » with << and >>
Never tried it though.

Anyway, using an SQL fragment it's rather trivial to get the stereotype without the « and » as it is stored in the database without.

Geert

Geert
Title: Re: Templates and report specifications
Post by: Modesto Vega on December 12, 2019, 09:13:26 pm
Thanks Geert.

Am I correct to assume that using a SQL fragment in EA V13 means using a Template Fragment? This could force us to rewrite all templates.

You are right about Sparx not storing '«' and '»' in the database, we checked before posting.

Both
Quote
{Element.Name} {Element.StereotypeEx}
and
Quote
{Element.Name} {Element.Stereotype}

Result on a Element Name «Element Stereotype» being printed/output, e.g. Vehicle «Concept».

Furthermore, I suspect that unless I alias the Stereotype column to something not using the word Stereotype, I am going to end with Vehicle «Concept».

It is strange that Sparx does not allow suppressing '«' and '»' when generating documentation.
Title: Re: Templates and report specifications
Post by: Geert Bellekens on December 12, 2019, 09:32:38 pm
Thanks Geert.

Am I correct to assume that using a SQL fragment in EA V13 means using a Template Fragment? This could force us to rewrite all templates.
Yes, that is correct
Quote

You are right about Sparx not storing '«' and '»' in the database, we checked before posting.

Both
Quote
{Element.Name} {Element.StereotypeEx}
and
Quote
{Element.Name} {Element.Stereotype}

Result on a Element Name «Element Stereotype» being printed/output, e.g. Vehicle «Concept».

Furthermore, I suspect that unless I alias the Stereotype column to something not using the word Stereotype, I am going to end with Vehicle «Concept».

It is strange that Sparx does not allow suppressing '«' and '»' when generating documentation.
I don't think EA adds the "«" and "»" in SQL fragments, but if it would, then an alias would indeed solve that.

Geert