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

Data Binding from GW to UI5

$
0
0

Hello All -

 

I am facing an issue in binding data fetched from Gateway to an Input element (<select>....</select>).  As shown below, in my detail view, I have added an input element called "Company Code".  I need this drop down to be populated with the Company Codes fetched from gateway.

 

Detail View.PNG

 

Added the able input field using XML view (currenlty 1001 has been hardcoded - needs to be replaced with data fetched from gateway)

 

companycode.PNG

 

In Component.JS, I have written the following code to connect to gateway service:

 

gw.png

I do not know how to bind the data fetched from GW to my input element.  Appreciate if someone can help me getting this data attached.

 

Note: In Eclipse, I created a separate Gateway Starter Application Project to check if data is fetched successfully.  I was able to get the required data from GW.

 

Thanks,

Vijay


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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