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

How to enable smart link with Action CDS view tile

Raghavendar
Explorer
0 Kudos
372

Hi,

I have requirement to display "Manage GL Account" App from my custom CDS based Fiori app.

as added semantic object @consumption.sematicobject: 'GLAccount' and UI.Lineitem.semanticObjectAction: "manage" but when i click on GL account but still i can see all actions when i click on GL account in App output.

Please guide me how to directly navigate to Manage GLAccount app.

Accepted Solutions (0)

Answers (2)

Answers (2)

Chuma
Active Contributor
0 Kudos

Hello @Raghavendar 

In addition to @Maciej__Galica  comment,

You cannot restrict the Smart Link popover to a single action. By design, it lists all target mappings for a semantic object
To navigate directly to the Manage G/L Account app, use intent-based navigation via DataFieldForIntentBasedNavigation instead of @Consumption.semanticObject.

Useful SAP Documentation References

Smart Link popover behaviour (lists all actions):

Intent-based navigation annotations:

Target app reference:

Chuma_0-1759946878097.png


Smart Link is a popover with an unlimited number of actions. Use DataFieldForIntentBasedNavigation with General Ledger Account/manage for a straightforward, one-click access to Manage G/L Account.

With kind regards

Chuma

Maciej__Galica
Explorer
0 Kudos

Hello @Raghavendar ,

In case you do not want to see long list of option when clicked on hyperlink you can always create a custom semantic object and map the target mapping(of Manage GL Account App) and use the custom semanticc object in your CDS view @Consumption.semanticobject: 'CustomSemanticObject'. This will directly navigate you to the target mapping configured. Please note Fiori works on Semantic Object/Action and its corresponding Target mappings.