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.

Similar Messages

  • 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

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Calling a report with web.show_document and put pdf in temp directory

    Hi,
    I need to call a report 10g with web.show_document in order to generate a .pfd file (not viewed by the user) as soon as the user press a button in a form.
    I have two problems. Firstly, after generate .pdf, it's opened a undesirable windows "process succefully" (I don't want that window). Secondly, in url parameter, I put:
    (...)DESTYPE=File&DESFORMAT=pdf&DESNAME=' || client_win_api.get_temp_directory
    the target directory to .pdf file might be the user temporary directory, and not c:\temp, because in Windows XP the user haven't some writing privileges.
    How there is spaces in temporary directory, like:
    C:\Documents and Settings\<user>\Local Configurations\Temp
    I supose that Get_temp_directory returns something that:
    C:\Documen~1\<user>\Local~1\Temp
    And web.show_document don't understand.
    Can anyone help me?
    Thanks a lot,
    medina.

    Hi Maahjoor,
    i have install windows xp on vmware having loop back adapter configure with ip 192.168.10.1.i am using oracle developer 10g suite and oracle 10g r2 database.
    i want to call a report using the following code on a button.i have attached the report to the form.
    i have started the report server by issuing rwserver server=repsrv.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('ALL_EXPENSES');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := RUN_REPORT_OBJECT(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
    WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    ELSE
    Message('Error when running report');
    END IF;
    end;now when i run the command, i get this error
    frm-41214: unable to run the report
    frm-41219: cannot find the report.invalid id.
    argument 1 to builtin run_report_object acnnot be null.
    i thin the problem is with this line. WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
    can anyone help? or a better piece of code?>
    I think you are mixing up the web.show_document usage for URL and with RUN_REPORT_OBJECT.
    I hope you have studied this document http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf . It has the required examples and code.
    Cheers,

  • Oracle Forms displaying a report with WEB.SHOW_DOCUMENT

    I have a form that runs a report and generates the report.  Forms trys to open the url via port 9001, so error could not display page happens.  If I switch the port number to 9002 in the url, the report opens fine.  Where do I make this config change to?
    This is the url the form trys to bring up and it fails
    http://devserver:9001/reports/rwservlet/getjobid29?server=rep_wls_reports_devserver
    But when I put the following url, the report opens fine in the browser
    http://devserver:9002/reports/rwservlet/getjobid29?server=rep_wls_reports_devserver
    Any ideas?

    I have a form that runs a report and generates the report.  Forms trys to open the url via port 9001, so error could not display page happens.  If I switch the port number to 9002 in the url, the report opens fine.
    You didn't specify your Forms/Reports version, but from port numbers I guess it's 11g. If so, by default 9001 is the Forms port, while 9002 is the Reports one. You can confirm this by listing portlist.ini in $ORACLE_HOME/install.
    Did you try using OHS_LISTEN_PORT (normally 8888) ?

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

  • Kill last reports job with web.show_documents ?

    Hi,
    I call the Reports service for creating PDF - reports from a Forms modul ,
    after creating the report I kill this last Report-job with web.show_document but get the xml response in a new browser window.
    Is there another method to send the Report request from Forms without opening this second browser window incl. response data ?
    (e.g. a atomic security bundle: Show report result & kill the job ..)
    Many thanks
    F.

    Eventually , the report run... when the active thread got the value 1. How is it done...(i mean the value of 1 , instead of 2 when the report started...????) How to secure that the active thread would be 1 if this is the problem...????
    However , because the report is 2 page accross.... the report displays the first page and down the other page.... Is it possible to display both pages accross as i see them in report builder env....?????
    Thanks , a lot
    Simon

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

  • Problem after run report with spreadsheet

    hi evry one
    ther an a problem after run report with spreadsheet .
    after runing iexplorar open and close fast no thing else
    when i check the job from appserver job success with spreadsheet dis format.
    what shall i do.
    thanks.

    Hello,
    Do you use the Oracle Forms builtin WEB.SHOW_DOCUMENT ?
    If yes , take a look to : "IE7 windows opened and closed immediatly"
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Regards
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • Problem with web.show_document with Jinitiator and Firefox

    Not sure Firefox 2.0 is officially certified with Forms 9.0.4.1 and Jinitiatorbut regardless we have some users who want to use this combination. Everything seems to work fine except for the calls to web.show_document which opens a new browser window and displays some html etc.
    The problem is that even though the client Forms JVM is Jinitiator (1.3.1.18 or .21) when the call to web.show_document occurs somehow the Sun Java Plugin starts and having the two JVM's at once causes a fatal crash in Firefox. Can anyone suggest a way to preven the second JVM from opening?
    When the user uses the Sun Plug as the client Forms JVM there is no problem as the second JVM does not open. Unfortunately some users insist on Jinitiator with Firefox hence the problem. -quinn

    James,
    This whole applet embedded in a browser model for webforms is driving us batty at times. The list of problems includes:
    1) Users are constantly tempted by browser controls and accidentally do all sorts of things to get them in trouble. This has included but not limited to using the navigation arrows, jumping off to read their email in the same window as the form and returning to a dead forms session, minimizing, resizing, blurring off to another window and then returning back by clicking on the title bar of the browser and wondering why the form doesn't tab etc.
    Sure hobbling the browser by opening with limited functionality is a possibility but not a complete solution.
    2) New versions of browsers seem to break something. Both IE 7 and Firefox 2 have their own problems with web.show_document, especially file associations such as CSV and DBF and trying to open things in Excel in IE7.Firefox seems to have less problems for some yet some some oddities like the one that started this thread (and 2.0 opening new windows in tabs by default instead of windows).
    3) JVM jigsaw puzzle. Is it Jinit or Sun, which versions? Which combinations of browser version and JVM works.
    4) General fragility of the whole architecture. Running a client JVM in a web browser on top of a PC Operating system connectiong to a forms server over a network embedded in a Java Container server on a full blown web server running on a unix operating system is pushing the bubble. Throw in the mix that any of these components can be combined in numerous ways makes one wonder how it works as well as it does.
    Still users randomly getting dropped connections to forms server (network gltches?). General sluggishness (poorly written forms?). Periods of users with unduplicatable errors primarily network related it would appear.
    General feel that it is not rock solid stable. Perusing metalink documents on performance and tuning gives too much and too general info to troubleshoot so just shrug shoulders and say 'network problem'.
    What's the solution? Java webstart would seem to help at least with the browser realted issues but is that supported and documented how to use yet. Also we'd lose web_show_document which is critical (could it be replaced by webutil calls to open browser?).
    -quinn

  • Bad initial encoding of report after WEB.SHOW_DOCUMENT(MyURL,'_blank')

    Hi,
    I use Developer9iDS 9.0.2 with installed Patch1 on Win2000 with IE 6.0.
    I need an HTMLCSS report in lithuanian language and want to prewiev them in new window in browser with Baltic(Windows) encoding.
    When I produce my report with RUN_REPORT_OBJECT and parameters REPORT_DESFORMAT=HTMLCSS and REPORT_DESTYPE=CACHE
    I found, that my report is OK in cache with all needed lithuanian characters.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1257">
    </head>
    <body dir=LTR bgcolor="#ffffff">
    </body></html>
    But when I open it with WEB.SHOW_DOCUMENT (MyURL/getjobid'||vJobId||'?server=<myserver>,'_blank');
    my browser shows it in bad encoding for first time and every time I must set encoding manualy to Baltic(Windows).
    That's will be very difficult for my users!!!
    I found in source that another one HTML document stands at the begining of my document followed by my document
    <html>
    <head>
    <base href="MyURL/reports/rwservlet/getfile/HXDcQdI8VQ/QC6Q=/58327007.htm">
    </head></html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1257">
    </head>
    <body dir=LTR bgcolor="#ffffff">
    </body></html>
    I think, that first docume[i]Long postings are being truncated to ~1 kB at this time.

    Sorry, my question was ower 1 Kb. My question is:
    I am thinking, that additional document without META may be reason for bad initial encoding.
    Am I right? How can I suppress this first document? Is there another way for solution of this problem?
    Sorry for my english. Thanks for help!
    Algis

  • Simultaneous preview AND distribution with WEB.show_document

    I would like to be able to run a report via web.show_document, showing it to the user AND, at the same time, distribute it to destination list.
    I can do preview (distribute=no) OR distribute (distribute=yes), but not both.
    Am I missing something?

    You are generating a text file you say. Is it a pure text file? Or is it html that you wnt the user to view in the browser?
    In what versions of IE is this happening in?

  • [Solved] Problem with Web.show_document

    Hi all,
    In the custom.pll I use a Web.show_document() to get a file from the server.
    The URL is for example "http://10.0.0.20/test/159083.apn"
    I tested this and the browser (IE) is opening this file as a text file.
    Now I want that the .apn file must be opened with a specific program. So I added .apn to the registry.
    I typed manually http://10.0.0.20/test/159083.apn in the browser and the program I prefer is starting up now.
    But if the custom.pll executes the Web.show_document() now in a split second I see a flash of a screen and that screen is closed again. I don't know what screen but I think it is the browser.
    After that nothing happens anymore.
    Does someone here has any idea of what is going wrong

    Solved it.
    It's a browser security issue.
    In the custom security settings "Automatic prompting for file downloads" must be enabled.
    If this is disabled you normal get the yellow warning bar. But with Web.show_document() the browser opens and closes very fast.

  • Linked Reports with Web Intelligence Rich Client

    Hi,
    Is it possible to build a linked report with WebI Rich client without using InfoView?
    Assume the following simple report which select some fields of a file transfer information.
    TransferID      Filename   Transfer Status
    1                        a                       OK
    2                        b                       OK
    3                        a                       NOK
    Now I want to click on the record with TransferID 3 and get some more information for that particular record such as:
    TransferID      Filename   Transfer Status  Date  Duration
    3                        a                       NOK         Feb 24      5
    In other words, I'd like to do select of that table with the where condition "TransferID = 3" which corresponds to the record I clicked in my initial report.
    Thanks a lot,
    Kurt

    Hi Kurt
    Have you found any solution for "to link two tables in one WebI report without InfoView".
    I will appreciate if you can share the same.
    Regards
    Naveed

  • How to run report in web and pdf format

    hi all,
    i am using developer 9i.
    i can run the report in paper layout but i could not be able to run that report in web layout.
    i have no html backgroud so what modification i have to do in the web source?
    and how to run the report in pdf format.
    thanks
    Muhammad Nadeem
    03469307639

    hi
    you have run report in web than i help you
    you use script lung in you from miss and form eaxm asp script
    you have create report in char fromat
    and call report using script script to define report content all thing are long process if you need then i give you , but in pdf format i not tri it but it's easy
    i my project i have create report and to convert in to txt file and file are show in script in web

Maybe you are looking for