Skip to content

Instantly share code, notes, and snippets.

View sodogan's full-sized avatar
💭
I am waiting for contributions for SAPUI5

Solen Dogan sodogan

💭
I am waiting for contributions for SAPUI5
View GitHub Profile
@christianjianelli
christianjianelli / myJSONModel.js
Created December 5, 2012 19:44
Extending SAPUI5 JSON Model
jQuery.sap.require("sap.ui.model.json.JSONModel");
sap.ui.model.json.JSONModel.extend("myJSONModel", {
//declare our new method including two new parameters fnSuccess and fnError, our callback functions
loadDataNew: function(sURL, fnSuccess, fnError, oParameters, bAsync, sType, bMerge, bCache){
var that = this;
if (bAsync !== false) {