2025 Jan 15 2:48 PM - edited 2025 Jan 15 3:54 PM
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.
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:
So why does it not navigate to the intended target instead of bringing up a list of actions?
Thanks
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.