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!

URL generated by apex_page.get_url closes the popup

Luis Cabral2 hours ago — edited 2 hours ago

Hello

I'm using apex_page.get_url to generate a URL that calls an application process that downloads a file. This URL will be used in a link in a popup page, which should open the link in a new browser tab. The generated URL looks like this:

<a target="_blank" href="#action$a-dialog-close?tmpl=MODAL_DIALOG&amp;target=f?p=123:0:12345:APPLICATION_PROCESS=download_file...;isModal=true">Download</a>

However, despite the target="_blank", the current browser tab is replaced by the downloaded file, instead of opening a new tab. I guess it is because of the value #action$a-dialog-close specified in the href attribute.

The exact same functionality works perfectly in a normal page.

Any way around this?

Thanks

Luis

Comments
Post Details
Added 2 hours ago
1 comment
10 views