cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements Internal Navigation

brenda_oalves
Explorer
0 Kudos

Hello everyone!

In a Fiori Elements application I'm trying to navigate to an ObjectPage by clicking on the button and I am getting this error in the console.

brenda_oalves_5-1714489833708.png

brenda_oalves_6-1714489895197.png

brenda_oalves_7-1714489921964.png

Could anyone tell me what I'm doing wrong?

 

Best regards,
Brenda Alves.

Accepted Solutions (1)

Accepted Solutions (1)

arunbharathi
Employee
Employee

Hi,

Please use the navigateInternal method from the ExtensionAPI NavigationController (same as the commented code).

https://sapui5.hana.ondemand.com/#/api/sap.suite.ui.generic.template.extensionAPI.NavigationControll...

Now regarding the parameters , the first parameter can be the context object (Apuracoes) and the second is an object where the navigation property information (to_apuraceos) can be passed.

var oApi = this.extensionAPI;
var oContext = //create a new context 
var oNavController = oApi.getNavigationController();
var oNavInfo = {
	navigationProperty: "to_NavProperty"
};
oNavController.navigateInternal(oContext, oNavInfo);

 

Thanks,

Arun

brenda_oalves
Explorer
0 Kudos
Thanks for the response and solution. It worked.

Answers (1)

Answers (1)

Fabrice
Active Participant
0 Kudos

Hi,

can you post your routing configuration (config, target and routes) from manifest.json file?

thanks.

Best regards,

Fabrice

brenda_oalves
Explorer
0 Kudos
Hi, the routing configuration is empty, I don't know how to implement it using Fiori Elements. Do you have any example?
Fabrice
Active Participant
0 Kudos

Hi,

maybe this documentation can help you: Configuring Internal Navigation - Documentation - Demo Kit - SAPUI5 SDK
But do you know where "keys1" come from ?
Is that defined in the EntitySet Apuracoes?