pbakker:
Kan de volgende method niet uitvoeren: 'onShow'
TypeError: undefined is not a function. (onShow; line 9)
TypeError: undefined is not a function. (onShow; line 9)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:584)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:544)
at org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:554)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1239)
at org.mozilla.javascript.gen.c3.call(onShow:9)
at com.servoy.j2db.scripting.f.executeFunction(Unknown Source)
at com.servoy.j2db.FormController.a(Unknown Source)
at com.servoy.j2db.FormController.a(Unknown Source)
at com.servoy.j2db.FormController.executeOnShowMethod(Unknown Source)
at com.servoy.j2db.FormManager$3.run(Unknown Source).....[/code]
This error is not displayed when opening the same solution in Developer. I tried to find the onShow method and line 9 in it, but none of the onShow methods I have have a line 9 with code. Only one onShow method has 9 lines. Here's it's content:if (foundset.getSize() == 0) { //disable Main Tab, untill a SubScription has been selected by Search for ( var i = 1 ; i <= elements.main.getMaxTabIndex(); i++ ) { elements.main.setTabEnabled(i,false); } forms[elements.main.getSelectedTabFormName()].controller.enabled = false; }
Am I using functions here that are not supported in the WebClient? I thought it would all work due to Jan's comment in the release notes of b2:
[fix]-made webclient components compatible with richclient components for all javascript functions
Any change you could check if:
elements.main.getSelectedTabFormName()
does return something? with application.output for example
if it does not please file a case, see http://forum.servoy.com/viewtopic.php?t=6062