0
votes

I have an OData model with some Edm.String fields which represents ABAP NUMC(9) or NUMC(10). All other Edm-Types (like Int32) ends with an error.

Can I now convert these Fields to Integer in SAPUI5? The content is i.e. 0000012345. If I use type in my binding, my text is empty. If I use it without type, the strings are output correctly.

new sap.m.Text({
  text: {
    path: "{statusData>AnzPdf}",
    type: new sap.ui.model.type.Integer()
  }
})
1

1 Answers

0
votes

Apply formatter as give in example to convert data from model to Integer format.