This content has been marked as final. Show 2 replies
Spooky wrote:That is the expected behaviour. Have a look at the examples in the documentation - note the description for the main "p_url" parameter (bold is my emphasis):
I am using
in PL/SQL region to make dynamic links to pages in my app.
htp.p('<a href = "link" >title</a>');
How can I write apex URL into href tag to just go on apllication page, let's say 21?
I tried with apex_util.prepare_url:
But it generates "f?p=0:12::::::" link
htp.p('<a hrefff = "' || apex_util.prepare_url('f?p=&APP_ID.:21:&APP_SESSION.::::') ||'">link name</a>');
p_url An f?p relative URL with all substitutions resolved
This means you have to substitute the values in the code itself, rather than passing references (if you want to use prepare_url, that is).