Skip to Content

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,

Gabriel

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 16, 2015 at 03:28 PM

    Hi Gabriel,

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

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded