cancel
Showing results for 
Search instead for 
Did you mean: 

Open hyperlink in new tab instead in same window, added in SAP RAP report using custom entity

mayurespatil11
Explorer
0 Kudos
239

Fiori report is generated using "define custom entity" approach and exposed to Fiori launchpad using service definition and service binding.

In report output, for Billing document number, hyperlink should be enabled and on click should be navigated to Fiori app "Display Billing Document".

This is achieved using below annotations:

mayurespatil11_0-1726823662621.png

@Consumption.semanticObject: 'BillingDocument'
@ui.lineItem : [ { position: 10, label: 'Billing Document'},
{type : #FOR_INTENT_BASED_NAVIGATION, semanticObjectAction: 'display'}]
key BillingDoc : vbeln;

Hyperlink is working fine but opening in same window, but as per business requirement, we need to open this in new tab. Can someone suggest how to achieve this.

 

junwu
Active Contributor
0 Kudos
by doing some coding, you achieve it.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor

There is hope for the future. In the OData @ SAP - Vocabularies UI Vocabulary you can already find for DataFieldWithUrl with the possibility to annotate URL with LinkTarget. But I think it's currently not supported in RAP and also not in Fiori Elements.

mayurespatil11
Explorer
0 Kudos
Thanks Gregorw for this information, will check in upcoming months if this feature is supported in RAP.