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

Re: How to navigate master-detail view to master-detail view with routing

$
0
0

Hi Kishan,

 

Did you check the source code of Shopping Cart demo app? Shopping Cart


metadata: {  routing: {  config: {  routerClass: Router,  viewType: "XML",  viewPath: "view",  controlId: "splitApp",  transition: "slide",  bypassed: {  target: ["home" , "notFound"]  }  },  routes: [  {  pattern: "",  name: "home",  target: "home"  },  {  pattern: "category/{id}",  name: "category",  target: "categoryView"  },  {  pattern: "category/{id}/product/{productId}",  name: "product",  target: ["categoryView", "productView"]  },  {  pattern: "cart",  name: "cart",  target: "cart"  },  {  pattern: "product/{productId}",  name: "cartProduct",  target: ["home" , "productView"]  }  ],  targets: {  productView: {  viewName: "Product",  viewLevel: 3,  controlAggregation: "detailPages"  },  categoryView: {  viewName: "Category",  viewLevel: 2,  controlAggregation: "masterPages"  },  notFound: {  viewName: "NotFound",  viewLevel: 3,  controlAggregation: "detailPages"  },  welcome: {  viewName: "Welcome",  viewLevel: 0,  controlAggregation: "detailPages"  },  home: {  viewName: "Home",  viewLevel: 1,  controlAggregation: "masterPages"  },  cart: {  viewName: "Cart",  controlAggregation: "masterPages"  }  }  }  }

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 3229

Trending Articles