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

Re: OData read filter and binding to view

$
0
0

The Text element is trying to access a model field that lies within the path /d/results within your JSON model. You cannot reach this relative path directly without reference to the /d/results path. In your view if you are using some container control within you display the Label and Text controls then try binding the container to the path /d/results in the controller like below:

 

//assuming that the container has an ID "cont1"
sap.ui.getCore().byId("cont1").bindElement("/d/results");

 

Now the Text control will be able to resolve the relative path (relative to /d/results) that you have bound it with.


Viewing all articles
Browse latest Browse all 2800

Trending Articles



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