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

navigation from a Tile in a tileContainer

$
0
0

Hi,

 

I try to navigate from a tile to a detail page.

 

In the controller I have wrote:

 

onTilePressed: function(oEvent) {
//get ID of selected tile:
var res = oEvent.mParameters.id.split("__tile");
var guid = this.oParent.oParent.oParent.oController.table[res[1]];
this.oParent.oParent.oParent.oController._oRouter.navTo("details", {
from: "main",
entity: "AppointmentSet(guid'" + guid + "')",
tab: null
});
}

 

My navigation path in the Component.js:

 

routes: [{

  pattern: "",

  name: "main",

  view: "Master"

  },

  {

  name: "details",

  view: "Details",

  pattern: "{entity}/details"

  },

  {

  name: "contacts",

  view: "Contacts",

  pattern: "{entity}/contacts"

  },

  {

  name: "accounts",

  view: "Accounts",

  pattern: "{entity}/accounts"

  },

  {

  name: "accountDetails",

  view: "AccountDetails",

  pattern: "{entity}/accountDetails"

  }

  ]

 

but it doesn't work...


Viewing all articles
Browse latest Browse all 2806

Trending Articles



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