Book a Demo

Author Topic: Example RTF Template Fragment Script - How to Run?  (Read 3474 times)

Gokcen Guner

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Example RTF Template Fragment Script - How to Run?
« on: August 14, 2013, 11:53:42 pm »
Hello,
I'm using EA Corp 10.0.1008. In help contents there is a section named 'Example RTF Template Fragment Script' and it claims the script 'returns a row of data in XML format'. I couldn't manage to run it in my scripting tab. It shows 'ActiveXObject is not defined' error. How can I manage to use it?

Also what I'm trying to do is creating an xml file which contains project structure in a custom way. For example:

<Packages>
<Package Name='1st Package' Alias='1'>
<Elements>
<Element Name='1st Element' Alias='1' Metatype='Usecase'>
</Elements>
<Diagrams>
... etc.

Is there an easier way to do this?

EDIT: It works when I used it in a JScript file but I'm curious why it doesn't work in JavaScript.
« Last Edit: August 15, 2013, 12:28:44 am by gokceng »

johann

  • EA User
  • **
  • Posts: 27
  • Karma: +2/-0
    • View Profile
Re: Example RTF Template Fragment Script - How to
« Reply #1 on: August 15, 2013, 01:14:12 am »
Look at thread http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1271054850 (latest comments) for the difference between JScript and Javascript.

Gokcen Guner

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Example RTF Template Fragment Script - How to
« Reply #2 on: August 15, 2013, 01:39:00 am »
Thank you Johann :)