Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Transfering string value from xml-view into variable in controller

Hello experts,

At the moment of pressing the second TabFilter, the input value present in the first tabfilter ("Value_1") should be saved in controller´s variable "Glob_P".

After reading the correct answer from Florian Hafner  in this post, I tried to implement that code in controller:

"var oView = this.getView();

Glob_P = oView.byId('TV_1').getValue();"

but it did not worked (I believe I am still missing to give the correct reference of the view). I have also tried with the proposal from Nagarajan Kumarappan in his blog. Still I am not obtaining the result. Here are my two attempts:

JS Bin - Collaborative JavaScript Debugging

What am I missing? please help. I thank you for your support,



Hi Gabriel,

this.getView().byId("TV_1") should work fine. JSBin Edited, please check: JS Bin - Collaborative JavaScript Debugging


Sai Vellanki.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question