Skip to Content

Is it possible for a GTL template to access a VBScript sub/func defined elsewhere in the extension?

Dec 09, 2016 at 02:27 PM


avatar image

I have a Global subroutine in an extension, which sets a number of options for DB generation. The extension also contains a number of GTL Templates, each of which needs to set the options, then output the subset of the SQL Preview that matches the options, wrapped in XML. I can embed VBScript within the template like this:


' commands go here


What I really want to do is call the existing subroutine from inside the GTL, but I don't know how to reference it.

Perhaps I can use the .execute_vbscript macro to call it, but how do I reference it?

By the way, I can execute the script from an external file, but I don't want to be dependent on that mechanism if I can help it.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers