Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Adding type information in XML views

$
0
0

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?


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>