cancel
Showing results for 
Search instead for 
Did you mean: 

Using Cross Application Navigation and at second call i get the error duplicated id

moser1
Discoverer
0 Kudos

Hi all

I have implemented the cross application navigation funtionality for jumping to an other application within the filir launchpad.

The first time it works fine including patternMatched stuff.

If i call the functionality the second time i get the error about duplicated id's of the called application. Is there a posiibility to avoid this.

I call the application like this:

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
if (!this.sEditTechObjAttrHash) {
  this.sEditTechObjAttrHash = (oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({
    target: {
	semanticObject: "BahnInfraTechObjAttr",
	action: "change"
    }
  })) || ""; // generate the Hash to display a Supplier
  this.sEditTechObjAttrHash +=  "&/techObjId/" + "1234" + "_" + "3333222";
}

oCrossAppNavigator.toExternal({
  target: {
	shellHash: this.sEditTechObjAttrHash
  }
});

For getting back to the calling application i use the back functionality of my page with following code:

onNavBack: function() {
  sap.ushell.Container.getService("CrossApplicationNavigation").backToPreviousApp();
},

Kind Regards

Pascal

Accepted Solutions (0)

Answers (3)

Answers (3)

ralfhasemann
Discoverer
0 Kudos

Was there ever a solution for this?

... facing exactly the same problem now....

moser1
Discoverer
0 Kudos

Hi Venkatesh

There is not realy much information in the error

20-03-2018-16-02-26.png

Kind Regards

Pascal

venkatesh298
Explorer
0 Kudos

Can you paste the screenshot/ share the exact console error?