I am using in my SAPUI5 application for metadata property binding a formatter.
It's returning a string, but the property needs a boolean, so I want to convert it. The problem is that the code of my formatter is not running. Did i forgot something?
var oInput = new sap.m.Input({
id: "oInput_" + column,
editable: {
path: "{inputModel>/#showcase/" + column + "/@sap:editable}",
formatter: function(v){
console.log(v);
if (v.includes("false")) {
return false;
} else {
return true;
}
}
}
});
question from:
https://stackoverflow.com/questions/65940163/formatter-for-metadata-property-binding-in-sapui5 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…