How to open report in the browser from PL/SQL procedure
Hi,
I need to call the report (with destype = SCREEN) from the PL/SQL procedure and display in the browser.
For Example: when I call P_call_report procedure in my Forms6i button or at sql*plus, the report output PDF/HTML should open in the Browser window.
Iam Using IE, report6i, forms 6i, Oracle 8.1.7, Windows OS
I tried using UTL_HTTP(' ') in a procedure. But when I execute the procedure at sql*plus it says Pl/sql procedure completed successfully message without opening report output in the browser window. If I copy the same url and paste it in the browser, it works.
Please let me know if there is any solution.
thanks alot.
I guess event driven publishing may work. But Iam not sure about the opening of the browser from inside the procedure.
Similar Messages
-
How to Open PDF in the browser...JSF
String strUrl = http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf
FacesContext faces = FacesContext.getCurrentInstance();
ExternalContext context = faces.getExternalContext();
HttpServletResponse response = (HttpServletResponse)context.getResponse();
response.sendRedirect(strURl); Hello,
I have to open PDF in the browser, I am trying to redirect using the above code, but it is throwing exception as below. Could some one help me in this issue?
Thanks In advance
Error Message:
java.lang.IllegalStateException: Cannot forward after response has been committed
Error details:
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:313)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at com.esri.adf.web.faces.application.ADFViewHandler.renderView(Unknown Source)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.esri.adf.web.util.ADFSessionTimeoutFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)You cannot send two responses per request. The solution is to let the client create two requests. Common approach is to add an onclick to the commandbutton/commandlink which opens the PDF in a new browser window and let the actual command action invoke a redirect on the current browser window.
E.g.<h:commandLink value="Download PDF" action="#{myBean.action}" onclick="window.open('http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf');" />where the #{myBean.action} invokes a redirect and the http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf opens the PDF in the new window.
Edit
I've read your question/problem once more and now I am a bit confused. All you want to do is to open the PDF file in a new window and you don't need to do something in the backing bean? Just use a link with target="_blank".
<h:outputLink value="http://..../xxxxxe43cb072378947fe8c1b7bcc7201691a.pdf" target="_blank">Download PDF</h:outputLink>No need for a redirect here.
Edited by: BalusC on Nov 21, 2007 7:21 AM -
How to stop the Browser from caching my web pages
Hi There
Can anyone tell how to stop the browser from caching my jsp pages
I am using
<%response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
but this does not work anduser is able to go back to the previous page
which i dont want and i want the browser to display the message the page has expired
Help appreciated
Thanks
Mumtazresponse.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
Srinivasan Ranganathan -
How to set a cookie in the browser from an html page called via an Iview
How to set a cookie in the browser from an html page called via an Iview
Hello all,
I have an issue which is causing problems. I have a snap survey (html form with submit and cookie setting) which is embedded in a url iview.
Although the submit and the form work fine, the portal will not allow the cookie to be set it seems.
Is there a way to allow cookies to be set from an embedded page in a url iview??
You will make my day if you know!
System: EP7 SP13
Kind regards
AlexHi,
Check this:
http://www.oracle.com/technology/products/ias/portal/html/same_cookie_domain_with_pdkv2.html
Cookie Basics
Web browsers have built in rules for receiving and sending cookies. When a browser makes a request to a web server and the web server returns cookies with the response, the browser will only accept a cookie if the domain associated with the cookie matches that of the original request. Similarly, when a browser makes a subsequent request, it will only send those cookies whose domain matches that of the target web server.
These rules are designed to ensure that information encoded in cookies is only "seen" by the web server(s) that the originator of the cookie intended. These rules also ensure that the cookie cannot be corrupted or imitated by another server. By default, the domain associated with a cookie exactly matches that of the server that created it. However, it is possible to modify the domain at the time the cookie is created. Relaxing the cookie domain increases the scope of the cookie's visibility making it available to a wider "audience" of web servers.
For example, if a cookie is created by a.us.oracle.com, it's domain will usually be set to a.us.oracle.com. This means that the browser will only send the cookie to a.us.oracle.com. It will never send it to any other servers. However, if at the time of creation, the domain of the cookie is set to .us.oracle.com, the browser will send the cookie to any server whose domain falls within .us.oracle.com. such as portal.us.oracle.com, provider.us.oracle.com, app.us.oracle.com etc
Regards,
Praveen Gudapati -
How to close the browser from an Applet?
Hi,
I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed.
I'm not able to close the browser from the applet.
Can any body help me.
Rgds
SantoshIn my experience, calling Javascript from applets is flaky at best. However, I have gotten it to work in some cases. The following code should get you started:
netscape.javascript.JSObject win = netscape.javascript.JSObject.getWindow(applet);
Now you can call different methods on the win object (look into Javascript documentation for details).
It also depends on if you are using the Java Plug-in or the JVM built into the web browser. You probably need set MAYSCRIPT=TRUE in your HTML. Look into the Java Plug-in documentation for details... -
How to open older version of iPhoto from an external drive. It won't let me open or upgrade to the latest version?
With the amount of information you've provided it's impossible to offer a potential solution. We can't see your computer so we need to know the details of your problem and setup, i.e.:
what version of iPhoto are you using?
what system version are you running?
what fixes have you tried?
how is the EHD where the library is located formatted?
did you apply any updates or upgrades just prior to the problem occurring?
are you running a "managed" or "referenced" library?
what type of Mac?
how much free space on your boot drive?
OT -
How to prevent the browser from executing the old version of js file...
Dear sirs,
I have a JSP page that includes a javascript file as given below,
<script type="text/javascript" src="../scripts/validation.js"></script>
Some times modification is needed in this included script file. After the modification, when I load the JSP page in the browser,
the old copy of the script file, which was not modified is getting executed. by the browser.
I would like to know whether any options are availabe in javascript to prevent the browser from executing the old copy that has already downloaded to the temperary interner folder(from caching)and use the modified version available with the new response...
Thank you,
Sudheesh K SDear sir,
Thakyou very much for your comment.
I tried this, By doing thisThe .html page of the response will be deleted. But the javascript file will not be removed. It will be remail there.
This lead me to the idea to think about javascript. I heard that some commands are there in javascript like cache ="NO" but not sure. I searched in the net but no favourable result found...
Thank you,
Sudheesh.... -
How to make report with access 2010 from SharePoint Discussion lists 2013
HI,
I want to make an access report from SharePoint Discussion lists 2013. When i open the list with access, the body of the list is in HTML format in access. Also if i reply something to one subject in the discussion, the reply is not mapped to that subject
but instead it is shown as a separate entry in the database.
Anyone can please help?
SAN
Santhiya
SanthiyaHi Santhiya,
I have seen a similar post from you, my understanding is that you wonder that the reply is mapped to the related subject. You can take a look at Daniel's reply in the following thread:
http://social.technet.microsoft.com/Forums/en-US/dfb5bcb9-0076-412a-b34f-46aa9cfba876/how-to-make-report-with-access-2010-from-sharepoint-discussion-lists-2013?forum=sharepointgeneral
Thanks,
Wendy
Wendy Li
TechNet Community Support -
How to open and read many files from a directory and store contents in 2D array?
I want to make a VI that opens and reads the data from various files contained in a directory (200 files each with 2 columns) and store these in a single 2D array. For file number 1 I want to store the data from both columns in the 2D array, but for files 2 to 200 I only want to store the second column of each file. Can someone please help?
Hi Nadav,
Thanks for your help. I have followed your instructions but i cannot get it to work. I used the LIST DIRECTORY to list the files in the directory - that works. However, how do I read each of the 200 files using READ FROM SPREADSHEET FILE without me having to manually select each of the 200 files? So, if I use LIST DIRECTORY to list all 200 files in an array, how do I get each of these to open and store the data in a 2D array? Here is what I have done (File called read_files.VI) Could you please help me? Thank you very much in advance.
Attachments:
read_files.vi 18 KB -
How do i change my default browser from yahoo to safari ?
how do i change my default browser from yahoo to safari ?
You may be mixing two things.
Safari does not really have a home page.
You set your home page on these pref (see pic below). In the pic below my home page is zip, zero, nada.
You set your search engine prefs via the Search option from within Safari preferences. -
How to open pdf files in browser using flex
hi,
my project is having a Document explorer wchich contains pdf
files,iwant to open it in the browser.can any one tell me how to
open pdf documents using flex programming(i tried with different
thing like swf's but my client wants only pdf formatt).Another option is by calling a JSP page. This example will
open a pdf file into a new browser without displaying the download
"save" prompt.
Function to call the JSP:
private function downloadFlyer(event:Event):void {
var jspLink:URLRequest = new
URLRequest("jsp/downloadpdf.jsp?fileName=Fundraiser_flyer_2008.pdf");
navigateToURL( jspLink, "_blank" );
JSP code:
<%@ page errorPage="error.jsp" %>
<%@ page import="java.io.*" %>
<%
//Get the parameters
String downloadFileName=request.getParameter("fileName");
String fileName = application.getRealPath("/downloads/" +
downloadFileName);
File file = new File(fileName);
if (!file.exists()) {
throw new IOException("File does not exist.");
// Get the size of the file
long length = file.length();
// You cannot create an array using a long type.
// It needs to be an int type.
// Before converting to an int type, check
// to ensure that file is not larger than Integer.MAX_VALUE.
if (length > Integer.MAX_VALUE) {
throw new IOException("File too big.");
response.reset();
response.resetBuffer();
response.setContentType( "application/pdf" );
response.setHeader ("Content-Disposition", "filename=" +
downloadFileName);
//Prevent the Java error: "getOutputStream() has already
been called for this response"
out.clear();
out = pageContext.pushBody();
InputStream in = new FileInputStream(file);
OutputStream output = response.getOutputStream();
try {
int curByte=-1;
while( (curByte=in.read()) !=-1){
output.write(curByte);
} catch (IOException ioe) {
ioe.printStackTrace(System.out);
} finally{
output.flush();
in.close();
response.flushBuffer();
%> -
I am not able to open your answer for some reason my computer is not opening it in Explorer, it’s not responding and I keep getting error messages and I don’t know how to open it in another browser when Explorer experiencing issues.
HeatherIf you have IE version 10 go to TOOLS and change the option to use Compatibility View
-
How to export the result from executing sql statement to excel file ?
HI all,
Great with Oracle SQL Developer, but I have have a trouble as follwing :
I want to export the result from executing sql statement to excel file . I do easily like that in TOAD ,
anyone can help me to do that ? Thanks so much
SigmasvnHello Sue,
I just tried to export to excel with the esdev extension and got java.lang.NumberFormatException. I found the workaround at Re: Windows Multi-language env, - how do I set English for application lang?
open the file sqldeveloper\jdev\bin\sqldeveloper.conf and add the following two lines:
AddVMOption -Duser.language=en
AddVMOption -Duser.country=USyet now my date formats in excel are 'american-style' instead of german. For example 01-DEC-01 so excel does not recognize it as date and therefore I can not simply change the format.
When export to excel will be native to 1.1 perhaps someone can have a look at this 'feature'
Regards
Marcus -
Opening ASDocs in the browser window
It's a minor annoyance, but I need help changing a user preference setting that I've looked and looked for, but couldn't find the answer. How can I have the FB IDE open ASDocs of Flex4 documentation with the default browser? For instance, when I highlight a word and press shift+F2, most of he time, it opens up in the browser, but sometimes it opens up Flash Builder Help, often when the word doesn't belong in the Flex4 framework. But now, it's only opening up ASDocs in FB Help, and I prefer the browser. I don't think I changed anything, and I would really like to understand the system of ASDocs support. Thank you for any insights.
oops... just realized I should clarify. I mean opening Flex4 LiveDocs in he browser window.
-
I am having a problem opening images in the Editor from iPhotos into photoshop elements
I am having a problem opening images in the Editor from iphoto (on my macbook pro) to the photoshop elements
What exactly is the problem? What happens when you try, and how are you trying to do this?
Maybe you are looking for
-
Need help in upfate of the jlist
when i add somthing to the listmodel it doesnt apper on the list how to make it appear
-
CREATING A FORM UTILIZING MULTIPLE TABLES
I'd like to know if it's feasable to create a form using multiple tables and if so, how? Thanx
-
Counter increases and decreases by 1, records count nonnegative integer and tests whether the current count value is zero. No method allows the value of counter to become negative. Can anyone assist?public class Counter private int count; // definiti
-
How do I position my signature in signature box
How do I position my signature in signature box
-
Word file save as PDF cut off on right side. How do I fix it?
I saved a Word file in PDF. When it opens in Preview, the end of the lines on the right side are cut off. How do I restore the text to full size?