Hi,
I have some issues to express my type information in XML views.
The JS view would look like:
new sap.m.Text({
text: {
path:"/number",
type: new sap.ui.model.type.Integer({groupingEnabled: true, groupingSeparator: '.'})
}
})
My current XML view looks like this:
<Text text="{path:'/number', type:'sap.ui.model.type.Integer', constraints:{groupingEnabled: true, groupingSeparator: '.'}}" />
or
<Text text="{path:'/number', type:'sap.ui.model.type.Integer({groupingEnabled: true, groupingSeparator: '.'})'}" />
or several other ideas, e.g. escpaing of the additional '.
But nothing worked. And I could not find any documentation of how it might work.
The diagnostic tool translates JS to XML, yes, but it ignores the complicated case. :-(
I could use a formatter to group myself, but there are several cases, where I need such complicated XML views.
E.g. if I want to use multiply paths as an array.
In my index.html I added data-sap-ui-xx-bindingSyntax="complex".
Hope you can help me out.
Thanks and bests
-Ben