In Oracle Apex 5 I want to open a page for printing. Because there is no top- and side menu (to safe space and ink) I want to open the page in a new tab.
As mentioned on this question I use javascript
and window.open
. But I have to use parameters and APEX requires a valid checksum.
So I filled a (hidden) field with
BEGIN
return APEX_UTIL.PREPARE_URL(
p_url => 'f?p=' || v('APP_ID') || ':310:'||v('APP_SESSION')||'::NO::P310_YEAR,P310_DEPT:'||v('P300_YEAR')||','||v('P300_DEPT'),
p_checksum_type => 'SESSION');
END;
and use a button with "redirect to URL"
javascript:var x=window.open($v('P300_URL'));
But every time I clicked on this button, a new tab opens (fine!) but I have to sign in again to my application in the new tab AND the old tab.
Why is my session killed?
After signin in, the URL seems to be escaped (%26amp%3Bcs%3D
instead of &cs=
).
I'm googling for hours, but noone seems to have this problem, or I am the problem myself.