Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: How to use formatter function not defined in own controller (1.30 sap.ui.define)

$
0
0

For anyone else interested in the solution...here it is:

 

SAPUI5 SDK - Demo Kit

 

sap.ui.define([  "sap/ui/core/mvc/Controller",  "sap/ui/model/json/JSONModel",  "sap/ui/demo/wt/model/formatter"
], function (Controller, JSONModel, formatter) {  "use strict";  return Controller.extend("sap.ui.demo.wt.controller.InvoiceList", {  formatter: formatter,      onInit : function () {  }  });
});

 

 

<attributes><ObjectAttribute text="{
 path: 'invoice>Status',
 formatter: '.formatter.statusText'
 }"/></attributes>

 


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>