Author Topic: Difference between Document Generation via UI and Script  (Read 3714 times)

DASHBY88

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Difference between Document Generation via UI and Script
« on: February 02, 2024, 02:24:31 am »
Firstly I must apologise for not having any images to provide aid.

I have an interesting issue if I run my template on a package using the "Generate Documentation" UI I get the correct generated output if I call the template programatically using the command;

Code: [Select]
docgen.DocumentPackage 30718, 0, "templateName"
Then the Template Fragment appears not to be called, the fragment calls a Document Script
Code: [Select]
documentDetails(#PACKAGEID#)
The template;
Code: [Select]
package>
1.1 {Pkg.Name}
{Pkg.Notes}
diagram >
< diagram
element >
attribute >
< attribute
< element
{Template - f_Detail}
< package

UPDATE:

If I remove the Template fragment and just process the package elements within the Template I get the same result, in other words, no output of the package elements when called using a script.
« Last Edit: February 02, 2024, 03:00:03 am by DASHBY88 »