I'm searching to inject predefined JavaScript functions (like createSegmentAfter(), getArrayOrXmlLength() ) via an Extension / Plugin in all JavaScript contexts on the server side of Mirth Connect
Actually, we want to add 'read-only' code templates. (Code templates that can't changed anymore in the Mirth Connect Administrator)
I've found in the Source Code of 'connect-development' that these predefined functions (that are now automatically shipped with mirth) are injected via the 'com.mirth.connect.server.builders.JavaScriptBuild er' class.
I've already found how to add Code Templates on the Client side via the CodeTemplatePlugin but when you add these code templates at the client side, the functions are not injected at the server side, so when you add Code Templates via the CodeTemplatePlugin, you can only use the this for Drag and drop Code Templates?
Someone that can help me or have done something like this?
codeTemplatePlugin.png defcodetemplates.png
Actually, we want to add 'read-only' code templates. (Code templates that can't changed anymore in the Mirth Connect Administrator)
I've found in the Source Code of 'connect-development' that these predefined functions (that are now automatically shipped with mirth) are injected via the 'com.mirth.connect.server.builders.JavaScriptBuild er' class.
I've already found how to add Code Templates on the Client side via the CodeTemplatePlugin but when you add these code templates at the client side, the functions are not injected at the server side, so when you add Code Templates via the CodeTemplatePlugin, you can only use the this for Drag and drop Code Templates?
Someone that can help me or have done something like this?
codeTemplatePlugin.png defcodetemplates.png
Comment