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