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

Re: Data Binding between two views

$
0
0

Hi sowmya,

 

You can get the value of the first view textbox by,

 

this.getView('view1Name').byId('view1textBoxID').getText();

 

Assign the value to your Second View's text box in the onInit() method of  view 2 controller.

 

this.getView().byId('view2textBoxID').setText( this.getView('view1Name').byId('view1textBoxID').getText() );

 

Regards

Sakthivel


Viewing all articles
Browse latest Browse all 9182

Trending Articles



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