Book a Demo

Author Topic: Using Model script in RTF fragment?  (Read 3262 times)

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Using Model script in RTF fragment?
« on: May 24, 2013, 01:50:16 am »
Hi!

I'm trying to use model scripts in a RTF fragment, but feel a bit lost. All I can find in the documentation are the two pages of "Example RTF Template Fragment Script" and "Example Output of an RTF Template Fragment Script". These don't really cut it for me... Do anyone know about where to read about this feature?

Where can I read about working with the XML-object ("MSXML2.DOMDocument.4.0") ?

How and what parameters are available in the template to pass to the script? The example has #objectid# as a parameter, but don't use it in the actually script.

For example, if I want a script that from a packageId do cool stuff, how do I pass it to the script? Is #objectid# that I should use, and is this the only thing that a template can pass forward?
Found this: Q: What else can be passed into the script function other than Object ID? Can I use a DiagramID?
A: You can also pass a PackageID. We plan to support DiagramID as well, but this capability is not available in the current release (10.0.1004).

Thank you for any help or hints!

« Last Edit: May 24, 2013, 01:52:55 am by Sorno »