Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8526

SAPUI - XML View - complex type information

$
0
0

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


Viewing all articles
Browse latest Browse all 8526

Trending Articles



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