4

Dynamic SemanticObject for Intent Based Navigation... - SAP Community

 2 weeks ago
source link: https://community.sap.com/t5/technology-q-a/dynamic-semanticobject-for-intent-based-navigation-in-fiori-list-report/qaq-p/12670691
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.

Dynamic SemanticObject for Intent Based Navigation in Fiori List Report

imbhavik

Discoverer

on

‎02-23-2023

I have Fiori List Report based on the CDS view and annotations. I have added below annotations for the intent based navigation as well.

@Consumption.semanticObject: 'SemanticObjectName'

@UI.lineItem: [ { position: 10, label: 'Document Number'},

{type: #FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'display'}]

key DocumentNo

It works fine as I have hardcoded the semanticObject name in the annotation.

However, in my use case, I need to use the SemanticObject name from one of the fields in the CDS view as each record could have different semanticObject and action.

So, instead of hardcoding the name, how can I pass from the element within the CDS view?

If this can't be achieved through CDS view annotations, my another option would be to add custom code in List Report application in the controller.

For this, I need to know the event name which is being triggered when user clicks on the number ( which is formatted with the link for navigation due to the above annotations). If we know the event and if I know how to extend that event, I can put together a code to navigate to specific intent by reading the table fields and generating the correct intent and action.

Let me know if any one have any ideas or directions in which I can go to resolve this.

Thank you,

Bhavik


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK