cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Intent-based Navigation - semanticObjectAction annotation

RaminS
Active Participant
0 Likes
6,270

In my FE object page, I want to make a field clickable to navigate to a second app using Intent-Based Navigation.

My CDS view annotations are:

 

@Consumption.semanticObject: 'AccountingDocument'
@UI.identification: [{ 
    type: #FOR_INTENT_BASED_NAVIGATION, 
    semanticObjectAction: 'displayDocument', 
  }]

 

 

But when I click on the field, it brings up a list of available action links, one of which is the action that I want.

RaminS_0-1736956274399.png

I don't want to show the user the other links, I want it to navigate directly to the Intent specified by the annotations.

In the browser preview, it shows that the correct annotations are loaded:

RaminS_1-1736956358356.png

So why does it not navigate to the intended target instead of bringing up a list of actions?

Thanks

 

View Entire Topic
RaminS
Active Participant
0 Likes

Thank @Erol_CAGLAR for your suggestion. But Consumption.semanticObjectMapping does NOT exist for us.

Is it a special annotation for cloud only perhaps? Do you have a link to the documentation for it?

 

As SAP help clearly indicates semanticObject only accepts a string:

RaminS_0-1766955312960.png

https://help.sap.com/docs/ABAP_PLATFORM_BW4HANA/cc0c305d2fab47bd808adcad3ca7ee9d/d60c0bf6798a481fb74...