Is there a way to include one .xjs in another, to allow for modular code?
Emilian Bold over 10 years ago
Last we looked into this it wasn’t supported. We used a home-grown eval() over aqua.project.getAquaScript(String).read().
Sachin Prakash over 10 years ago
You cannot include one .xjs file in another.
However, to allow for modular code, you can use aqua.system.runScript() to execute another aquascript from within your existing .xjs file. Here’s the open api documentation for runScript:
http://docs.aquafold.com/ads/12.0/openapi/com/aquafold/openapi/AQSystem.html#runScript(java.lang.String, java.lang.Object, boolean)