Skip to Content
1
Former Member
Aug 21, 2015 at 04:58 AM

how to fetch and display input field text from one page to another?

663 Views

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