Author Topic: Where does script diagnostics output go when generating documents?  (Read 1917 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
I am trying to use the DocumentGenerator in a script to generate documents for a Document Script in a document template fragment but it's not working and my Session.Output messages in the script are not appearing. I have a working Custom Script to which I have added some Session.Output messages and they don't appear either! I must be looking in the wrong place (I've tried both the System and Script tabs in the System Output window which is where the script output normally appears from Session.Output messages.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where does script diagnostics output go when generating documents?
« Reply #1 on: March 10, 2022, 08:15:27 pm »
Hi Pete,

My solution is to write directly to the system output

Example:

Code: [Select]
const outputName = "MyTabName"

sub main
'create output tab
Repository.CreateOutputTab outPutName
Repository.ClearOutput outPutName
Repository.EnsureOutputVisible outPutName
'inform user
Repository.WriteOutput outPutName, now() & " my message for the output tab", 0
end sub

main

Geert