on 2017 Mar 28 4:09 PM
Hi ,
I'm using the following code to navigate from one view to another.
How do i pass data using this and how to receive it in the next view
this.getRouter().getTargets().display("view2");
Hi,
Please check the below reference code:
View 1:
this.getRouter().getTargets().display("targetName",{
param1 :"test1"});
View 2 init code:
oTarget = oRouter.getTarget("targetName");
oTarget.attachDisplay(function(oEvent){
var oPassedData = oEvent.getParameter("data"); // you will get data here
},this);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mahesh , its working
User | Count |
---|---|
79 | |
11 | |
10 | |
8 | |
7 | |
6 | |
5 | |
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.