Skip to Content
0
Apr 04, 2016 at 08:07 AM

Cross Application Navigation

225 Views

Hi experts,

How can we implement a cross application navigation?

This is the code I am trying to execute:

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");

oCrossAppNavigator.toExternal({

target:

{ semanticObject : "<SOME_VALUE>", action: "display" }

});

In console I get an error stating "Cannot find Container of undefined".

I have tried adding these line in the index.html before bootstrap

<script src="/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js"></script> <script src="resources/sap/ushell_abap/bootstrap/abap.js"></script>

What is it wrong that I am doing?

Thanks.