I wanted to know how to fetch the data using getText function and to display the data on another page using setText function, I am confused, where to put the syntax of getText() and getText().
BTW, I am using a button to redirect from the first page to second.
I came accross this syntax, but I am not sure, if it is okay or not..
sap.ui.getCore().byId("inp").getText();
sap.ui.getCore().byId("inp").setText();
could anyone guide me through it???