Quantcast
Channel: SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 789

Binding data from Odata function Import in SAPUI5 XML Views

$
0
0

Hi all,

 

Recently I had an requirement, wherein, I had to bind the data from my function imports in odata services to my controls in XML view.

However, most of the solutions i found had achieved the same by doing a "oModel.callFunction()" in their controllers.

I was able to find a solution and thought I would share it in a blog post here.

 

Here is the sample code

 

 

 

<MultiComboBox items="{ path:'/myFunctionImport', parameters: { custom: { 'param1': '\'value1\'' } } }">  <core:Item key="{Id}" text="{Text}"/></MultiComboBox>

 

 

Thanks,

Krishna


Viewing all articles
Browse latest Browse all 789

Trending Articles



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