Report Running From Forms

How to Run a Report from Form Builder
i use Run_report_object function
by givng report object name created in form
report is already created
i receive error message 'Report Name is not given'
Kashif Khan
------

Here is an example. This is the when-button-pressed trigger. I use the in-process reports server and therefore the web.show_document, but executing the run_report_object is similar.
Hope this helps.
Z.
DECLARE
rep_url varchar2(2000);     
myenvid varchar2(128);
BEGIN
-- Check to ensure we have a valid record first
if :PPS_AIR_MISSION.UNIQUE_ID is null then
message('No air mission record is displayed to generate the report.', ACKNOWLEDGE);
message(' ', NO_ACKNOWLEDGE);
null;
else
Tool_env.Getvar('JTLSAAR',myenvid);
rep_url:='/reports/rwservlet?&envid='||myenvid||'&&report=aar_amhist1.rdf&ssoconn='||myenvid
||'&desformat=pdf&destype=cache&paramform=no'
||'&MISSION_ID='||
'"(''' || :PPS_AIR_MISSION.UNIQUE_ID || ''')"' ;
-- synchronize and run the report
SYNCHRONIZE;
WEB.SHOW_DOCUMENT(rep_url,'_blank');
end if;
END;

Similar Messages

  • 4.5 to 6i migration or report calling from forms in XE???

    Hi Friends,
    I really appreciate your helping tendency. Let me explain the whole scenario.
    My application basically consists of
    Forms [32 Bit] Version 5.0.6.8.0 (Production)
    Report Builder 3.0.5.8.0
    Oracle Enterprise Edition Release 9.2.0.1.0 - Production
    Now we migrated our database into Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production. After the migration all the existing forms and report individually were running without any problem. But there was a huge problem. Whenever I tried to call any report from any form the report engine appeared and then stopped responding. So report calling from forms was not possible after the database migration. I was suggested by someone from OTN forum to migrate my forms and reports into 6i. I have started doing the migration using ifcmp60. WIth forms 6i, reports can be called from forms. But I am facing problem in every other steps. There are many things are not working after the migration though the migration log shows no error. For example, COMMIT_FORM, EXECUTE_QUERY (for detail table), LOV, TOOL.GETVAR lots of things are not working.
    My application has 200 forms and 250 reports.
    Please help and advise on:
    How to call reports from form when the database is XE Or
    How to overcome the stated migration problem
    Rgds,
    Luther

    Dear Mark:
    I have two choices. I can either migrate to 6i or I can go with the existing 4.5. If I go with 4.5 ......the reports are not being called from forms. This problem is happening after I changed the database from 9i to XE. Please advise what to do so that I can keep my forms in 4.5, database in XE and can call reports from forms.
    Rgds,
    Luther

  • Accessing clustered report servers from Forms

    Hi
    The "Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services 11g R2 (11.1.2)" manual in Section 2.5 talks about setting up a High Availability environment for Reports.
    It discusses how to set the cluster configuration and how to create a reports job repository in the database. It says that you need to have a unique name for each report server, finally it says that you should use Oracle Web Cache to load balance for the reports cluster.
    If you are calling the report server from Forms with a run_report_object then you don't go via the web cache, so I am confused how you send your report request to the reports cluster in a load balanced fashion.
    Has anyone done this or can explain how this works for Forms?
    TIA
    Tony

    I know that this is an old thread, but I've taken the liberty to bump it up, as I have the same question.
    The Reports documentation describes quite succinctly how to configure the report servers to be clustered - no problem there.
    The issue is that when you run a report from forms using run_report_object, you are required to specify a report server name. The Reports docs specify that all of the server names must be unique, so this seems to indicate that you cannot use a clustered report server environment from Forms, or am I missing something somewhere? Oh, wait - an insight coming here - Can you (I'll test this, but it would be good to know) specify a cluster name instead of an actual report server name? Google to the rescue:
    Using RUN_REPORT_OBJECT: If the call specifies a Reports Server cluster name instead of a Reports Server name, the reports_servermap environment variable must be set in the Oracle Forms Services default.env file. If your Oracle Forms application uses multiple Reports Server cluster names, you can map each of those cluster names to a different Reports Server using reports_servermap in rwservlet.properties, as follows:
    There's the answer. Sometimes writing the question down helps figure out the answer :)
    Regards,
    John

  • How would I display paper report, called from forms?

    I want to call reports 9i, from forms 9i, and display the paper report on the screen. How would I do this? So far I have gotten forms to call the report and give me a status back of FINISHED, but I don't see anything displayed on my screen.
    Thank you.

    Hi,
    you use the Forms Web.Show_Document() built-in for this. Please read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank

  • Start report server from forms.

    Hello everybody, merry chrismats to all.
    Im working with Forms & Developer DevSuite in Red Hat Linux ES/AS.
    Sometimes when I call a report from form using RUN_REPORT_OBJECT the report server is up & working but the forms dont find it & say FRM-41213 error, but after trying sometimes it begin to work.
    Question : ¿ Is there anyway to start and stop report server from forms ?
    Thanks in advanced & regards.

    Hello,
    For all queries involving testcases or queries that are potentially bug related
    we recommend you log a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    This will ensure your query is tracked appropriately and any urgent requests can be
    dealt with in a timely manner by Global Support Services. May we also take this opportunity to remind you that the Metalink Library pages contain many Forms / Reports
    articles which could be of use to you.
    Best Regards
    Denis SEGARD

  • Calling Crystal Reports XI from Forms 10g

    Any one succeed in calling Crystal Reports XI from Forms 10g,
    or using Import Java Class in Forms 10g
    to call Crystal Reports XI
    or any other method to invoke crystal Reports XI from FORMS
    share your Knowledge to OTN
    please provide me the steps,documents to [email protected]
    Message was edited by:
    user501763

    Hi,
    Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
    -Arun

  • 10g Report not running from Forms if called thru paramform on other domain

    Hi...
    I'm using Dev10g Rel.2....If I call a report with paramform=no and pass it a value from forms then report runs well. but if I call report thru parameter form and pass value from parameter form the report doesn't run with error:
    The webpage cannot be displayed.
    Interesting fact is that If I call the report from a client on same domain as that of Application Server then it runs even thru paramform. I've also entered the application server I.P and name on other domain's client but no way. Can u guess whats the problem there???

    It sounds like a Firewall permissions issue to me. You might want to have your Firewall admin watch the firewall as you run your form to see if the packets are getting intercepted and blocked.
    Hope this helps,
    Craig
    If a response is helpful or correct, please mark it accordingly.

  • Run report 9i from form builder 9i

    Dear all,
    I build report from report builder 9i.
    How to run this report in form builder 9i.
    Best regards,
    Jansen Hutagalung.

    Jansen,
    I really like short questions, but yours missing the point. What do you mean by running Reports from Forms builder? Do you mean how to run it from a Forms application started from Forms builder? There is a Whitepaper in teh collateral section of otn.oracle.com/products/forms that immediately makes you an expert in Forms/Reports integration
    Frank

  • Running a crystal reports viewer from forms

    Greetings,
    I am using Oracle Forms 10g!!
    I have a form that is used to invoke a crystal report viewer using the HOST command. The viewer has the ability to pass in a id and password. When I try to run it I get:
    Logon failed.
    Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
    The report runs fine otherwise.
    Regards,
    Bill Chadbourne

    I have the following in my WHEN-BUTTON-PRESSED trigger:
    CLIENT_HOST('cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE" jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray') ;
    When I click the button I receive:
    Logon failed.
    Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
    If I change the trigger text to:
    CLIENT_HOST(' cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray" ') ;
    (From the CMD window) 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
    I would rather not use a .bat file, if possible.
    Regards,
    Bill Chadbourne

  • Calling reports 6i from Forms 9i

    Hi All,
    I am updating a menu application that we run from 6i to 9i. The menu app form is a list of reports. The runtime path for each report is returned to menu_link_all.path.th Works great in 6i form and reports however, I can not figure out how to get the same from the 9i form calling a 6i report.
    Here is the code I am using from the 6i form....
    PROCEDURE p_run_item IS
    -- parameter list
    pl_id     ParamList;
    pl_name     VARCHAR2(50) := 'pl_item_id';
    v_report     varchar2(100);
    BEGIN
    p_logon(:menu_link_all.schema_name, :menu_link_all.password,:menu_link_all.connection);
    if :menu_link_all.item_type = 'R' then
         set_report_object_property('view_report',report_filename,:menu_link_all.path);
    v_report := run_report_object('view_report');
    elsif :menu_link_all.item_type = 'F' then
    -- call modal form if connecting to any database other than qlqls/qlqls@qpro
    -- otherwise other open forms will also lose their connection to their respective databases
    if upper(:menu_link_all.schema_name) <> XXX'
    and upper(:menu_link_all.password) <> 'XXX'
    and upper(:menu_link_all.connection) <> 'XXX' then
    call_form(:menu_link_all.path,NO_HIDE,NO_REPLACE,NO_QUERY_ONLY,SHARE_LIBRARY_DATA);
    else
    open_form(:menu_link_all.path,activate, session, share_library_data);
    end if;
    elsif :menu_link_all.item_type = 'O' and :menu_link_all.web_item = 'Y' then
    web.show_document(:menu_link_all.path,'_self');
    else
    host(:menu_link_all.path);
    end if;
    END;
    Within the report property pallette filename := placeholder
    I did not write the original and am not sure why the filename is set to placeholder would appreciate knowing though
    Looking forward to your response
    Chris

    My TNS problems are a result of our Network guys insisting on deploying everything through Novell Application Launcher, and pushing down TNS with the apps. We currently run systems that talk to 7.3 client, 8 client and 9 client I do not need to tell you what happens when the techos that reimage PC (2000 odd) leaving the user to deploy each of their apps which of course they never do in the correct order etc etc etc....
    Will take your advice and stay with 6i as long as Oracle keep supporting it, hopefully one day they will realise that some of us need to operate in a client server environment.
    Cheers and thanks
    Chris

  • How to Find the Hostname / IP Address of Reports Server From Forms

    Hi
    We have following query to find out on which machine form server is running,
    but how to find hostname/ip address of reports server (if there are more than one reports server running and on different machines).
    SELECT SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT, SYS_CONTEXT('USERENV','IP_ADDRESS')
    from dual.
    can anybody answer?
    rocky rocks.

    Our oas name is the same as the box name, and the report server naming convention is rep_(oas name) so that makes it easy to find out.
    I have a pll attached to my form that contains the following function, which works for PC or UNIX based app server:
    -- get_oas_name - Returns OAS name. 
    -- caveat:  Can't be run from pre-form, when-new-form-instance or when-new-block-instance of first
    --          block on the form due to webutil limitation.
    FUNCTION get_oas_name RETURN varchar2 IS
      fp text_io.file_type;
      oas_name varchar2(30);
      op_sys varchar2(30) := get_application_property(OPERATING_SYSTEM);
    BEGIN
      if op_sys = 'WIN32COMMON' then                    
        oas_name := webutil_clientinfo.get_host_name;
      elsif op_sys = 'SunOS' or op_sys = 'UNIX' then
        host('/bin/uname -n > /tmp/oas_name');
        fp := text_io.fopen('/tmp/oas_name','r');
        text_io.get_line(fp, oas_name);
        text_io.fclose(fp);
      end if;
      return oas_name;
    END;Then in when_timer_expired (first place you can use webutil functionality) call it accordingly. I also use it to set platform dependant variables so the form will run
    when I'm working on my PC or deployed on UNIX:
    declare
      :control.op_sys  := get_application_property(OPERATING_SYSTEM);
    begin
          :control.oas_name := get_oas_name;
          :control.report_server := 'rep_'|| :control.oas_name;
          if :control.op_sys = 'WIN32COMMON' then        -- For running locally during development.                     
            :control.close_page := 'http://127.0.0.1:8889/forms90/common/window_close.htm';
            :control.rpt_temp := 'c:\temp\';
          elsif :control.op_sys = 'SunOS' or :control.op_sys = 'UNIX' then
            :control.close_page := 'http://'||:control.oas_name||'.yournamehere.com:7779/forms90/common/window_close.htm';
            :control.rpt_temp := '/appl/oas/yournamehere/reports/cache/';
          end if;
    end;Good luck,
    Gary

  • Can I call a report in Reports 6i from Forms Services 10g?

    Hi there,
    I was wondering if I could call a report in Reports 6i from my application in Forms Services 10g. If so, how could I do it?
    Thanks!

    In Forms 6i you probably did use RUN_PRODUCT to call reports. In 9i onwards you should use RUN_REPORT_OBJECT instead.
    See http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    Note that you should be able to run RDF files without any conversion.

  • 11g reports calling from forms issue

    Hi,
    I am have installed the Oracle fusionware 11.1.4 version in windows XP ser2.
    I have configured the forms,reports server components and developer components.
    Forms are working fine. However i am getting the error while calling reports from the Forms.
    I am trying to convert the 6i forms and reports.
    The report calling code run_product is not worked, so i am changed the code to web.show_document.
    While running the form to call the report am getting the following error.
    REP-51019: System user authentication is missing.
    REP-50171: Authentication failed.
    Code is written in the form as shown below....
    v_show_document :='http://localhost:9002/reports/rwservlet?report='||:parameter.p_report_id||'.rep'||'&desformat=PDF&
    destype=cache&userid=SALIS/SALIS@SALIS&buffer_records=NO&debug_messages=NO&array=YES &query_only=NO&quiet=NO&RENDER=YES'||'&p_fromdate='||:CB_DUMMY.FROM_DATE||'&p_todate='||:cb_dummy.TO_DATE||'&lv_where='||lv_where||'&REPORT_ID='||:parameter.p_report_id||'&PARAMFORM=NO';
    web.show_document(v_show_document,'_blank');

    Check if you have SSO enabled:
    http://download.oracle.com/docs/cd/B14099_11/bi.1012/b14048/pbr_sso.htm#i1008966
    (this is the link for 10g but it may be the same for 11g. Look for the 11g link if this doesn't work for you).
    The report calling code run_product is not workedThat only works for Forms 6i. You should use run_report_object.

  • Calling Reports 10g from Forms 10g without an app server

    Hi
    I have Forms 10g, and for development/testing purposes I am able to run a form in my local machine using the standalone OC4J. I needn't to deploy the form to test it.
    I can do the same with Reports 10g -- run a report in my local machine without an app server.
    However, I could not manage to call a Report from a Form that way, without an app server. It does not seem possible -- is it? Is there a way to set this up using the standalone OC4J or something like that?
    Thanks
    Luis
    Message was edited by:
    Luis Cabral

    Hi
    Sorry for the late reply.
    Here's how you start the report server from windows XP machine.
    1. Choose a unique name for the report server. Eg. <your_pc_name>_repserver
    2. As the report server runs in its own process, it can be started by the following command, accessible from the \ bin directory of the
    Oracle Developer Suite or Oracle Application Server 10g installation.
    rwserver –install <server_name> . It is now treated as a windows service and hence you can stop/start or restart from the services menu.
    3. If you want specific settings for your report server, look for the <rep_server_name>.conf file under <orahome>/reports/conf directory, after starting the server from above command. This file is created by oracle automatically, once the rep server gets started.
    For more info on this, please refer to white papers on the Forms and reports integration, found on the otn->Forms.
    Hope this helps
    Suma

  • How to display the output of a reports called from forms in the same window

    Hi all.
    I have installed Forms / Reports 11g Rel2 developer only installation on my windows 7 box.
    I can successfully call a reports from forms using RUN_REPORT_OBJECT and WEB_SHOW.document, but the report is opened in a new window.
    I'd like to open it in the same widow, in a new tab, similar to ctrl-t and make a call.
    How is that possible?.
    I'm using Chrome 25.0. Could this be done through browser settings?.
    Thanks in advance ...!
    Edited by: myluism on 14-mar-2013 6:09

    Don't know for Chrome, so Google for it.
    One more thing, though. what is the 2nd parameter in web.show_document? Is it '_blank'? If not, try that.

Maybe you are looking for

  • How can I find an ID file that contains a text...?

    I've been working with InDesign for a long time. So, I have a lot of .indd files, from version 1 up to CS3. I need to find a file(s) that contains a specific text. E.g. the name of a person, that I'm sure is somewhere in my thousands of ID files. It'

  • Mapping 'Reset Panel' to keyboard

    Is there a way to map 'reset panel' (i.e resetting the video and audio destination tracks to v1, a1,a2) to a keyboard shortcut? thanks, John Hepworth

  • Photoshop and Illustrator won't install.

    The download status bar on the application manager gets all the way to the end and gets stuck there and the program never installs. I left Illustrator for three days and it was still stuck. It also took more than 24 hours to install InDesign. I tried

  • Text or images?

    I've read lots of posts about png images. I suspect that I may have this problem as my sites aren't showing up as much as I'd like in Google. All 3 sites have been verified and have sitemaps. How do I determine if png is the problem and how do I fix

  • Cannot delete Acrobat documents in Windows 8.1

    When using windows 8.1, I cannot delete acrobat files readily if the view window in explorer is opened.  How I can change this?