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