[Solved] How to format “MM/yyyy” pattern to locale-dependent ” / yyyy” in SAPUI5?

Try with: <Text text=”{ path: ‘Period’, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: { pattern: ‘MM/yyyy’ } } }” /> Here is a working demo (Click on Run code snippet): sap.ui.getCore().attachInit(() => sap.ui.require([ “sap/ui/core/Fragment”, ], Fragment => Fragment.load({ definition: `<Text xmlns=”sap.m” text=”{ value: ’12/2019′, type: ‘sap.ui.model.type.Date’, formatOptions: { pattern: ‘MMM / yyyy’, source: … Read more

[Solved] Converting ODataModel into JSON Model

As your code seems really unclear, here’s a pointer on how you could implement it: You read the OData response into a JSONModel: var oModel2 = new sap.ui.odata.ODataModel(); var oODataJSONModelDLSet = new sap.ui.json.JSONModel(); this.getView().setModel(oODataJSONModelDLSet, “jsonmodel”); // etc oModel2.read(“/SEARCH_DLSet” + filterString, null, null, false, function (oData, oResponse) { oODataJSONModelDLSet.setData({ DLSet: oData }); }); …you then bind … Read more