Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

List item URL target open in new tab

RebeccaThompsonDec 27 2019 — edited Jan 2 2020

In my APEX application there is a list - and in this list are three items which when clicked need to open in a new tab. Currently the URL links work, except the documents open in the same tab.

Among links to other pages in the application, there are also links these links to one HTML and two PDF documents. These are kept on the DB server for the APEX schema.

The URL target for the HTML document is...

&GBL_SERVER.&GBL_IMAGEPATH.mcs_faq.htm

URL targets for the PDF documents are...

&GBL_SERVER.&GBL_IMAGEPATH.PermitFees.pdf

&GBL_SERVER.&GBL_IMAGEPATH.Map14ft6in.pdf

All these URL targets use two different shared component Application Items, which are set with an Application Process - creating global items used in the URL link. These will change dynamically depending if you are on the development, test, or production server.

Have tried changing the URL target by adding JavaScript...

javascript:window.open("&GBL_SERVER.&GBL_IMAGEPATH.mcs_faq.htm.","_blank")

Have also tried going to the "User Defined Attributes" of the list item and adding... target="_blank"

Nothing I have done appears to be working. Perhaps the JavaScript syntax is not quite correct? Are there any other suggestions which I am not seeing?

Thank you!

This post has been answered by RebeccaThompson on Jan 2 2020
Jump to Answer
Comments
Post Details
Added on Dec 27 2019
5 comments
8,325 views