Hi everyone,
The 'Javascript for SuperOffice' project is moving forward, and as we (at least tried to) make clear there could be changes down the road..
This particular change is quite big, as we have decided that Typescript is more appropriate as a scripting language inside of SuperOffice. Developers have grown accustomed to the type safety CRMScript provides, and moving to vanilla javascript was seen as to big of a change. Typescript also provides you with errors on compiletime, and will give developers better tools to work with. This has also been the 'most requested feature' from our testers (both internally and externally), and since we dont forsee any technical issues with it, it just made a lot of sense.
With this change there is a couple of importalt things to be aware of:
- We do NOT support re-compiling on every execution, as it would create to much load and overhead. To compile a typescript to javascript you will have to save/apply it.
- For those who have EXISTING javascripts, e.g. have some javascripts they want to keep, you will have to copy and save those outside of SuperOffice by 11.june 2024. The reason being that we have introduced a new field in the ejscript-table which will contain the Typescript, and that field is what is shown inside the SuperOffice editor. If you were to open an existing script it would show up as blank inside the editor (which it is), and when you apply/save the script it will overwrite whatever is in the ejscript.body-field (Which is where your existing javascript is stored).
NOTE: If you didnt read this in time, and still want to get your scripts, it should be possible to fetch the old script through a SearchEngine or similar. Unless you have already saved/overwritten it through the editor.. in then case its gone.. Sorry! - Just to make it clear: CRMScripts are of course unaffected by all of this!
We hope that is a welcome change for all of you, and we look forward to hear your feedback!
//Eivind
All Replies (2)
Awesome that the decision was made to go for typescript, this will prevent a lot of possible bugs in the future due to missing type checking!