Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Svend Erik Nygaard on November 20, 2015, 07:43:49 pm
-
How do I include an external javascript library for my EA scripting?
(for instance JQuery)
-
See
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1421272494/3#3
Geert
-
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.
-
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
-
Still seems that the question hasn't been answered. Is it possible to include external libraries or not?
-
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 (https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library/tree/master/Framework/Tools/Script%20Management)
Geert