onBeforeRendering: function() {
jQuery.get("/prototype/OnlineQuestionnaire/getQuestionsAndResponseChoices.xsjs", { questionnaireResponseId: jQuery.sap.storage.get("QuestionnaireResponseId"), password: jQuery.sap.storage.get("Password")
}).done(function(data){
this.checkData(data);
});
},
checkData: function(xsjsInput){
console.log('Hi', xsjsInput);
}
Why can't I call another function from the .done(function(data){check(data)}) and pass the data to this next function?
jQuery.get("/prototype/OnlineQuestionnaire/getQuestionsAndResponseChoices.xsjs", { questionnaireResponseId: jQuery.sap.storage.get("QuestionnaireResponseId"), password: jQuery.sap.storage.get("Password")
}).done(function(data){
this.checkData(data);
});
},
checkData: function(xsjsInput){
console.log('Hi', xsjsInput);
}
Why can't I call another function from the .done(function(data){check(data)}) and pass the data to this next function?