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

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

Hello DrSubhabaha Pal,

 

Thanks for your extensive Description this helped a lot for understanding your application structure.

I am not really sure about this as i´m not that familiar with how associations work in sapui5 but i think you could just try the following inside your handleUpdate method:

 

//give your object header in the xmlview an id first to make accessing it easier
var bnfpo = oView.byId("objectHeader").getBindingContext().getProperty("Bnfpo");
var banfn = oView.byId("objectHeader").getBindingContext().getProperty("Banfn");

As far as i understand the association Properties are injected into the entry so you should be able to read them through the getProperty() method.

 

with best regards

Florian


Viewing all articles
Browse latest Browse all 8538

Trending Articles



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