cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori click link to open new tab to view purchase requisition

jackyhjj_sn
Explorer
0 Kudos
1,468

Hi,
I am developing a custom app in Fiori.

There will be a table or a popover that show certain number of purchase requisition.
I have a requirement to have a hyperlink of Purchase Requisition Number and when click, it will open a new tab to view the details of the PR (something like ME53N).

Looking the solution in the internet and there is no any similar requirement. Maybe someone out there has ever done this before in Fiori ?
Thanks

View Entire Topic
Farooq
Advisor
Advisor
0 Kudos

Hello Jacky,

You can use an attribute target="_blank" in XML view to open any link in a new tab

Example :

XML View : <Link text="OPEN LINK" href="<URL>" target="_blank" />

Controller :

sap.m.URLHelper.redirect("<URL>", true)

second attribute in above snippet 'true' will open the provided link in new tab.

FYR :

Link: https://sapui5.hana.ondemand.com/#/api/sap.m.Link%23controlProperties

URLHelper: https://sapui5.hana.ondemand.com/#/api/sap.m.URLHelper%23methods/Summary

Hope this helps

Regards,

Farooq

jackyhjj_sn
Explorer
0 Kudos

Hi farooqkoppal
thanks for the response.

I understand how the hyperlink work, but is there any way to open the link of ME53 ?