cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation to object page issue in BTP Cloud Foundry Notifications service

ankurbabu
Explorer

Dear SAP Launchpad Service experts,

Using the below documentation, we are able to generate notifications on BTP Cloud Foundry Fiori Launchpad service.

https://help.sap.com/viewer/8c8e1958338140699bd4811b37b82ece/Cloud/en-US/fe40c015d2b24487945f4b40ed8...

However, we are facing below issues while using the functionality which is a blocker for us:

we are facing issues during navigation after clicking on Notifications. We have a Fiori application with Worklist-Object page template and on click of notification we would like to navigate to the Object page directly but it is not working.

When we use the app (without clicking on notification) and go to object page after clicking an item on worklist table, it navigates to URL (which is expected routing behavior and works fine):

https://xxx-site.launchpad.cfapps.xx.hana.ondemand.com/site/yyyy-dev#requests-display?&/Requests/10000472

But when we click on notification and try to navigate, the url is generated as (which does not work):

https://xxx-site.launchpad.cfapps.xx.hana.ondemand.com/site/yyyy-dev#requests-display?Requests=10000472

The code which we have used here for navigation (with NavigationTargetAction, NavigationTargetObject andTargetParameters properties):

function createNotification({ requestID, notificationType, notificationTypeVersion, recipients }) {

    return {
        OriginId: "request-backend",
        NotificationTypeKey: notificationType,
        NotificationTypeVersion: notificationTypeVersion,
        NavigationTargetAction: "display",
        NavigationTargetObject: "requests",
        Priority: "Neutral",
        ProviderId: "",
        ActorId: "",
        ActorType: "Requestor",
        ActorDisplayText: "",
        ActorImageURL: "",
        Properties: [{
            Key: "requestID",
            Language: "en",
            Value: requestID,
            Type: "String",
            IsSensitive: false
        }
        ],
        Recipients: recipients.map(recipient => ({
            RecipientId: recipient
        })),
        TargetParameters : [
            {
                Key : "Requests",
                Value : '10000472'
            }
        ]
    }
}

And code in manifest.json file for routing is:

"routes": [ { "name": "Master", "pattern": "", "target": "master" },

{ "name": "Detail", "pattern": "Requests/{request}", "target": "detail" }],

Could you please help in explaining how to define the Target and navigation parameters correctly for Notifications?

ramya.vasanth

krishnan-jr
Explorer
0 Kudos

Hi ankurbabu129 ,
Got any solution for this?

Accepted Solutions (0)

Answers (0)