Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call Reports from browser 1

Status
Not open for further replies.

mrm312

MIS
Feb 4, 2004
6
US
I am new to Oracle reports, but I have just created a few reports using Report Builder 9i Developer and am trying to find out how to integrate them into my web application.

The backend is running on Oracle 8.1.7, and the web application was programmed using PL/SQL with embedded HTML and is using an Apache web server.

The goal is to be able to click a hyperlink and pull up the reports as a .pdf. in a new window.

Suggestions on how/where to start?

Thanks,
mrm312
 
Here is a piece from Oracle doc:

Modify the template information below to match your environment:
1. Change the http command to match your server name and call the cgi or cartridge.
2. Create the reports you are running and add names to this html file.
3. Copy the information below into a text file and name .html
(This will create your html form to call over the web).
4. Copy the file into your webserver document directory, e.g. c:\orant\ows\doc
5. Call the file from your web server This will call the html file, now you can run your report.

NOTE:
There may be a problem calling reports that do not have a parameter form.
Suggestion: Create one form for reports with a parameter form and one for reports without a paramform.
DISCLAIMER:
This code is not supported by oracle support. This information is only meant to
help create a html form. If the report runs fine
from the browser alone however runs slow from the browser then it would not an oracle issue.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
copy below this line
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<html>
<head>
<TITLE>List of SunCollect Reports</TITLE>
</head>

<BODY bgcolor=&quot;white&quot;>

<form METHOD=GET ACTION=&quot; or r30ows>?&quot;

<!--Parameters not exposed to user are hidden-->

<center>

<font color=&quot;red&quot;><H1>Select the desired report:</H1></font>

<BR>
Report Name :
<INPUT name=report type=text value=&quot;empparm.rdf&quot;><BR>

Static URL Information:
<INPUT name=server type=text value=&quot;rep30&quot;><BR>
<INPUT name=userid type=text value=&quot;scott/tiger&quot;><BR>
<INPUT name=destype type=text value=&quot;cache&quot;><BR>
<INPUT name=desformat type=text value=&quot;pdf&quot;><BR>
<INPUT name=paramform type=text value=&quot;html&quot;><BR>


Output Format:
<SELECT name=report>
<OPTION value=emp.rdf selected> employee-report
<OPTION value=empparm.rdf> paramater-report
</SELECT> <BR>

<HR><INPUT type=submit value=&quot;Run Report!&quot;>


</CENTER>
</FORM>
</HTML>

--------------------------------------------------------------------
copy above this line
 
Thanks! I will give this a try and see what happens.

Mike
 
Is there any documentation out there on how to configure the 9iAS server to be able to test this code?

Thanks...
 
this post is a life saver thanks. but if you guys don't mind could you break down those steps for me a bit. i'm trying to acheive sort of the same thing. i'm suppose to call an oracle report using a url,passing the parameters and values in the url. this is sort of urgent. it will be done from a java based application. if you can help thanks. as you may can tell i'm not even sure what i should be asking for.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top