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...