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.

View Entire Topic
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.