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

Re: Format Timestamp in sap.m.Label does not working during binding

$
0
0

Hi Chandra,

 

when I put the followung code on a Page it works fine:

new sap.m.DateTimeInput({

  type : "Date",

  editable: false,

  value : {

  path : "{CHILD_TO_ACTIVITY/ACTIVITY_DATE/results/0/TIMESTAMP_FROM}",

  type : new sap.ui.model.type.Time({source: {pattern: "timestamp"}, style : "medium"})

  //new sap.ui.model.type.Date({source: {pattern: "YYYYMMddHHmmssSS"},style : "short"})

  }

  }),

 

 

The problem I got is still, when I put the code within a CustomList Item:

 

var template = new sap.m.ColumnListItem({

  type : "Navigation",

  unread : false,

  cells : [  

 

  new sap.m.DateTimeInput({

  type : "Date",

  editable: false,

  value : {

  path : "{CHILD_TO_ACTIVITY/ACTIVITY_DATE/results/0/TIMESTAMP_FROM}",

  type : new sap.ui.model.type.Time({source: {pattern: "timestamp"}, style : "medium"})

  //new sap.ui.model.type.Date({source: {pattern: "YYYYMMddHHmmssSS"},style : "short"})

  }

  }),

....

 

 

and try to bind the values against my model. This will return an empty value.

 

Any ideas, what I am doeing wrong? Or is this a bug in SAPUI5?

 

Kind regards

Jens


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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