cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass array values(from multiComboBox) in routing

janani_10
Explorer
0 Kudos

Hi,

I am trying to pass the values of selected items from multiComboBox to another view to bind it in a table. I am getting the selected values as

view1.controller.js code:

var selectedItems = [];
selectedItems = oEvent.getParameter("selectedItems"); 

oRouter.navTo("page2", { 
value : JSON.stringify(selectedItems) 
}

manifest.json code:

{
    "pattern": "page2/{value}",     
    "name": "page2",    
    "target": "page2"
    } 

view2.controller.js code:

 var output = JSON.parse(oEvent.getParameters("arguments").value);    
 alert(output); 

I am getting the error as

Uncaught TypeError: Converting circular structure to JSON

Can any one help me with this?

Thanks,

Janani

View Entire Topic
junwu
Active Contributor

just put it in model, no need to pass through url

former_member186734
Active Participant
0 Kudos

I agree! You can define the filters directly in the Odata model and the routed view will present the filtered data.

janani_10
Explorer

Hi,

It will be helpful if you refer me some blogs related to this.

Thanks,

Janani