Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Uffe on September 15, 2020, 01:12:17 am

Title: Document generation: add template name to template output
Post by: Uffe on September 15, 2020, 01:12:17 am
Hello,


As an MDG technology developer, I want to be able to add the name of document generation templates to the generated output so that I can find which template produces which output when things go wrong. (See? I can do this agile bullsh*t too.)

When generating a document, there should be an additional checkbox "Include Template Names in Report".
An additional line should then be output before and after each template's content.

The template names should be generated as hidden text.

The template line should follow the scheme
[BEGIN|END] <template_type> <template_source>::<template_name>
<template_type> :- [template|<custom_type> fragment]|style sheet|cover page|table of contents]
<custom_type>   :- [custom SQL|custom script|template selector|document script|custom XML]
where <template_source> is either the name of the technology containing the template, or the relevant term as used in the Resources window ("System", "User", etc).

Once the document has been generated, you can switch on hidden text in Word to see the template trace, or switch it off to see the document as generated.

Would save hours of debugging, especially for beginners, thus lowering the adoption threshold. (Oh yes, I am also fluent in managerish and marketese.)


/Uffe
Title: Re: Document generation: add template name to template output
Post by: Paolo F Cantoni on September 15, 2020, 08:03:37 am
Sounds good to me!   +1

Paolo
Title: Re: Document generation: add template name to template output
Post by: Uffe on September 15, 2020, 05:25:18 pm
Reported.
/U
Title: Re: Document generation: add template name to template output
Post by: skiwi on September 24, 2020, 11:39:12 am
+ 1