This before I changed a code line for debugging.:
org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: com.servoy.j2db.dataprocessing.Record cannot be cast to com.servoy.j2db.dataprocessing.FindState (H:\servoy_workspace_git\boss\svy_search\globals.js#85)
and this after I commented out a code line:
- Code: Select all
forms[ _triggerForm ].foundset.loadAllRecords( );
and commented it back in.:
org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException (H:\servoy_workspace_git\boss\svy_search\globals.js#85)
The error occurs in this line.:
- Code: Select all
forms[_form].controller.search( );
The error does not occur if I comment out.:
- Code: Select all
forms[ _triggerForm ].foundset.loadAllRecords( );
I think the problem occurs, because loadAllRecords is executed on a related form before controller.search on the head form is executed.
But it is correct to get an error message in this case? Also why I get another error message after I commented back in the line?