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

Intent-based Navigation - semanticObjectAction annotation

RaminS
Active Participant
0 Likes
6,214

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
satishcsehitk
Explorer
0 Likes

Hi @RaminS @ I am probably too late and you might have already resolved this. What worked for me is putting all the properties in one element of UI.lineitem instead of putting 2 elements in it.

This works correctly and it opens a unique target directly without the popover

@UI           : {
      lineItem      : [{position: 10, importance: #HIGH, type: #WITH_INTENT_BASED_NAVIGATION, semanticObjectAction: 'display'}],
      selectionField: [{position: 70}]
    }

This doesnt work if you want a unique target and shows a popover

 @UI           : {
      lineItem      : [{position: 10, importance: #HIGH},{ type: #WITH_INTENT_BASED_NAVIGATION, semanticObjectAction: 'display'}],
      selectionField: [{position: 70}]
    }

  Probably this is why you were seeing 2 columns in one of your examples.