jsclient Template and Omnis Licences
Gavin Foster
omnislist at dataweaver.com
Tue Jul 15 12:35:28 EDT 2014
Hi $all,
Just jotting this here in case anyone hits the same problem I did.
Using OSX 10.9.4 Mavericks and Safari 7.0.5
Every time I hit ‘Test Form…’ Omnis used up a licence.
When I closed the browser window, the licence was not freed.
Reason: the remote form and task instances remained open in Omnis, visible in the Notation Inspector $iremotetasks and $iremoteforms.
Solution is to edit your htm file as follows. Add the following:
onbeforeunload="jOmnis.onUnload()”
Result:
<body onload="jOmnis.onLoad()" onunload="jOmnis.onUnload()" onbeforeunload="jOmnis.onUnload()" style="margin:0;overflow:auto”>
You need to make this change to the jsctempl.htm file in the ‘html’ subdirectory in the Omnis package.
That will be reflected in every .htm test file.
If you use your own .htm file, you will probably need to add this to prevent Safari users eating your licences.
Regards
Gav
Don’t forget to book for Euromnis.
http://www.euromnis.com
Euromnis 19th - 24th October 2014
More information about the omnisdev-en
mailing list