Skip to content

Instantly share code, notes, and snippets.

@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) {
@christianjianelli
christianjianelli / shBrushAbap.js
Last active April 25, 2020 10:13
SyntaxHighlighter brush for ABAP code
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*