I have a page with a Dynamic SQL Region that generates several large blocks of HTML. In the SQL code for the region, I have included:
'<a name="'||P1_ID||'">'
which yields a series of anchor tags that look like:
<a name="1">, <a name="2">...
This all works fine. I then have a "Table of Contents" Report Region at the top of the page that lists all of the dynamically generated blocks and I am trying to create a linked column using
'<a href="#'||P1_ID||'">'
to jump to a particular block. The problem I'm running into is that APEX automatically prepends the domain path (http://apexserver/pls/apex/) to any URL that is not fully qualified. So, instead of getting
<a href="#1">
I am getting
http://apexserver/pls/apex/f?p=260:54:1540498514490201:::::#1
As my link. How do I get APEX to only include the anchor tag without prepending the URL path so I can jump to a location on the same page? Or, if you have an idea for a better way of achieving this, I'm all ears.
Thanks,
Jeff