cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI CRM : Extended app to Extended app navigation

former_member25364
Participant
0 Kudos

Hello

I am facing the following problem :

1 - I have created a Fiori LaunchPad (FLP) sandbox to run the standard CRM Fiori apps (EHP2 SAPK-10001INUIX02CRM - I know it is old).

It works and I can navigate between the apps (SAPUI5 runtime 1.22.8).

2 - I have created extension projects for these apps and I am trying to simulate a app-to-app navigation between them in the different FLP sandbox from 1.

When I run the FLP (SAPUI5 runtime 1.28.43 at least) for the extension apps, I am facing the following error :

The extension apps are included in a webapp folder and are not at the root of the project as the standard apps.

I have set the FLP sandbox for the extension apps as explained in the blog sap-web-ide-app-to-app-navigation-in-flp-sandbox.

But I think the blog explanation is for custom apps not for extension apps.

Is anyone who has faced the same problem ?

Best regards

Emmanuel

Accepted Solutions (1)

Accepted Solutions (1)

former_member25364
Participant
0 Kudos

Hello.

I have found a solution to test the CRM extension projects in the webide fiori launchpad sandbox.

In the FLP sandbox folder, create a fioriSandboxConfig.json file with the following conditions:

- the extension project are called ZCRM_OPPRTNTY for the app CRM_OPPRTNTY and ZCRM_MYACCOUNTS for the app MY_ACCOUNTS

- the extension projects use the semantic object and action from the standard apps CRM_OPPRTNTY and CRM_MYACCOUNTS

{
    "applications": {
        "Opportunity-manageOpportunity": {
            "additionalInformation": "cus.crm.opportunity.ZCRM_OPPRTNTY",
            "applicationType": "URL",
            "url": "/orion/file/<account>$<username>-OrionContent/ZCRM_OPPRTNTY/webapp",
            "description": "My Opportunity App",
            "title": "My Opportunities"
        },
         "Account-MyAccounts": {
            "additionalInformation": "SAPUI5.Component=cus.crm.myaccounts.ZCRM_MYACCOUNTS",
            "applicationType": "URL",
            "url": "/orion/file/<account>$<username>-OrionContent/ZCRM_MYACCOUNTS/webapp",
            "description": "My Accounts App",
            "title": "My Accounts App"
        }
    }
}

In the FLP sandbox folder, create a neo-app.json file with the following conditions :

{
	"routes": [
		{
    		"path": "/sap/opu/odata",
    		"target": {
        		"type": "destination",
        		"name": "<destination name>",
        		"entryPath": "/sap/opu/odata"
    	        },
    		"description": "<destination name>"
    	        },
    	        {
    		"path": "/sap/bc/ui5_ui5",
    		"target": {
        		"type": "destination",
        		"name": "<destination name>",
        		"entryPath": "/sap/bc/ui5_ui5"
    	        },
    		"description": "<destination name>"
    	        },
		{
		"path": "/test-resources/sap/ushell/ZCRM_OPPRTNTY",
		"target": {
			"type": "application",
			"name": "ZCRM_OPPRTNTY"
		       }
		}, 
		{
		"path": "/ZCRM_OPPRTNTY",
		"target": {
			"type": "application",
			"name": "ZCRM_OPPRTNTY"		
			}
		},
		{
		"path": "/test-resources/sap/ushell/ZCRM_MYACCOUNTS",
		"target": {
			"type": "application",
			"name": "ZCRM_MYACCOUNTS"
			}
		}, 
		{
		"path": "/ZCRM_MYACCOUNTS",
		"target": {
			"type": "application",
			"name": "ZCRM_MYACCOUNTS"
			}
		},
		{
        	"path":"/orion",
        	"target":{
            	        "type":"service",
            	        "name":"orion"
                },
                "description":"Orion Service"
    	        },
		{
		"path": "/resources",
		"target": {
			"type": "service",
			"name": "sapui5",
			"entryPath": "/resources"
		},
		"description": "SAPUI5 Resources"
		}, 
		{
		"path": "/test-resources",
		"target": {
			"type": "service",
			"name": "sapui5",
			"entryPath": "/test-resources"
		},
		"description": "SAPUI5 Test Resources"
		}
	]
}

No change is needed in the file .project.json

For testing, you select the fioriSandboxConfig.json, right-click and Run as SAP Fiori Launchpad Sandbox.

And you must obtain :

And you can jump between the apps.

If nothing appears, set a different UI5 runtime in the Run Configuration (tested with runtime 1.28.43)

Regards

Emmanuel Da Costa

Answers (0)