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

Re: SAP UI5 Code Problem for reading XML View input field in View Controller (Error "Can not call method 'GetValue' of Undefined" coming)

$
0
0

It is difficult to give an advice here as i don´t now how your model is structured. Can you pls give an overview of your Model Datastructure and how you use the two required Fields? Is the corresponding Entry in the Model bound to a Control?

 

Basically you need the specific BindingContext of the Entry which you want to use.

 

The simplest approach to read the required Fields would be to get the Control which the corresponding Entry is bound to and use:

 

var property = oControl.getBindingContext().getProperty("yourProperty");

with best regards

Florian


Viewing all articles
Browse latest Browse all 9146

Trending Articles



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