3

App with multiple intents on managed launchpad

 2 weeks ago
source link: https://community.sap.com/t5/technology-q-a/app-with-multiple-intents-on-managed-launchpad/qaq-p/12444680
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

App with multiple intents on managed launchpad

carlonnheim

Participant

on

‎05-01-2021

I have an app with multiple inbound intents which we need to appear on the BTP managed launchpad.

We have this in the manifest.json:

        "crossNavigation": {
            "inbounds": {
                "projects": {
                    "semanticObject": "Project",
                    "action": "display",
                    "icon": "sap-icon://gantt-bars",
                    "title": "{{projectTitle}}",
                    "subTitle": "{{projectSubTitle}}",
                    "info": "{{projectDescription}}"
                },
                "tasklist": {
                    "semanticObject": "Tasklist",
                    "action": "display",
                    "icon": "sap-icon://activities",
                    "title": "{{taskListTitle}}",
                    "subTitle": "{{taskListSubTitle}}",
                    "info": "{{appDescription}}"
                }
            }
        }

In a launchpad module we would have something like this:

			"payload": {
				"viz": [{
					"id": "my.ns.myapp-1",
					"appId": "my.ns.myapp",
					"vizId": "Project-display"
				}, {
					"id": "my.ns.myapp-2",
					"appId": "my.ns.myapp",
					"vizId": "Tasklist-display"
				}]
			}<br>

But the requirement is to use the managed Launchpad service (i.e. I do not have a CommonDataModel.json). When I load the app to the managed repository I get one app for the first intent - how do I get the second intent to show up as a tile on the managed launchpad?

Also, what is the proper way to pick up which intent has fired in order to route the app into the right view?

Thanks in advance!

//Carl


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK