htmloracleoracle-apexoracle-apex-18.2

Adding html target attribute to APEX tree link


I use a tree for navigation in an Oracle APEX app, and use the "Link Column" setting for navigation.

Although, I would like to use the <a> tag attributes (target="_blank", for instance). The Link column only sets the href attribute to the link.

I would like to use another column in my table to set it as the target or other tags.


Solution

  • The link attributes on a tree don't support the target attribute. If you want the link to open a new window/tab you can change the link to run javascript to open the target. Set Target Type = URL, and set the URL to:

    javascript:window.open("...link to page...","_blank")
    

    e.g. if your query has a column called LINK_URL:

    javascript:window.open("&LINK_URL.","_blank")