I have a table with blob_content which are pdf documents.
It is easy to create a interactive report with download links for each row. But I am trying to do this differently.
I am displaying only the document name in my interactive report. The user clicks the document and is taken to page6 where I am displayed other details about the document and have a button "Download".
I tried to create a download link according to what is given in http://joelkallman.blogspot.se/2014/03/yet-another-post-how-to-link-to.html
I created application item, application process and a Dynamic Action (java script code) for the button where I have specified,
htp.p(APEX_UTIL.PREPARE_URL(p_url => 'f?p=' || :APP_ID || ':10:'|| :APP_SESSION
||'::NO::APPLICATION_PROCESS=GETDOCUMENT:::DOCID:' || :P6_PK_ID);
But this does nothing.
I know I am going wrong somewhere. I am unable to find any better help on Google in this area.
Can someone help?
htp.p
is not javascript code, and all your code does is print the URL directly. Perhaps you need to callwindow.open(...)
instead. – Jeffrey Kemp