I am on my way building a Fiori
like App using SAPUI5
. I have successfully built the Master
page, and on item click I set the context and navigate to Detail
page.
The context path from Master page is something like "/SUPPLIER("NAME")". The function in App.controoler.js
is as follows:
handleListItemPress : function (evt) {
var context = evt.getSource().getBindingContext();
this.nav.to("Detail", context);
But I would like to know how can I access this context
in the deatil
page. I need this because I need to use $expand
to build the url and bind the items to a table.
Any suggestions would be highly appreciated.
Thanks