on 02-23-2023 9:39 PM
Hi,
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
Hi Bhavik,
that seems solved in the meantime, I needed this feature and it is working in my case now:
Here the relevant part of annotations.xml:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
Great to hear that the feature is working for you now! I'd love to learn more about your implementation of dynamic SemanticObject for Intent-Based Navigation in Fiori List Report. Understanding your approach and the specifics of how you achieved this dynamic functionality would be really insightful. Could you provide more details on how you set up the dynamic SemanticObject and Action for different entries in the table/list? I'm also currently working on a task that involves implementing a similar feature: Dynamic SemanticObject for Intent Based Navigation in a Fiori List Report within the OData v4 RAP framework.
Best Regards,
Ishita
Hi Michael,
Sorry for not getting back to you. I have been diverted to other project and could not look into this. However, I have started looking into this once again.
Glad that you could achieve it at your end. Can you please provide more details on the local annotations which you mentioned and how you can integrate when user clicks on the link on one of the fields from the table?
Thank you,
Bhavik
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.