function(sName) {
			var sLabel = "";

			// remove leading 'P_' often used for parameter properties on HANA
			sLabel = sName.replace(/^P_(.*)/, "$1");
			// split UpperCamelCase in words (treat numbers and _ as upper case)
			sLabel = sLabel.replace(/([^A-Z0-9_]+)([A-Z0-9_])/g, "$1 $2");
			// split acronyms in words
			sLabel = sLabel.replace(/([A-Z0-9_]{2,})([A-Z0-9_])([^A-Z0-9_]+)/g, "$1 $2$3");
			// remove trailing _E
			sLabel = sLabel.replace(/(.*) _E$/, "$1");
			// remove underscores that were identified as upper case
			sLabel = sLabel.replace(/(.*) _(.*)/g, "$1 $2");
			return sLabel;
		}
function(sName) {
			var sLabel = "";

			// remove leading 'P_' often used for parameter properties on HANA
			sLabel = sName.replace(/^P_(.*)/, "$1");
			// split UpperCamelCase in words (treat numbers and _ as upper case)
			sLabel = sLabel.replace(/([^A-Z0-9_]+)([A-Z0-9_])/g, "$1 $2");
			// split acronyms in words
			sLabel = sLabel.replace(/([A-Z0-9_]{2,})([A-Z0-9_])([^A-Z0-9_]+)/g, "$1 $2$3");
			// remove trailing _E
			sLabel = sLabel.replace(/(.*) _E$/, "$1");
			// remove underscores that were identified as upper case
			sLabel = sLabel.replace(/(.*) _(.*)/g, "$1 $2");
			return sLabel;
		}
function ( sName ) { var sLabel = "" ; // remove leading 'P_' often used for parameter properties on HANA sLabel = sName . replace ( / ^P_(.*) / , "$1" ) ; // split UpperCamelCase in words (treat numbers and _ as upper case) sLabel = sLabel . replace ( / ([^A-Z0-9_]+)([A-Z0-9_]) / g , "$1 $2" ) ; // split acronyms in words sLabel = sLabel . replace ( / ([A-Z0-9_]{2,})([A-Z0-9_])([^A-Z0-9_]+) / g , "$1 $2$3" ) ; // remove trailing _E sLabel = sLabel . replace ( / (.*) _E$ / , "$1" ) ; // remove underscores that were identified as upper case sLabel = sLabel . replace ( / (.*) _(.*) / g , "$1 $2" ) ; return sLabel ; }
/*
Old helpers that got replaced by robust functions provided by the UI5 ODataModel
 /*
renderPropertyKeyValue : function(sKeyValue, sPropertyEDMTypeName) {
if (typeof sKeyValue == "string" && sKeyValue.charAt(0) == "'")
throw "Illegal property value starting with a quote";
switch (sPropertyEDMTypeName) {
case 'Edm.String':
return "'" + sKeyValue + "'";
case 'Edm.DateTime':
return "datetime'" + sKeyValue + "'";
case 'Edm.Guid':
return "guid'" + sKeyValue + "'";
case 'Edm.Time':
return "time'" + sKeyValue + "'";
case 'Edm.DateTimeOffset':
return "datetimeoffset'" + sKeyValue + "'";
default:
return sKeyValue;
}
},

renderPropertyFilterValue : function(sFilterValue, sPropertyEDMTypeName) {
if (typeof sFilterValue == "string" && sFilterValue.charAt(0) == "'")
throw "Illegal property value starting with a quote";
switch (sPropertyEDMTypeName) {
case 'Edm.String':
return "'" + sFilterValue + "'";
case 'Edm.DateTime':
return "datetime'" + sFilterValue + "'";
case 'Edm.Guid':
return "guid'" + sFilterValue + "'";
case 'Edm.Time':
return "time'" + sFilterValue + "'";
case 'Edm.DateTimeOffset':
return "datetimeoffset'" + sFilterValue + "'";
default:
return sFilterValue;
}
},
/ * Old helpers that got replaced by robust functions provided by the UI5 ODataModel / * renderPropertyKeyValue : function ( sKeyValue sPropertyEDMTypeName ) { if ( typeof sKeyValue == string && sKeyValue . charAt ( 0 ) == ) throw Illegal property value starting with a quote ; switch ( sPropertyEDMTypeName ) { case Edm . String : return + sKeyValue + ; case Edm . DateTime : return datetime + sKeyValue + ; case Edm . Guid : return guid + sKeyValue + ; case Edm . Time : return time + sKeyValue + ; case Edm . DateTimeOffset : return datetimeoffset + sKeyValue + ; default : return sKeyValue ; } }
returns the label of the given name