Using web.show_document to open xml file

I have successfully created an xml file and saved it to a directory on my hard drive. I was tyring to find answers to Client_OLE2 and stumbled upon Web.Show_Document to open this file. Essentially the file is in a spreadsheet format so when I manually open using IE then Excel is launched. Anyway, currently I am running forms locally and have set a virtual-directory virtual-path in my orion-web.xml file. My virtual path is /report_tmp/. So in my form I have issued the following call to launch a browser and display the file:
Web.Show_Document('/report_tmp/'||v_filename, '_BLANK');
This call does not produce any errors nor does it display the file. What am I doing wrong?
Thanks,
c

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.

Similar Messages

  • Web.Show_document to open .csv file in Excel How??

    We have a utility built in our menu (mmb)
    It reads the screen output and creates a .CSV file on the server using text_io and then using Web.show_document displays the file on the client.
    The file opens in MS-EXCEL. It gives a standard Excel prompt for Open , Save or run.
    Now our application has moved to FMW 11gAS.
    The file creation is happening but the file is opening in HTML format.
    The excel prompt is not coming.
    Where is setting to be done to open the .CSV files in EXCEL

    In addition to what I already mentioned, your issue may be partially caused by these two bugs: 10186820 & 10191154
    Both have been fixed in 11.1.1.6, which was released last week. Information about the 11.1.1.6 patch set can be found in MyOracleSupport note 1364511.1
    The fix should also already be in 11.1.2.0

  • To access pdf files from application server using web.show_document

    Hello!
    If my pdf file is copied in Oracle_home/forms90/java directory.Then using web.show_document i can access the pdf file.But I can't copy all the pdf files in /forms90/java directory.We have lacs of pdf files which I want to keep in my own directory.But my requirement is if my pdf file is in /home2/docs directory in (Linux application server) ie in my own directory where I store all the pdf files.Then web.show_document does not open the pdf file.It says page cannot be displayed.For that I think we have to configure the directory /home2/docs directory as a webserver.From otn I got something like forms90.conf file in application server where we have to set virtual directory mapping etc.If the pdf is in local machine then in orion-web.xml file we have to mention real path and save the file and shutdown oc4j instance and restart it again.I tried it.But it is not working.Can u give me step by step instructions to solve this problem.I found a few links in discussion forum.But is doesn't work out.My pdf file is in /home2/docs directory in Linux application server.Please treat it as urgent.
    Regards
    Jayashree

    Hi Sandeepmsandy,
    There is no available code sample for this scenario. You may write your own.
    Step 1: Get pdf URL from sqlite database. Please refer to the following MSDN blog and see a code sample.
    http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx. Note, you need to retarget the project to 8.1 and then get two sqlite packages from NuGet before building this sample.
    Step 2: Use some special classes to get file from serer.
    HttpWebRequest can help download small pdf files. For more information to see
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/de96a61c-e089-4595-8349-612be5d23ee6/download-file-with-httpwebrequest?forum=winappswithcsharp. It’s easy for use, but if you want to download the larger or many files, it’s recommend to use
    BackgroundTransfer namespace. The classes in this namespace provide a power way to transfer files in the background. See a code sample from MSND.
    https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Error opening report using WEB.SHOW_DOCUMENT

    Hi
    I have a report in pdf format that opens ok by itself. When I use WEB.SHOW_DOCUMENT in the when_mouse_click trigger on the item in the form the report doesnt display. Only an IE window with "The page cannot be displayed" message.
    Here is the trigger code:
    Web.show_document(http://nbotlaguduru.dms.local/export/||FMSLaborChargesalcs20060829132645.pdf)
    where FMSLaborChargesalcs20060829132645.pdf is the name of the report I am trying to open.
    Here is the URL that appears in the second window that opens:
    http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
    this url generates the error message "The page cannot be displayed"
    I am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Report Builder 10.1.2.0.2
    ORACLE Server Release 10.1.0.4.2
    and I running the forms and reports server on my local machine.
    Any help would be greatly appreciated. Thanks

    Thanks for answering,
    I changed the URL from
    http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
    to
    http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
    and the same problem occured
    the file is located on my local C drive in:
    C:\lcs\export
    seems as though I am missing something else as well
    any ideas?

  • Showing tiff files using web.show_document

    Hello,
    I want to show tiff files using web.show_document. Tiff files cannot be displayed in a browser, however therr are several plug-ins available to show them.
    Can anyone recommend a plugin to display tiff files in a browser?
    Kind Regards Erik

    We had tried a different approach. We store all type of documents in the database using webutil.
    And we dont directly open any document and we download the document to the local host and then open it using webutil client host ('local folder\file name')
    This way word,excel, pdf etc will be automatically opened with its relevant appln and if there is relevant appln is not found it will prompt the windows standard Open with dialog box.
    Rajesh ALex

  • How to call DOC file using web.show_documents

    Hi friends ,
    If I use the built-ins web.show_documents for open the *.doc file
    I am getting the following error
    ORA-06550: line 5, column 2:
    PLS-00201: identifier 'README.DOC' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    DAD name: WebDB
    PROCEDURE : readme.doc
    URL : http://132.148.160.3:80/WebDB/readme.doc?
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    SERVER_PORT=80
    SERVER_SOFTWARE=Oracle WebDb Listener 2.1
    SERVER_NAME=132.148.160.3
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.0
    REMOTE_HOST=132.148.160.251
    REMOTE_ADDR=132.148.160.251
    REQUEST_METHOD=GET
    QUERY_STRING=
    SCRIPT_NAME=
    PATH_INFO=/WebDB/readme.doc
    HTTP_ACCEPT=*/*
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
    HTTP_HOST=132.148.160.3
    HTTP_CONNECTION=Keep-Alive
    Please advice How to call Doc file in web.
    Thanx
    null

    The syntax to execute web.show_document:
    web.show_document('http://server_ip_or_server_name/virtual_path/filename.doc')
    The virtual path has been defined in Apache (if you run on web with Apache) or has been defined in Internet Inoformation Server (if you are runing with Internet Information Server.)
    null

  • To which Forms directory to put a text file to show using WEB.SHOW_DOCUMENT

    Need to show a text file using WEB.SHOW_DOCUMENT.
    In which Forms sub-directory should the text file reside and what is the syntax for the command?
    Is it like WEB.SHOW_DOCUMENT('http://192.949.99.19:8890/forms/abc.txt','_blank');

    Hi, I did this
    -- My OC4J URL when I run a form is this: http://192.168.11.103:8890/forms/frmservlet
    -- I want to open abc.txt. I put abc.txt in dir E:\Ora_Dev_10g_R2\forms which is my Forms home
    -- When I try WEB.SHOW_DOCUMENT('http://192.168.11.103:8890/forms/abc.txt','_blank') it gives
    The page cannot be found

  • 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

  • How can I maximize the window which opened using web.show_document() ?

    My user complain, everytime they want to print the report it didn't
    show maximize screen,
    How can I maximize the browser or window which opened using web.show_document() ?
    Thank you

    Thank you for replaying,
    I did search in forum, but I only go one about maximize window when calling
    a report (web.show_document). the link :
    Maximize the new opened window
    Frank said to use "Javascript to the Forms", but no futher explanation whow
    to do it ?
    please help, I don;t know javascript.
    Cabe,

  • Hi Everyone, Just wanted to seek your assistance. We're using and Adobe InDesign CS6. The XMedia UI Plugin for it, will it allow you to open .xml files in InDesign or that plugin is just used for Importing XML? Thanks in advance.

    Hi Everyone, Just wanted to seek your assistance. We're using and Adobe InDesign CS6. The XMedia UI Plugin for it, will it allow you to open .xml files in InDesign or that plugin is just used for Importing XML? Thanks in advance.

    I've moved your question to the InDesign forum.

  • 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.

  • 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.

  • Issue while generating report using web.show_document with https

    Hi All,
    I am facing some issue while seeing the report using web.show_document as shown below:
    https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
    In this case the report opens directly without asking for me to save or open or cancel option
    whereas if I hit
    http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
    it asks for save or open or cancel option
    so that I can save the report to my machine and open in wordpad format
    The report generated in the first case is not coming in proper format
    Below are my forms.conf mappings:
    # Name
    # forms.conf - Forms component Apache directives configuration file.
    # Purpose
    # It should include the weblogic managed server (routing) directives for
    # the servers where Forms applications are deployed and other miscellaneous
    # Forms component OHS directives.
    # Remarks
    # This file is included with the OHS configuration under
    # $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
    # virtual mapping for the /forms/html mapping.
    RewriteEngine on
    RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
    AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
    RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
    AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
    RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
    AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
    <Location /forms>
    SetHandler weblogic-handler
    WebLogicCluster kauh0079:9001
    DynamicServerList OFF
    </Location>
    Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
    Regards,
    Harish

    Thanks for answering,
    I changed the URL from
    http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
    to
    http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
    and the same problem occured
    the file is located on my local C drive in:
    C:\lcs\export
    seems as though I am missing something else as well
    any ideas?

  • Launching a new form using web.show_document

    Using 9iAS 9.0.2.1.1. and Forms9i I'm trying to get a form to launch a new browser window and open a new form in it. At present I'm using web.show_document to do this. However, I get an error message stating that 'Connection from new browser window is not supported'. From an earlier thread in this forum I found a possible solution which is to set the session.useCookies to false in the zone.properties, which I have done, but I'm still getting the same error. I've tried restarting the OC4J_BI_Forms OC4J and the HTTP server, but nothing makes any difference. Am I missing something?

    If you are attempting to print a report from a when-button-pressed trigger from within a form, you do not have to explicitly specify the server (hostname) nor the port. You can just use what I've found referred to as a virtual path to the server as I have done here:
    parm_string := '/reports/rwservlet?config=my_config&report=report_name'
         ||'&desformat=pdf&destype=cache'
         ||'&paramform=no&printjob=no'
         ||'&p_my_user_param1='||v_my_param1
         ||'&p_my_user_param2='||v_my_param2;
    web.show_document(parm_string,'_blank');
    You can specify a userid/password@connectstring within a named congifuration section of your formsweb.cfg file if necessary, e.g. my_config.
    Hope this helps.
    James K.

  • Open XML file ___ cannot be opened...

    I have read of several people having the same problem but cannot find a definitive answer. I am on an iMac with version 10.6.8 OS X.  I bought and installed Office 2011 last week (version 14.4.0) and I cannot open any file that I had created in version 2008 nor any file sent to me (I use Outlook Web email).  The complete error message is:  "The Open XML file solar.docx cannot be opened because there are problems with the contents or the file name might contain invalid characters (for example, \/)."  I am at a loss as what do do.  I am not a "techie" person, so any fix needs to be "spelled" out clearly.
    Thanks for any help.
    ~Cynthia

    http://answers.microsoft.com/en-us/mac
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

Maybe you are looking for

  • Exporting and importing portlets

    I have be able to run the export option from the application wizard to extract a portlet from one Oracle instance. And I am able to import that portlet into another instance of the portal. However, this appears to work only the first time, when that

  • Infotype for Display Actions

    Hello All, There is Role through which End Users does not have access to the Overview (mountain) screen for the Display Actions InfoType. When we use the eye glasses to view the detail of an Employee's Actions we can see the individual records. Howev

  • Impossible de connecter l'imprimente a internet

    impossible de connecter l'imprimente a internet

  • My mail on Thunderbird has stopped working

    Good afternoon. I am now in Indonesia. My mail ([email protected]) on Thunderbird has stopped working. Writes-"wrong username or password." in Russia, everything worked fine. Through the browser go too without problems. May be a bug? Добрый день. Я с

  • Loading MySQL to Borland's Java

    I still can't connect to MySQL. I looked in the other threads' instructions, I think I am doing everything correctly. I still get the java.lang.ClassNotFoundException:org.gjt.mm.mysql.Driver exception on the Class.forName("org.gjt.mm.mysql.Driver").n