I want to call the function getCountdown with two parameters:
Solution for version < 1.61:
Register a model to view in init method
onInit: function() { // JSONModel required from "sap/ui/model/json/JSONModel"
var oModelConstants = new JSONModel(Object.freeze({ myConstant: 123 }));
oModelConstants.setDefaultBindingMode("OneTime");
this.getView().setModel(oModelConstants, "constants");
}
In XML view, assign your formatter with the following parts:
For version 1.61 and above, see answer 53609552.