Hi All,
I have this insert method that works fine in Servoy 3.5.5, but somehow it errors in Servoy 4.0:
function Insert_e();Insert_e();()
{
if ( examiner != null && asr_date != null)
{
databaseManager.saveData()
////////////////////
var array = databaseManager.getFailedRecords() ;
if (array[0] == null)
{
plugins.dialogs.showInfoDialog( "Hi", "Record was saved", 'Ok') ;
}
else
{
for ( var i = 0 ; i < array.length ; i++ )
{
var record = array[i];
var alert = application.output(record.exception);
plugins.dialogs.showErrorDialog( "Error", "Error saving record. Please check all the fields.", 'OK');
databaseManager.rollbackEditedRecords() ;
}
}
}
else
{
plugins.dialogs.showErrorDialog( "Data Missing", "Record not inserted. Please check all the fields.", 'OK');
}
}
Here is the error:
An internal error occurred during: “Launching globals.js”.
java.lang.NullPointerException
Thanks for any help.
Abrahim