Book a Demo

Author Topic: Use external javascript library in EA scripting?  (Read 9455 times)

Svend Erik Nygaard

  • EA User
  • **
  • Posts: 131
  • Karma: +2/-2
  • Business Information Architect
    • View Profile
Use external javascript library in EA scripting?
« on: November 20, 2015, 07:43:49 pm »
How do I include an external javascript library for my EA scripting?
(for instance JQuery)


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13505
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

Jeff Hegedus

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Use external javascript library in EA scripting?
« Reply #2 on: December 29, 2015, 04:47:10 pm »
I get an error when trying to link to this or any of the older forum posts.  This happens a lot and is problematic for tracking down information.  Does anyone know how to convert the links to the location in the new forum?  Sure would be nice if could be translated automatically on the back end of the website so they just work but failing that, something we could do on the client side would suffice.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13505
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Use external javascript library in EA scripting?
« Reply #3 on: December 29, 2015, 05:58:40 pm »
No, we don't have a solution for that (yet?).
Although it should be rather straightforward do redirect link to the old forum to the new forum.

But at least the search function is fast   :)

Geert

ja1234

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Use external javascript library in EA scripting?
« Reply #4 on: November 03, 2016, 10:13:12 pm »
Still seems that the question hasn't been answered. Is it possible to include external libraries or not?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13505
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Use external javascript library in EA scripting?
« Reply #5 on: November 14, 2016, 07:24:22 pm »
In my experience you can do almost everything you can do in regular scripting in EA scripts.
I know I can include my my own internal EA libraries using the INC! command, but I've never tried including external script libraries.

How would you do it when scripting outside of EA? That should be the first thing you try.

If all else fails you can still create the whole library as internal EA scripts. I've written some scripts that manage importing scripts into EA. See https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/tree/master/Framework/Tools/Script%20Management

Geert