Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

Pass object, array or multiple values to another view

$
0
0

Hello,

 

I would like to ask you how to pass multiple values to another view. Right now I can handle it with just one value that looks like this:

 

Manifest:

 

"routes": [  {  "pattern": "list/{myvalue}",                    "name": "list",                    "target": "list"  }  ]

Controller from first view:

this.getRouter().navTo("list", {  myvalue: "123"  });

Controller from second view:

onInit: function() {       this.getRouter().getRoute("list").attachPatternMatched(this._onBindDataToTable, this);  },  _onBindDataToTable: function(oEvent) {     var sObjectId = oEvent.getParameter("arguments").myvalue;
}

 

But as mentioned I'm passing only one string value.

 

1. How can I pass multiple values?

2. When I pass a string, it's working ok. But this doesn't count for passing objects or arrays. How can you pass arrays or objects to the second view?

 

Please with code examples. Thank you.


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>