Is it possible to have sage run javascript code? Maybe write the code in the 4GL script? Anybody have any ideas that may work?
I would also really like to kmnw
Hello,
Yes, it is possible. You can create a NodeJS module and then copy the JS code to the syracuse folder that stores the modules. It is way faster than java bridge for 3rd party interactions.
Check this link for an example:
http://online-help.sageerpx3.com/erp/12/staticpost/javascript-extensibility-example-currency-converter-bundle/
Examples of things you can do with JS in a faster way than 4GL:
-Download/Upload through SFTP
-Parse excel files
-Parse RTF text
Do note that NodeJS (Syracuse) is single threaded so try not to use it for complex jobs while there are many users online. Also U9 does not support EXEC_JS in batch tasks, if I am not mistaken (at least last year it did not, but may depend on your syracuse version).
Suggestion 1: force your module to be cleared from the cache on every execution until your module is stable or you have to restart the node service (syracuse) everytime you want new code to be considered which will logout every user.
Suggestion 2: Use streamline
Regards,
RN
Hello,
Yes, it is possible. You can create a NodeJS module and then copy the JS code to the syracuse folder that stores the modules. It is way faster than java bridge for 3rd party interactions.
Check this link for an example:
http://online-help.sageerpx3.com/erp/12/staticpost/javascript-extensibility-example-currency-converter-bundle/
Examples of things you can do with JS in a faster way than 4GL:
-Download/Upload through SFTP
-Parse excel files
-Parse RTF text
Do note that NodeJS (Syracuse) is single threaded so try not to use it for complex jobs while there are many users online. Also U9 does not support EXEC_JS in batch tasks, if I am not mistaken (at least last year it did not, but may depend on your syracuse version).
Suggestion 1: force your module to be cleared from the cache on every execution until your module is stable or you have to restart the node service (syracuse) everytime you want new code to be considered which will logout every user.
Suggestion 2: Use streamline
Regards,
RN
*Community Hub is the new name for Sage City