Skip to Content

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

Navigation with navTo function when project namespace is provided


We are having Master-Detail Application wherein we want navigation from one page to another.

Currently there are two pages, master and detail. A new page has been created, let’s say ‘About’. Navigation has to be done from Detail page to About page.

To navigate, one button is there on Detail page, to which action has been assigned to open About page.

For navigation, we are using function “navTo”. But if application has been created with project namespace then “navTo” is not working somehow. Whereas, if “myNavToWithoutHash” function is used to navigate there, then it is working fine.

Giving example of one application – “BPXFioriMDNamespace”.

There are mainly 3 pages –, and

Two actions – OpenAbout and OpenAbout_myNavToWithoutHash (Former action is using navTo and later is using myNavToWithoutHash function to navigate)

And two buttons on – NavTo and NavToWithoutHash. OpenAbout action has been assigned to NavTo and the other action has been to NavToWithoutHash.

You can find navigation related code inside Detail.controller.js file. (126 to 134 lines)

Detail.view.xml file code:

index.html file code:

Could anyone please help us to know how to navigate with navTo function when projectNamespace is provided?

Thanks & Regards,

Rhythm Sharma

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