I am trying to write custom js functions that activate once a button is pressed. I created the interface using etemplate. I got the basic code structure from https://github.com/EGroupware/example/tree/step6
Once I press the button I get API Exceptions… a warning stating that Legacy JS only supports 2 arguments and an Uncaught TypeError, saying that widget.getInstanceManager().app_obj.MYAPP is undefined…
I haven’t been able to find any documentation that could help me, nor has looking through the code so far… does anyone have an idea what the issue might be?
Also, I don’t understand why there still are both a .js file and a .ts file in other applications… hasn’t there been a migration to TypeScript?
Thanks in advance
created
last reply
- 6
replies
- 1.3k
views
- 2
users
- 3
links