Skip to Content
0
Former Member
Feb 14, 2014 at 10:13 AM

Is the model updated by formatter?

23 Views

Hi,

i have a huge, wired problem.

I uses a JSON Model to get data from SAP Backend.

All times/dates are store in a timestamp yyyyMMddkkmmss

To display them in some sap.m.Tables I use a ColumnListItem where I add

multible DateTimeInputs:

new sap.m.DateTimeInput({

editable: false,

value : {

path : "ACTIVITY_DATE/results/0/TIMESTAMP_FROM",

type : new sap.ui.model.type.DateTime({source: {pattern: "yyyyMMddkkmmss"}, pattern: "dd.MM.yyyy HH:mm"})

}

}),

When I open the first time my first screen everthing is correct.

When I navigate to an other screen, where I display similar data and go back to the first screen all HH and mm are set to "0".

Somehow the model data have been changed. Could this happen by a formatter or where should I search for the bug???

Jens