Author Topic: Document Generation; Problem with custom scripts when published as MDG  (Read 4423 times)

PeterHeintz

  • EA User
  • **
  • Posts: 965
  • Karma: +58/-18
    • View Profile
In a template fragment I call a custom script method and after generating a document all works fine.

When I use the templates and scripts in a published MDG, the script seems to be not called at all.

What I realized (when using the MDG) is, that in the “Custom Query” tab of the template fragment the method call is there but the script containing the file is not selected in the form.

Any idea to get this problem solved?
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document Generation; Problem with custom scripts when published as MDG
« Reply #1 on: January 26, 2016, 07:42:47 pm »
Peter,

Seems like a bug to me, so please make sure to file a bug report
I think the problem stems from the fact that the reference from the scriptfragment to the script is based on the ID of the script, which seems to change when importing a script using MDG.

I don't see an immediate solution right now except for importing the scripts using "Import Reference Data"

Geert

PeterHeintz

  • EA User
  • **
  • Posts: 965
  • Karma: +58/-18
    • View Profile
Re: Document Generation; Problem with custom scripts when published as MDG
« Reply #2 on: January 29, 2016, 12:06:18 am »
As stated by Sparx, this bug is scheduled to be fixed in V13. :)
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document Generation; Problem with custom scripts when published as MDG
« Reply #3 on: January 29, 2016, 12:20:50 am »
Thanks for the info Peter, good to know.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
« Last Edit: June 23, 2016, 09:06:17 am by KP »
My theories are always correct, just apply them to the right reality.