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!!!