cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Elements DataFieldWithURL in separate window

former_member435529
Participant
0 Kudos

Hello,

I am using annotations DataFieldWithURL and the link is open up in the same window.

How can it be open in a separate window ?

Thanks,

Javier

gopalmishra673
Explorer
0 Kudos

Hi Javier,

Could you please explain the solution of this problem the way you achieved? I have same issue with dynamic link list card in Over View Page. Link is opening in same window.

gregorw
Active Contributor
0 Kudos

Ami Nakano filed an influencing request on this topic:

Option to open a cross navigation target app in a new tab

View Entire Topic
rahullohia
Product and Topic Expert
Product and Topic Expert

Hello,

The annotation 'datefieldwithurl' doesnt have an inbuilt property to force a new browser page. There are two ways you can achieve this.

1. If using annotations, return the 'url' like this-> |javascript:void( window.open('| && |{ url }| && |') )|

adding the javascript function to the final url will force the browser to open a new page.

2. If not using annotation, add an 'onclick' or 'onpress' event and then use 'sap.m.URLHelper.redirect(url, true)' in the handler

Thanks,

Rahul

former_member435529
Participant

Thanks for your inputs, Rahul.

I finally used annotations but attached link operation to that field.

former_member738409
Discoverer
0 Kudos

Hi Rahul,

I used first method working as expected! Thank you!