Error when loading data model since Last Update
Posted: Mon Jan 18, 2016 11:46 pm
NoModelError: Can't found 'undefined' model
When digging down in the error it happens with 3 functions i've created to initialize localStorage. The functions are calling the models as Appery.io standard;
But the model exists (See attached images)
function initPreliquidacionLocalHistoricoDB(){
Code: Select all
if((localStorage.preliquidacionesHistoricoLocalDB===null)||typeof localStorage.preliquidacionesHistoricoLocalDB==="undefined" ){
var histDB=Apperyio.getModel("PreliquidacionesStore");
localStorage.preliquidacionesHistoricoLocalDB=JSON.stringify(histDB);
}
}
function initPreliquidacionStorage(){
Code: Select all
var preliquidacionRecord = Apperyio.getModel("Preliquidacion_Model",{});
localStorage.preliquidacionRecord = JSON.stringify(preliquidacionRecord);
}
function initPreliquidacionStorageDB(){
Code: Select all
var preliquidacionDB= Apperyio.getModel("PreliquidacionesStore");
localStorage.preliquidacionesStorageDB = JSON.stringify(preliquidacionDB);
}