cancel
Showing results for 
Search instead for 
Did you mean: 

CDS View Annotations UI.Chart Intent Based Navigation

10-19-2021 3:20 PM
1237 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Hi All,

I have an object page with a section, which contains a chart. Now I want to add a button (as an action) to the chart toolbar, with an intent based navigation to another fiori app. The chart and the section and so on are created via Annotations in CDS Views.

I found the following in the SAP Help https://help.sap.com/viewer/468a97775123488ab3345a0c48cadd8f/202110.000/en-US/7d1fa8399f714cf6a657ac... and tried to implement it. The issue is, that the button is not visible in the chart toolbar. Below are the annotations I used.

@Consumption.semanticObject: 'CreditMemoRequest'
@UI.chart: [{
               qualifier: 'SalesChart',
               chartType: #COLUMN,
               dimensions: ['BillingDocYear'],
               title: 'Sales',
               measures: ['BillingDocAmount'],
               actions: [{type:#FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'manage', label: 'Test', requiresContext: true }]
        }]

Below the chart the selection contains an analytical table showing the sales. If I use the annotation to implement an action for the table, it works perfect.

@UI.lineItem: [{type:#FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'manage', label: 'Testbutton', requiresContext: true}]

I also tried to implement the button for the chart using local annotations and setting "Inline" and "Determining" to false. Without any success.

I hope somebody is able to help me.

Thanks in advance,

Regards,

Julia

0 Likes

Accepted Solutions (0)

Answers (0)