cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori CrossNavigation stays blank

axitycesarfelce
Participant
0 Kudos

Hi all,

I have app A that wants to navigate to app B on Portal or Workzone when we click the link it creates the url correctly but stays white, no issue in console.

In app A the code is:

onPressNavContact: function (oEvent) { 
  var codContacto = oEvent
    .getSource()
    .getBindingContext()
    .getProperty("CodContacto");
  sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(
    function (oService) {
      oService
        .hrefForExternalAsync({
          target: { semanticObject: "contactos", action: "Display" },
          params: { codcontacto: codContacto },
        })
        .then(function (sHref) {});
      // Place sHref somewhere in the DOM oService.toExternal({ target: { shellHash: hash } }); }); }); }
    }
  );
}

The App B has the inbound configuration in the manifest

"crossNavigation": {
  "inbounds": {
    "ns-contactos-inbound": {
      "signature": {
        "parameters": {},
        "additionalParameters": "allowed"
      },
      "semanticObject": "contactos",
      "action": "Display",
      "title": "{{flpTitle}}",
      "subTitle": "{{flpSubtitle}}",
      "icon": "sap-icon://contacts"
    }
  }
},

What are we doing wrong, to have this behavior?

The App A is an CAP App with managed approuter, and App B, is a simple Fiori App, created with the SAP Fiori BAS template.

Thanks for the help!

regards,

Cesar

NOTE: I tested with a different App C to B and it works!

Accepted Solutions (0)

Answers (1)

Answers (1)

axitycesarfelce
Participant
0 Kudos

Hi,

we solved opening the app in new tab, We found this answer in blog
https://answers.sap.com/questions/12060816/opening-an-app-in-new-tab-using-cross-app-navigati.html

But is weird the behavior.

thanks!