Displaying PDF file which is placed on application server through forms 6i by using web.show_documen [message #628095] |
Thu, 20 November 2014 03:08  |
 |
krr_apps
Messages: 5 Registered: November 2014
|
Junior Member |
|
|
Hi All,
I'm facing an issue for accessing the PDF file placed in application server through oracle forms 6i. I'm using web.show_document to call that PDF. but i could not achieved it.
i read some threads in the same forum, that i have to add the virtual path in forms.conf file. but in 6i developer sute i count find any file with that name. it has only formsweb.cfg. in this file i don't know how to add virtual path with alias syntax.
can anyone help me on this please?
or else is there any other way to access the PDF?
thanks in advance.
Rama.
[EDITED by LF: fixed topic title typo]
[Updated on: Thu, 20 November 2014 04:22] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: Displaying PDF file which is placed on application server through forms 6i by using web.show_documen [message #628183 is a reply to message #628180] |
Fri, 21 November 2014 00:35   |
 |
krr_apps
Messages: 5 Registered: November 2014
|
Junior Member |
|
|
hi Mughals,
thanks for your response.
i have gone through this link. i find out some useful info.
here im giving that.
--------------------------
Something that may come close to what you want is this: generate the report to file instead of the reports cache and open the file in the browser.You have to define a directory and alias in the httpd.conf file where you store the reports.
When you open the file you still see the full url in the title, but a least you see something like 'http://myserver:7778/docs/myreport.pdf'
Include the following in your code:
-- Path to store the reports (for testing in 9iDS)
v_docpath := 'c:\ora9ids\j2ee\home\default-web-app\docs\';
v_doc := 'myfile.pdf';
v_docurl := '/docs/';
...
set_report_object_property(repid,report_destype,file);
set_report_object_property(repid,report_desname, v_docpath||v_doc);
...
v_url := v_docurl||v_doc;
web.show_document('javascript:window.open("'||v_url||'","","fullscreen=no,...");self.close()','_blank');
---------------------------------------------------------------------
as per this i have to define directory and alias in httpd.conf file.
is this applicable for forms 6i also?
can you clarify me? if so where i can do that directory definition and aliasing??
your suggestions are much helpful for me as our DBA is not supporting us to do all these activities.
thanks.
Rama
|
|
|
|
|
|
Re: Displaying PDF file which is placed on application server through forms 6i by using web.show_documen [message #628233 is a reply to message #628228] |
Fri, 21 November 2014 09:19   |
 |
krr_apps
Messages: 5 Registered: November 2014
|
Junior Member |
|
|
Hi Craig,
Now i'm sure that our forms are web deployed as we are accessing the forms through web browser by installing J initiator only on users machine.
my requirement is, i will be placing my PDF file on application server by creating a folder called /Pdf_docs.
and then i'm calling web.show_document('/v01/ebizd1/pdf_docs/mypdf_name') in the forms (forms 6i) trigger.
if i run that form its giving error 404 object not found. that means form control is not routing to the specified server path of existing pdf.
for that i have to do directory definition and aliasing as per my analysis on earlier threads in our forum.
so kindly help me out on this. where to do and how to do as im not much aware of server side and DBA side activities
Thanks,
Rama
[Updated on: Fri, 21 November 2014 09:22] Report message to a moderator
|
|
|
|