Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Question on UI5 router

Dear expert,

I saw the demo sap.ui.demo.tdg using the router to  transport parameters:

var bReplace = ? false : true;
this.getRouter().navTo("product", {
from: "master",
product: oItem.getBindingContext().getPath().substr(1),
tab: this.sTab || "supplier"
}, bReplace);

I used the similar code in my App:

"Map",{from: "Detail", latitude: latitude, contextPath: cPath, longitude: longitude}, true


however I tried to get it in another view:

sap.ui.core.UIComponent.getRouterFor(this).attachRouteMatched(this.test, this);

test: function(oEvent){
var oParameters = oEvent.getParameters();
this.latitude = oEvent.getParameter("arguments").latitude;

the parameters of arguments only contain with contextPath, the other value like latitude/longitude could not get.

I didn't know what is the reason, my current UI5 version is 1.24.1.



Former Member
Not what you were looking for? View more on this topic or Ask a question