Web.show_document in method post

Hi,
Is it possible to call a page php in form using web.show_document, when the same page php required the parameters in post ???
Regards
Giordano

Hi,
With web.show_document() you could call a html page that call your php page with POST().
Francois

Similar Messages

  • How to send Parameters FORM to PHP WEB Page with method POST (secure)?

    Hello everyone,
    i hope someone can help me to find a solution to this problem!
    i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
    some suggestion?
    Thank a lot in advance... FMicio

    The other way you have is to make a PJC java bean ...
    which uses HTTPClient library..
    for example:
    PostMethod post = new PostMethod("http://jakarata.apache.org/");
            NameValuePair[] data = {
              new NameValuePair("user", "joe"),
              new NameValuePair("password", "bloggs")
            post.setRequestBody(data);
            // execute method and handle any error responses.
            InputStream in = post.getResponseBodyAsStream();
            // handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
    Or with java.net.* api-s
    try {
        // Construct data
        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
        // Send data
        URL url = new URL("http://hostname:80/cgi");
        URLConnection conn = url.openConnection();
        conn.setDoOutput(true);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(data);
        wr.flush();
        // Get the response
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();
    } catch (Exception e) {
    }Or you can call your web page (post data) from your database
    http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
    Edited by: Peterv6i on Mar 30, 2012 3:49 PM
    Edited by: Peterv6i on Mar 30, 2012 3:55 PM

  • Unable to open the reports as url using web.show_document

    Hi experts,
    I am trying the access the oracle reports from oracle forms. my forms is running at port 9001 and my report is configured at port 9002.
    While trying to open the report using web.show_document(), the web page opens with port 9001 and returns 404 error. But when i change the port number to 9002 in the url it opens the report sucessfully.
    Please find the forms and reports link below:
    http://10.180.218.158:9001/forms/frmservlet?config=kvb11g
    http://10.180.218.158:9002/reports/rwservlet/getjobid97?server=rptsvr_mohadam-in_adam2unst
    i tried changing the machine name to ip address in the forms.conf and reports_ohs.conf as suggested in the link below. but it dint work out.
    url -
    https://forums.oracle.com/thread/1105289
    http://prasadmadhasi.com/2011/11/19/changing-presentation-services-port-number-in-obiee-11g/
    my reports_install.properties is given below,
    #Reports Install Properties
    #Fri Sep 13 16:10:59 IST 2013
    WLS_USER=weblogic
    USE_REPORTS_BUILDER=true
    OHS_COMPONENT_NAME=ohs1
    REPORTS_MANAGED_WLS_PORT=9002
    SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
    REPORTS_MANAGED_WLS_HOST=10.180.218.158
    FORMS_CONFIGURED=true
    ORACLE_INSTANCE_NAME=adam2unst
    REPORTS_APP_DEPLOYMENT_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\servers\\WLS_REPORTS\\tmp\\_WL_user\\reports_11.1.2\\uxabaw
    INPROCESS_SERVER_NAME=RptSvr_MOHADAM-IN_adam2unst
    MANAGED_SERVER_NAME=WLS_REPORTS
    OHS_PORT=8891
    DOMAIN_HOME=C\:/Oracle/Middleware/user_projects/domains/kvbdomain
    COMMON_COMPONENTS_HOME=C\:\\Oracle\\MIDDLE~1\\ORACLE~1
    ORACLE_INSTANCE=C\:\\Oracle\\Middleware\\adam2inst
    REPORTS_APP_CONFIGURATION_DIR=C\:\\Oracle\\Middleware\\user_projects\\domains\\kvbdomain\\config\\fmwconfig\\servers\\WLS_REPORTS\\applications\\reports_11.1.2\\configuration
    OHS_HOST=MOHADAM-IN.in.oracle.com
    DOMAIN_NAME=kvbdomain
    ORACLE_HOME=C\:\\Oracle\\Middleware\\Oracle_FRMHome
    USE_OID=false
    REPORTS_APP_VERSION=11.1.2
    USE_SSL_FOR_APP_LDAP=false
    INSTALL_MODE=deployment
    SSO_CONFIGURED=false
    Looking forward for your help.
    Regards,
    Syl

    Hello,
    this is the forum space
    SQL Developer (Not for general SQL/PLSQL questions)
    Please mark this thread as answered and post your question in Reports
    Regards
    Marcus

  • WEB.SHOW_DOCUMENT

    Hello
    I used this code on form, button mouse click trigger.
    WEB.SHOW_DOCUMENT('http://<IAS_IP>:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    When I clicked it open another window but it lost the port number 7778 on the URL address then it gives the error page cannot display.
    http://<IAS_IP>/reports/rwservlet/getjobid38?
    If I add the port # manuallly it will show the report.
    But the insert/import JPG picture not appear it gives red x on the left corner.
    How can i solved this problem to retain the port# when calling the report? Anyone can help me please.
    IAS10gR2. OS windows server 2003R2.
    Furthermore where i can set the path of the report so that no need to specify the drives/folder which reports resides? I set the path for forms but for report i dont know where.
    I edited the registry but the report path is not accessible.Is there any config like the forms(Forms Edit Environment File: default.env) for report?
    Thank you,
    charles

    Hello Michael
    Thank for your reply.
    Im accessing the IAS on the internet public IP.I dont have now the registered domain name. im only using the IP that the internet provider company provides.
    This my complete work code now..
    declare
    v_rep VARCHAR2(100);
    v_report_server VARCHAR2 (30) := 'rep_appserv_oracleas2';
    v_report_name VARCHAR2(100) := 'c:\ceor\ceor001r'; <<<<<---- HOW TO REMOVE THE DRIVES/FOLDER. WHERE I CAN SET THE REPORT PATH? I MODIFIED THE REGISTRY.
    v_format VARCHAR2(12) := 'PDF'; PDF or SPREADSHEET
    v_format VARCHAR2(12) := 'htmlcss';
    repid REPORT_OBJECT; --- Added
    rep_status VARCHAR2(100); ---added
    v_ip varchar2(100) := 'IAS_IP';
    begin
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_report_server); -- remove ' '
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,v_report_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT, v_format);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE); 'p_my_second_parameter='||:block.my_second_parameter);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://'||v_ip||'/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    ELSE
    message('Error when running report - '||rep_status);
    END IF;
    END;
    If im not wrong your the one who corrected my code before.I need to check on older post.
    its formseleven.
    Re: security on url when calling reports on report10g
    Thank you.
    Charles.

  • Report Status using web.show_document

    Hi all.
    I am using the web.show_document for running my report - using distribution xml file and mail.
    I want to insert a record in a table if the report generation succeeds.
    From Oracle Documentation I can see that I cannot get the report status in the form when it is run using web.show_document.
    And for distribution I cannot use run_report_object.
    Any workaround for this?
    Thanks in advance
    Anu.

    Dear Mr. hisham,
    Thanks For your Post,
    Actually i have the same issue, but it want to kill a running report in the report server by clicking such a button that have already the jobID.
    whithout opening the reportserver page so that no body see any other reports running.
    like in this example:
    Declare
    L_URL Varchar2(1000);
    Begin
    L_URL := :apps_server||'/reports/rwservlet/Killjobid'||:JOB_ID||'?'||'server='||:report_server;
    WEB.SHOW_DOCUMENT ('javascript:window.open('||l_URL||');self.close()','_blank') ;
    End;
    Is it posible to do that, If so how can do it. and do i have to do any settin someware on the server like formsweb.cfg or reportserver.cnf.
    thanks in advance.

  • Open files located in AS by using WEB.SHOW_DOCUMENT

    Hi ,
    I need to open some documents in the client machience, documents are located in the AS .
    This method is working,
    WEB.SHOW_DOCUMENT('http://<server_name>:<port>/forms/java/myFile.doc');
    but the problem is, documents should be in the ORACLE_HOME/Forms/Java or its sub path. but i want to keep the documents out side the ORACLE_HOME. Any body can help me?, i think we have to do some configurations in the formsweb.cfg or forms.cfg file.
    Also, is there any other better solution to open the documetns(PDF/DOC/XLS) in the client machine, but the files are located in the AS.
    Thanks in advance
    Rizly

    add another virtual directory to your forms.conf file referening the real directory outside your ORACLE_HOME
    forms.conf is in same loaction as formsweb.cfg
    eg
    # Virtual path for all my documents PDF/XLS/DOC
    AliasMatch ^/forms/mydocs/(..*) "F:\path_to_my_doc_dir/$1"
    you have to restart your http server and OC4J forms services after modification
    Erwin

  • Browser Time out in Reports (using WEB.SHOW_DOCUMENT to call reports)

    When running a big report which takes a long time to run, it finishes on the report server but in the browser the screen is stuck at the parameter form, you don't see the report output. It's as if the browser has timedout. Is there a solution to this?
    I am running reports using WEB.SHOW_DOCUMENT only - through a URL. This seems to be a huge drawback of using this method.

    Is the browser launching?
    If it is have you tried a show source on the browser window?
    Sometimes if you open an XML file in a browser you get a blank page but the XML is there. Something to do with the XML format I think. I'm no expert on XML just a behaviour I have observed.

  • WEB.show_document with MAILTO in IE8 - Navigation Cancelled message

    When generating an email from within Oracle Forms 10g using:
    WEB.show_document('mailto:'||'[email protected]'||'?subject='||'test msg'||'&body= 'test body','_SELF');
    An IE8 window pops up with a message saying 'Navigation to the webpage was cancelled'.
    The test email does appear separately, but if the email is generated a second time, the email will not be generated unless the window saying 'Navigation to the webpage was cancelled' was manually closed before the second email generation.
    If we try the same test in our IE7 browser, the email pops up without an IE window coming up in the background (as expected).
    We have tried changing the last parameter to _BLANK and also excluding it altogether, neither option works properly in IE8.
    What code can I use to generate an email within IE8 & IE7 without the extra browser window appearing in the background?

    Ok - so I've had a TAR logged with Oracle since before asking my colleague to post the same query on here.
    As of a couple of days ago Oracle were able to reproduce the same issues using a simple test case. Yesterday they came back with the first part of a fix and updated "Note 1075355.1 - How To Use WEB.SHOW_DOCUMENT To Open Multiple Pages In The Same Browser" accordingly.
    Basically if you are running IE8 on Windows XP and want to use the WEB.SHOW_DOCUMENT with mailto to launch an e-mail you need to specify a named window instead of the regular parameters which are: self, parent, top, blank
    So you would need to use something as below where the word CUSTOM can be anything.
    WEB.show_document('mailto:'||'[email protected]'||'?subject='||'test msg'||'&body=' ||'test body','CUSTOM');
    However this does not appear to fix the issue for IE8 when running on Windows 7.
    Below are other security settings that were recomended and we tried (but I don't think they had any effect):
    1. In IE 8 go to menu Tools -> Internet Options -> Security -> Sites ->
    - Add this website to the zone :
    mailto
    - Uncheck "Require server verifcation (https:) for all sites in this zone."
    - Click Add
    2. In IE 8 go to menu Tools -> Internet Options -> Security -> Custom level
    - Set 'Display mixed content' to Enable.
    Anyway hopefully this information may be useful to anyone else experiencing the same issues - I'm kinda surprised that this hasn't come up and I am interested to hear how other people send email from Forms 10G or 11G applications?

  • WEB.show_document in Browser Tab Pages

    Hi
    This problem occurs in IE7 which makes use of tab pages on the web browser. I'm using forms 10g, web.show_document(v_url, '_BLANK') to pop up a browser window in IE to display a PDF file residing on the App Server.
    The new browser window pops up in IE and displays the pdf document fine. The window title and address bar contain the correct url (a rather long one). The problem I have is that the browser tab page is labelled "Error" which immediately causes concerns amongst the users. I'm not sure if it does this because it does not know what to label the tab page or if the URL is perhaps too long.
    Is there any way to rename / relabel the tab page or set the name or alias somewhere? I'll appreciate any advice on the issue...
    Regards
    Mario

    Hi,
    With web.show_document() you could call a html page that call your php page with POST().
    Francois

  • Secure Web.Show_Document with forms10.1.2.3 under vista Need authentication

    Hi All
    I installed forms 10.1.2.3 successfully under Windows Vista , i use Java Bean described in the OTN Forms document titled "Oracle Forms Services - Secure Web.Show_Document calls to Oracle Reports" ,but when the form calls the report, the following error message :
    "REP-51018: Need database user authentication" is presented to the user.
    note : I did this before successfully with forms 10.1.2.0.2 under windows xp
    What is wrong with me please under Vista ?
    Note :The Java console give this :
    Java Plug-in 1.5.0_12
    Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
    User home directory = C:\Users\crizma1
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Internet Explorer ...
    network: Done.
    network: Loading direct proxy configuration ...
    network: Done.
    network: Proxy Configuration: No proxy
    basic: Cache is enabled
    basic: Location: C:\Users\crizma1\AppData\LocalLow\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    basic: Plugin modality.register
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@e34726, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@7be8c2
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@e34726, refcount=2
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@e34726, refcount=1
    network: Connecting http://mostafa:8889/forms/java/frmall.jar with proxy=DIRECT
    basic: Loading http://mostafa:8889/forms/java/frmall.jar from cache
    basic: Reading cached JAR file from JRE 1.5 release
    basic: Certificates for http://mostafa:8889/forms/java/frmall.jar is read from JAR cache
    security: Loading Root CA certificates from C:\PROGRA~1\Java\JRE15~2.0_1\lib\security\cacerts
    security: Loaded Root CA certificates from C:\PROGRA~1\Java\JRE15~2.0_1\lib\security\cacerts
    security: Loading Deployment certificates from C:\Users\crizma1\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Users\crizma1\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Loading certificates from Internet Explorer TrustedPublisher certificate store
    security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    basic: Loaded image: jar:http://mostafa:8889/forms/java/frmall.jar!/oracle/forms/icons/splash.gif
    basic: Loaded image: jar:http://mostafa:8889/forms/java/frmall.jar!/oracle/forms/icons/oracle_logo.gif
    basic: Loaded image: jar:http://mostafa:8889/forms/java/frmall.jar!/oracle/forms/icons/bgnd.gif
    network: Connecting http://mostafa:8889/forms/java/oracle/forms/registry/Registry.dat with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/java/oracle/forms/registry/default.dat with proxy=DIRECT
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    network: Connecting http://mostafa:8889/forms/frmservlet?form=d:%5CFEMTOSOFT%5CACC%5Cmainmenu&separateframe=true&acceptLanguage=ar-eg&ifcmd=startsession with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011?ifcmd=getinfo&ifhost=Mostafa&ifip=192.168.1.2 with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011 with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/java/frmrwinteg.jar with proxy=DIRECT
    java.io.FileNotFoundException: http://mostafa:8889/forms/java/frmrwinteg.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.isUpToDate(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.loadFromCache(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
         at sun.plugin.cache.JarCache.get(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.util.ResourceBundle.loadBundle(Unknown Source)
         at java.util.ResourceBundle.findBundle(Unknown Source)
         at java.util.ResourceBundle.getBundleImpl(Unknown Source)
         at java.util.ResourceBundle.getBundle(Unknown Source)
         at oracle.forms.registry.MessageManager.getMessage(Unknown Source)
         at oracle.forms.registry.MessageManager.getMessage(Unknown Source)
         at oracle.forms.engine.Runform.createInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: WARNING: error reading http://mostafa:8889/forms/java/frmrwinteg.jar from cache.
    basic: httpCompression = true
    basic: Downloading http://mostafa:8889/forms/java/frmrwinteg.jar to cache
    basic: encoding = null for http://mostafa:8889/forms/java/frmrwinteg.jar
    network: Connecting http://mostafa:8889/forms/java/myappicons.jar with proxy=DIRECT
    basic: Loading http://mostafa:8889/forms/java/myappicons.jar from cache
    basic: No certificate info, this is unsigned JAR file.
    network: Connecting http://mostafa:8889/forms/java/oracle/forms/engine/RunformBundle_ar_EG.class with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/java/oracle/forms/engine/RunformBundle_ar_EG.properties with proxy=DIRECT
    إصدار بريمج Forms هو : 10.1.2.3
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011 with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011 with proxy=DIRECT
    basic: Loaded image: jar:http://mostafa:8889/forms/java/frmall.jar!/oracle/forms/icons/frame.gif
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011 with proxy=DIRECT
    network: Connecting http://mostafa:8889/forms/lservlet;jsessionid=0125fc1e6334c60e076ddfdd063a1d231270ff1507db8a2efc0666273e237011 with proxy=DIRECT
    Edited by: Mostafa Abolaynain on Jun 18, 2009 7:50 PM

    If I am remembering correctly, some changes were necessary in order to make this work with 10.1.2.3. So, if you are using the old jar which you used in previous versions, I would recommend obtaining the one specifically updated for 10.1.2.3. Refer back to the OTN page which has the download and choose the link that references the new version:
    http://www.oracle.com/technology/products/forms/techlisting10gR2.html
    Be sure to clear the client Jar cache before re-testing. This is not the same as the browser cache.

  • Javascript not working with web.show_document.

    Hi,
    I executed the below command from forms 10g and it is not working.
    web.show_document('javascript:var win=showModalDialog("http://otn.oracle.com/products/forms");','_self');
    But if I execute javascript:var win=showModalDialog("http://otn.oracle.com/products/forms"); directly in IE, then it is working.
    Frank, can you help me in this or any other people having any idea ?
    Very urgent.
    Thanks & Regds,
    Nandakumar

    Hi Mark,
    Thanks for your quick reply. Your question is right. I think let me explain clearly my requirement. I have an application accessed in the web. A internet user is trying to a report through the application by giving a parameter as "A". Now using the window.open method, the report is displayed in the IE browser. Now the user can go to history and can see the complete URL with parameters.
    If he just copies and pastes that url from history in the browser, the reports runs successfully. If he changes any of the parameter to "B", there is a chance that report will show the report for parameter "B". This should not happen.
    Hope this is clear. Let me know if you are not still clear. Moreover, in the IE it is possible to clear history, but for internet based applications, how can we set them.
    Thanks & Regds,
    Nandakumar

  • Running Reports with WEB.SHOW_DOCUMENT versus RUN_REPORT_OBJECT

    Where I work I work alone on developing and delivering Oracle applications. I've found a way of running reports in 10g over the web using WEB.SHOW_DOCUMENT, I've embedded my own security in the BEFORE PARAMETER FORM trigger of the reports.
    I don't have time to trawl through thousands of pages of documentation and I need to know whether there is a fundamental drawback of using WEB.SHOW_DOCUMENT over RUN_REPORT_OBJECT? I've got everything working OK in my test environment, but it's not clear reading the Oracle documentation whether there is a major drawback with this method, in particular I'm interested in any performance/load issues. I'm slightly worried because most people seem to use RUN_REPORT_OBJECT (which has all sorts of issues, such as parameter form incompatibility etc), I've found that WEB.SHOW_DOCUMENT is much easier to implement as it avoid the parameter form issue, displaying the user credentials in the source html and being able to type in any jobid in a url to receive other peoples reports.
    I've read as much as I can including the Forms and Reports integration document and the Usability Matrix and can't find anything obvious. I would be very grateful for any comments.

    Good call .... I included some of the code from your linked document to create a forms library from which to run reports. This uses the inate ability of reports to generate HTML parameter forms at runtime. Very handy. Most of our reports that we upgaded recently took little or no effort.
    Bradley

  • Running report with web.show_document

    We are using web.show_document to run reports which have parameter forms. destype=CACHE , desformat=pdf . We are also using the javabean which hides the login credentials as a cookie.
    The output displays OK then the user wants to email it, so they use the mail button on the adobe reader toolbar.
    They are asked whether they want to link or copy even though link does not work.
    If they choose copy, the result is an email with an attachment called 'servlet' with no extension.
    The recipient of the email has no idea what a servlet is, and more importantly they do not know how to open the file.
    Does anyone know how to get around these problems ?

    Ino
    Your method is fine if run_report_object is used. However, in order to display a parameter form, the report must be run with web.show_document. If web.show document is used twice, first to run the report and then to display it, the second does not wait for the first to finish, even if a synchronize is put between them.
    So, as soon as the parameter form appears, the second show_document appears in front of it saying it cannot find the file. Dismissing that allows access to the parameter form, the report runs and gives a success message but no output.

  • Web.show_document does not open browser anymore

    We upgraded our production database over the weekend from 10g to 11g. When it was still 10g, our Forms application used to open a PDF embedded in IE. After moving to 11g, it does not open IE anymore and shows no error messages. Clicking the button with the web.show_document command does nothing. Our test database is also 11g but does not have this problem. What could have gotten wrong?

    I can't explain why it seems to started failing all of a sudden. We often hear comments like this only to later discover that either someone else made changes of which you are unaware or possbily a software update occurred automatically. For example, the JRE version may have been auto-updated.
    As for recoding in an alternative fashion, it will be difficult for me to say specifically because I don't know the app nor do I know your needs. The biggest, and it isn't all that big, deal will be to identify from where the pdf being opened comes from. In other words, does it already exist on the client machine or is it downloaded to the client from the/a server? Also important to know is whether or not the file name is known or not.
    So, if you want to change the code, first figure out how you want the application to complete the task. Here are my suggestions:
    Suggestion 1.
    <blockquote>If the file (pdf in your case) originally resides on a remote server, then leave it there. The document can be opened using a direct url to the file on the remote server. For example:
    WEB.SHOW_DOCUMENT ('http://server/somepath/my.pdf','_blank');If the file lives within the Forms directories, you can even use a relative path rather than the fully qualified one above. For example, if the files live in \forms\java\foo then you can do this:
    -- The exact entry may differ slightly depending on which
    -- Forms version you are using and where you locate the files
    WEB.SHOW_DOCUMENT ('/forms/java/foo/my.pdf','_blank');This makes the application a little more flexable given that you would not need to change the app code if the server name changed. Once the file has been opened on the client side, whatever pdf reader the end-user is using will offer a "Save" option. So if they choose to save the file locally, they can do so as they desire.</blockquote>
    Suggestion 2.
    <blockquote>If, for whatever reason, the file is downloaded to the client or just happens to already exist on the client, you can use WebUtil's CLIENT_HOST (or WEBUTIL_HOST.HOST) command to open the file locally. There are several ways to do this and which method you choose will depend on a few factors. For example, are all the client machines Windows based? I will assume, for this example that the client machines are Windows based. And, because I like to write code as generically as possible, here is a way to open documents on Windows without the need to know which application normally handles it. In other words, you don't need to know that it will be Adobe Acrobat that opens pdf files or that MS Word will open doc files.
    -- In this example, the value of myPathAndFile is the path and filename.
    -- For example, myPathAndFile := 'C:\Users\<USER_NAME>\Documents\foo.pdf';
    CLIENT_HOST('rundll32 shell32,ShellExec_RunDLL '|| myPathAndFile);This is a bit of an old school way of accomplishing the task, but it is very effective and flexiable. Alternatively, you could use CLIENT_HOST to directly call the file, but this may not always work. For example:
    CLIENT_HOST('C:\Users\<USER_NAME>\Documents\foo.pdf');</blockquote>

  • How to use method POST to send XML using utl_http?

    Hi,
    I am trying to work out how to use the POST method to mimic submitting data from a HTML form, using utl_http.
    I cannot use SOAP for this as the people I am sending the data to are just expecting an XML document to be sent to a standard CGI script running on their web server.
    There is a lot of documentation on how to submit data using the POST method (using Utl_Http.Write_Text etc), but I cannot find anything that tells me how to submit form variables.
    The examples on OTN say this:
    "Alternatively use method => 'POST' and Utl_Http.Write_Text to
    build an arbitrarily long message"
    but don't tell me how to actually place the data into the required input parameters of the CGI program I am hitting.
    I need to hit a URL such as
    www.asite.com/cgiprogram
    and pass in a parameter, eg
    in_param="test+data"
    I am currently doing this as a GET, which works, but the XML document I am passing in could potentially be bigger than the GET method will allow.
    Any help would be greatly appreciated.
    Thanks,
    Leon.

    Please try the PL/SQl forum

Maybe you are looking for

  • Restore Purchases feature Problem

    Hello, We've got the problem during apple approve process. The app is Multifolio with newsstand subscription. They said "We found that your app offers In-App Purchase(s) that can be restored but does not include a "Restore Purchases" feature to allow

  • Sneak Peek #3 about the future of Photoshop: dashed and dotted lines

    Zorana Gee shared another Photoshop Sneak Peek, this time about dashed and dotted lines: Could it be useful in your workflow?

  • HT1325 tried everything my puchased songs won't play..

    I need someone to help me out this has been bothering me or how can I get my refund back this crazy!

  • Report for Deleted Materials,vendos

    Hi Friends, How can I see the list of deleted materials, deleted vendors and rejected PRs for approval.??????? Please advice... Thanks & Regards Satya

  • File suddenly ActionScript 3?

    Ive encountered a strange issue. I've been working on a project for school which started on Flash CS 5.5 and was made with Action Script 2.0.  I am working at home and using the trial version of Flash CS6.  Today, after saving my work, I'm suddenly g