Skip to Content
0
Jan 08, 2014 at 07:04 PM

Adding type information in XML views

901 Views

With JS views it is possible to add type information to a field, for example:

oControl = new sap.ui.commons.TextField({
     value: {
          path:"/company/revenue",
          type: new sap.ui.model.type.Float({
               minFractionDigits: 2,
               maxFractionDigits: 2
          })
     }
})

See https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/BindingProperties.html

I've tried the same with XML views (according to https://sapui5.hana.ondemand.com/sdk/test-resources/sap/m/demokit/explored/index.html#/code/inputChecked ) without success


Please check my gist example: Binding problems with UI5 and XML views


Am I doing something wrong?