cancel
Showing results for 
Search instead for 
Did you mean: 

Is the model updated by formatter?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you post the code,how you set the model and what you do during naviagation, binding model to control ?

Former Member
0 Kudos

Found it!!!!

model.setDefaultBindingMode(sap.ui.model.BindingMode.OneTime);

Fixed it!!!

Jens

Answers (0)