They are also present in developer, check the warning icon on your status bar (and double click this)
Jan, In Developer, no errors occur. I also started the same solution in Servoy Client: No problems either. It seesm to only happen in the WebClient.
I altered the code of the onsHow method the following way:
application.output('FoundSet Size: '+foundset.getSize());
if (foundset.getSize() == 0)
{
//disable Main Tab, untill a SubScription has been selected by Search
for ( var i = 1 ; i <= elements.main.getMaxTabIndex(); i++ )
{
application.output('MaxTabIndex: '+elements.main.getMaxTabIndex());
elements.main.setTabEnabled(i,false);
}
application.output('SelectedTabFormName: '+elements.main.getSelectedTabFormName());
forms[elements.main.getSelectedTabFormName()].controller.enabled = false;
}
In the Console, I now see the following logging:
Warning: global.setValueListDefaultValue is not defined in the globals, dynamic media global is created
null
WebClient: FoundSet Size: 0
WebClient: MaxTabIndex: 5
WebClient: MaxTabIndex: 5
WebClient: MaxTabIndex: 5
WebClient: MaxTabIndex: 5
WebClient: MaxTabIndex: 5
WebClient: End of Loop
Kan de volgende method niet uitvoeren: 'onShow'
TypeError: undefined is not a function. (onShow; line 12)
TypeError: undefined is not a function. (onShow; line 12)
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.c8.call(onShow:12)
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)
I’ll file my solution in the support system, so you can test this and see the layout issues.
Tnx for the quick respons.
Paul