on 03-30-2015 1:19 AM
How to pass input box values from one view to next view in Sapui5 ? please assist me.
Hi durai...
you simply use getcoreby id("of the textfield in the 2nd view").setText(input value)..
example:
var welcomeUser = sap.ui.getCore().byId("idoText1").setText("Welcome "+user);
out here: the "idoText1" is the id of the text field that is present on the 2nd page.
and user = is the input field present in the first page.
Hope it solves your issue.
regards
Dipankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1st view to 2nd view,
var oShell= sap.ui.getCore().byId("idShell");
var secondView= sap.ui.getCore().byId("idsecondView");
inputValue: sap.ui.getCore().byId('inputMain').getValue()
oShell.to(secondView, {inputNumb:inputValue});
2nd view init method(),
onInit: function() {
view.addEventDelegate({
onBeforeShow: function(evt) {
var idToRetrieve = evt.data.inputNumb;
inputNumb = idToRetrieve.getValue();
alert(inputNumb);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Use navigation and routing concept to write the application, where in you can pass the values from one view to another view using oRouter.navTo("viewName",{someName : value});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends upon the mechanism you are using to navigate between views. If you are using routing mechanism , i would suggest you to use data binding Concept.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.