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

Re: SAP UI5 design for mobile and integrating with oData web services

$
0
0

Hi Rajeshwari,

 

 

 

Here is the chunk of code to take a value from one view to another

 

press:function(oEvent)

                  {

  var oContext = oEvent.getSource().getBindingContext();

      

                 var xCore = sap.ui.getCore();

                 var id_inp= xCore.byId("<Id of ur input field>");    

                                                  

                 var value01=oContext.getProperty("<Id of the field from where ur taking ur value from>");

                 var params1 = {param1: value01};

                                

                 id_inp.setValue(value01); // here u r setting the value to an input field(in this case)

   

 

 

app.back();

              
                
                                }

                })

 

You should add this code in the action( PRESS)  of your navigation button ( I.e; back navigation OR the button you are using to navigate to another page )

 

 

Ragards,

Prathik


Viewing all articles
Browse latest Browse all 8975

Trending Articles



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