cancel
Showing results for 
Search instead for 
Did you mean: 

How to Navigate back to Fiori Framework from a Fiori Application

former_member254395
Active Participant
0 Kudos

Hi Experts,

We are using mobile portal for our client. We incorporated few custom fiori applications on the portal. I have a scenario like I need to navigate back to the landing page of the mobile portal (not fiori launch pad.) from one of the application.

Because of some reason, the below part of the code is not working on my case on mobile portal.

window.history.go(-1);


The code bellow will take us back to the launch pad. But I want to navigate back to the fiori framework page of the mobile portal(Thats the landing page here).

sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
  target
: {
  shellHash
: "#"
  
}
});


DO we have any such code for the mobile portal fiori framework navigation...?


Please advise me...


Rabin D

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

don't know what u are talking.....

former_member254395
Active Participant
0 Kudos

HI Jun Wu,

Thanks for the quick response...

My question is .. is there any way to navigate back to to the mobile portal home page by coding.

The code I mentioned above is taking me to the fiori launch pad of the gateway system .

However I want to navigate to the Mobile portal home page. There is home button which will do the same. But here I am looking the option to do via coding.

Pls let me know incase i am not clean again...

Thanks

Rabin D

former_member193577
Active Contributor
0 Kudos

Hi,

I assume you are running Fiori Framework Page on the portal, running a Fiori iView (gateway), yes?

then the Fiori iView is running within an IFrame (using AI).

If your code is in this iframe , you can try running the code on the parent iframe , or top.

parent.sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
  target
: {
  shellHash
: "#"
  
}
});



former_member254395
Active Participant
0 Kudos

Hi Tai Haviv

Yes, you are  correct.

Sure, let me try the code and update here....!!!

Thanks & Regards

Rabin D

junwu
Active Contributor
0 Kudos

what is the mobile home page?

former_member254395
Active Participant
0 Kudos

Hi Jun Wu,

Please refer Tai Haviv  answer above.

Answers (0)