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

Re: How to reference control element in formatter after switch to sap.ui.define

$
0
0

Maybe an example will help...

 

In your formatter you are defining the use of "sap/ui/core/format/DateFormat" and setting it to a variable "DateFormat" which is available to your class and can be used as

 

cashDiscountState:  function (date) { 

     var test = DateFormat.calculateWeekNumber(date);

     ...

}

 

Regards,

Jamie

SAP - Technology RIG


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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