We’ve developed some resources to help you work effectively from home during COVID-19 Click here to learn more

Hook scripts in SuperOffice 8

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...?

/ Peter

RE: Hook scripts in SuperOffice 8

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.

By: Frode Lillerud 10 Jun 2016

RE: Hook scripts in SuperOffice 8

Ok, but does hook script still work?

By: Peter Borg 10 Jun 2016

RE: Hook scripts in SuperOffice 8

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...)

/ Peter

By: Peter Borg 10 Jun 2016

RE: Hook scripts in SuperOffice 8

Hi,

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.

Sverre

By: Sverre Hjelm 14 Jun 2016

RE: Hook scripts in SuperOffice 8

Thanks, I'll try that.

By: Peter Borg 20 Jun 2016

RE: Hook scripts in SuperOffice 8

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.

By: Frode Lillerud 2 May 2017

RE: Hook scripts in SuperOffice 8

Hi Frode!

This should work:

HtmlPage.ej_viewTicket_80.beforePrint

By: Hans Wilhelmsen 18 May 2017