Author Topic: Where are stored the Document generation templates ?  (Read 4131 times)

albert

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Where are stored the Document generation templates ?
« on: April 04, 2017, 11:35:33 pm »
Hello,

Where are stored the Document generation templates created by the user and also those that are imported via MDG Technologies ?

Thanks in advance,
Albert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Where are stored the Document generation templates ?
« Reply #1 on: April 04, 2017, 11:53:58 pm »
Try
Code: [Select]
SELECT * FROM t_document WHERE ElementID="SSDOCSTYLE"
q.

albert

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Where are stored the Document generation templates ?
« Reply #2 on: April 05, 2017, 06:32:28 pm »
Thanks for your help. Thanks also for your e-books, very helpful.

One more question : do you have any ideas how to import reference data (scripts and templates) via a JScript script or a C# Add-In ?

I currently encounter a bug (as admitted by the EA support) :
  • fragment templates using script
  • templates and scripts are embedded in a MDG technology
  • after deployment of the technology, the link between the fragment templates and the script is lost due to the fact that the script groups are not included in MDG technologies, as a result any scripts included lose their special types.

Best regards

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Where are stored the Document generation templates ?
« Reply #3 on: April 05, 2017, 07:08:08 pm »
See on p. 39 of Scripting:
Code: [Select]
xmlres = Respository.CustomCommand("Repository", "ImportRefData", sXML);
In a former EA version I had issues importing image data where the internal IDs got mixed up. I don't know whether that has been fixed in the mean time. But ever since I use my own SQL-based import for image data which works pretty well.

q.

albert

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Where are stored the Document generation templates ?
« Reply #4 on: April 06, 2017, 05:52:37 pm »
Thanks, it works fine