I have a working solution with odata model v1 to display a Edm.Time in my xml view.
Now I am upgrading my model to version 2. Here now comes the problem. The same coding in XML view with the new model don“t show any data.
XML-View:
{
path:'modelV2>LastCommTime',
type: 'sap.ui.model.type.Time',
formatOptions: {
source : { pattern : '\'PT\'hh\'H\'mm\'M\'ss\'S\'' },
pattern : 'HH:mm:ss'
}
}
This code shows nothing.
If I delete the line type: 'sap.ui.model.type.Time',
it displays [object Object]