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

Re: How to pass a value from one view to another using a button?

$
0
0

var input = new sap.m.Input("inp",{

                maxLength:20,

                width:"30%",

})

 

var button = new sap.m.Button({

                text: "Button",

           

                 press: function()

                  {

                    

                      app.to(page1);

var oFieldValue1 = sap.ui.getCore().byId("inp").getValue();

                  sap.ui.getCore().byId("i4").setValue(oFieldValue1);

}

 

 

This works for me!!!


Viewing all articles
Browse latest Browse all 3576

Trending Articles



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