We’ve developed some resources to help you work effectively from
home during COVID-19 Click to learn more
How do you use hook scripts in SuperOffice 8?
I have an upgraded environment and I want to hook into viewTicket? The old hook scripts aren't activated and I can't find the screen name tag in the view source of the screen...?
I think I saw somewhere that they had commented out the code that added the hook-script comments in the sourcecode.
It's still not there in 8.0 SR2.
Ok, but does hook script still work?
It does not seem to work. I have a hook script with the id "HtmlPage.ej_viewTicket_80.beforePrint" and it does not seem to load (or maybe printDebug isn't working as it used to be, hard to tell...)
We still have not gotten back printing out the eventName in the HtmlPage body, but the event handlers still work as before. You just need to figure out the correct event name to make it work.
I just tested with the same string as you, and I am able to hook. Try calling exitWithMessage() just to make sure your script is executed. Logging should work as well.
Thanks, I'll try that.
Hi, what is the hook-script name that is used by the new "View Ticket 80" screen? I tried looking in SOD, but the name isn't printed in the HTML there either.
This should work: