Author Topic: Document generation: add template name to template output  (Read 445 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1773
  • Karma: +122/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Document generation: add template name to template output
« 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
« Last Edit: September 15, 2020, 01:16:14 am by Uffe »
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 7411
  • Karma: +176/-120
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Document generation: add template name to template output
« Reply #1 on: September 15, 2020, 08:03:37 am »
Sounds good to me!   +1

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1773
  • Karma: +122/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Document generation: add template name to template output
« Reply #2 on: September 15, 2020, 05:25:18 pm »
Reported.
/U
My theories are always correct, just apply them to the right reality.

skiwi

  • EA Practitioner
  • ***
  • Posts: 1903
  • Karma: +41/-81
    • View Profile
Re: Document generation: add template name to template output
« Reply #3 on: September 24, 2020, 11:39:12 am »
+ 1
Orthogonality rules
Using EA15.1 (1526) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0