cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation from standard Fiori apps to a custom Fiori elements app

SachinArtani
Participant
0 Kudos

Hello,

We have a requirement in the Fiori apps - Manage Credit Accounts > Credit Segments and in the Manage Credit Limit Requests.

We have added a Business Partner field in the app by creating an extend view of standard BO C_CRDTMGMTACCOUNTTP and C_CRDTLIMITREQUESTTP. We have annotated the field with WITH_INTENT_BASED_NAVIGATION and kept semantic object as BusinessPartner to navigate the user to a custom Fiori element app which will show data from custom tables based on the business partner and credit segment.

The solution that we need is that when the user navigates from app Manage Credit Accounts to the custom app, the custom app must not allow CUD operations, but when the user navigates from Manage Credit Limit Requests to the custom app, he should be able to do CUD operations.

The exposed BO of custom app is not a Custom CDS entity, but a projection of a root view fetching data from custom Z tables. We have deployed the custom app and also created tile and target mapping to make it visible in the launchpad.

How can we achieve this? Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
Active Contributor

not sure if I fully get it but you can try to make two tiles for the custom app, each with his unique semantic object and action. Based on the hash (semantic object and action) you’ll know where the navigation is coming from and dynamically allow certain actions or not

SachinArtani
Participant
0 Kudos

Hi Wouter, Thanks for the response. I had this in mind to keep two tiles with different hash, but I am troubling with the next part on where can I write the logic in my custom app to make CUD operations enable or disable by reading the hash from URL. If there's any reference document you could help me with.

WouterLemaire
Active Contributor
0 Kudos

you can use the following function of the approuter to get the hash


this.getRouter().getHashChanger().getHash()

you can implement this in the routematched fun
SachinArtani
Participant
0 Kudos

The custom app is RAP based which I have deployed. I know how to do navigation in UI5, but is it possible without UI5 changes?

WouterLemaire
Active Contributor
0 Kudos

You'll have to make changes in UI5...

SachinArtani
Participant
0 Kudos

I took time to find anything with RAP but failed. Even checked with SAP, but seems there is nothing which could help except to work in UI5 to make the navigation work. Thanks for your comments!

Answers (0)