Book a Demo

Author Topic: Using templates with LoadLinkedDocument  (Read 4107 times)

njf

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Using templates with LoadLinkedDocument
« on: November 21, 2011, 02:28:33 pm »
When using the API, is it possible to use the LoadLinkedDocument method in the element class to load a template that is contained within the Linked Document Templates section?

When I tried to do LoadLinkedDocument("Revision History") where "Revision History" is the template name, it just errors out with null value error.

Or do I have to have an external RTF file and use that in the LoadLinkedDocument instead? I would prefer to be able to use the templates that are stored within EA.

Thanks,
njf
« Last Edit: November 21, 2011, 02:57:00 pm by neilf75 »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Using templates with LoadLinkedDocument
« Reply #1 on: November 22, 2011, 08:15:42 am »
The argument is a filename.

njf

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Using templates with LoadLinkedDocument
« Reply #2 on: November 22, 2011, 09:57:22 am »
Thanks Simon, I had figured out as much. Is there no way of accessing the templates from the API?