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

How to get ComboBox's selected item to detail page?

$
0
0

Hi All,

 

I have created Master Detail demo app,in which I want to get comobox's item to detail page.I have done this thing with JSView but not able to do in XMLView.

 

Master View

 

<ComboBox id="combo1" selectionChange="test">

  

  </ComboBox>

 

Master Controller


test : function(){

alert(this.byId("combo1").getSelectedItem().getText());

}

 

I am getting Alert value with selected item.But if I write in detail page's controller as below I am not getting value.

 

onInit : function() {

alert(sap.ui.getCore().byId("combo1").getSelectedItem().getText());

}

 

Any clue to solve this problem??

Help would be appreciated.

 

Regards,

Zalak Dalal


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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