cancel
Showing results for 
Search instead for 
Did you mean: 

No reaction after calling oRouter.navTo

friendlycoder
Participant
0 Kudos

Hi all,
I have created a Business Configuration Maintenance Object app according to this tutorial https://developers.sap.com/tutorials/abap-environment-business-configuration-object.html.

To skip the single root entity page, I followed the step-by-step guide on the website https://community.sap.com/t5/technology-blogs-by-sap/how-to-create-a-fiori-elements-app-for-a-rap-bo.... Despite the adjustments, the navigation doesn't work; instead, it shows an empty page.

Calling the method `navTo` from the router object in the `component.js` file doesn't navigate to the desired path.

sap.ui.define(["sap/fe/core/AppComponent"], function (Component) {
"use strict";

return Component.extend("io.acme.sadsenderdetail.Component", {
metadata: {
manifest: "json",
},
init: function () {
Component.prototype.init.apply(this, arguments);
const oRouter = this.getRouter();
oRouter.navTo("SenderDetailAll", { key: "(1)" });
},
});
});

It doesn't append the path `SenderDetailAll` to the URL. By appending the path `SenderDetailAll(1)` manually to the URL https://port8080-workspaces.eu20.applicationstudio.cloud.sap/index.html#/SenderDetailAll(1), it works.

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

did you maintain SenderDetailAll in your manifest.json?

Answers (0)