Running a report from a form on the web

I have a web-based form that includes a button to run a report that needs to have passed to it the value of a field on the form. How does one have the report be returned to the screen? In client-server mode, this works fine. When using the RUN_PRODUCT built-in in the form, I can pass the field value via the ADD_PARAMETER built-in and the report will run fine, but I can only save the report to a file. When I try using the RUN_REPORT_OBJECT built-in, I cannot seem to pass the field value correctly, and again can only save the report to cache or file.

Carol,
Assume that you want to pass to the report 2 values,BLK.ITEM_1 et BLK.ITEM_2, the code will be:
DECLARE
v_param VARCHAR2(1024);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('reports_test');
v_param :='paramform=yes P_ITEM_1='| |:BLK.ITEM_1| |'P_ITEM_2='| || |:BLK.ITEM_2| |'''';
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_param);
v_rep := RUN_REPORT_OBJECT(repid);
END;
Regards,
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by carolcd ():
I have a web-based form that includes a button to run a report that needs to have passed to it the value of a field on the form. How does one have the report be returned to the screen? In client-server mode, this works fine. When using the RUN_PRODUCT built-in in the form, I can pass the field value via the ADD_PARAMETER built-in and the report will run fine, but I can only save the report to a file. When I try using the RUN_REPORT_OBJECT built-in, I cannot seem to pass the field value correctly, and again can only save the report to cache or file.<HR></BLOCKQUOTE>
null

Similar Messages

  • Run a Report from a Forms Menu

    I have a brain teaser,
    I am trying to run a report from a forms menu item. Here
    is my menu item code:
    RUN_PRODUCT(REPORTS,
    'C:\Documents and Settings\Bradley\My Documents\A_THESIS\Reports\AUCTION_EVENT_REPORT',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);
    When I call on the menu item it works for a while and then a Reports Background Engine error message says:
    REP-0110: Unable to open file 'C:\Documents and Settings\Bradley\My Documents\A_THESIS\Reports\AUCTION_EVENT_REPORT'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file
    Any ideas?
    Any help appreciated,
    Bradley

    Frank,
    I tried it at C:\AUCTION_EVENT_RPT with the same result.
    Do you ever run Reports from a form? If so how do you do it?
    Bradley

  • I need a code to run a report from a forms on 10G...

    Hi!! I´m migrating from 6i to 10G and i cant run a report... can someone send me a sample code to run a report from a form in 10G??
    Thanks!!
    Regards!

    iam using Javabean in oracle 10g forms to tun the report....
    First create a block with a name control and add an bean to it with a name
    userid_bean.click the proerty of the bean and changes its width and height
    so that u cannot see it when u run the particular form.
    now use the below code where u are coding to run the report.
    Declare
    rep_url varchar2(2000);
    begin
    rep_url := '/reports/rwservlet?report=filepath\rep1.RDF' ||
    '&desformat=htmlcss&destype=cache&userid=sample/sample@oracle' || '&paramform=yes';
    -- Write Log messages to the Forms JInitiator console.The Next line must
    -- be disabled before running this code in any production environment.
    set_custom_property('control.userid_bean',1,'ADD_USERID',
    get_application_property(username)||'/'||
              get_application_property(password)||'@'||
              get_application_property(connect_string));
    -- writing the cookie
    set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
    web.show_document(rep_url,'_blank');
    end;

  • How to run others application in Oracle Forms on the web version?

    How to run others application in Oracle Forms on the web version?

    Pang,
    guess that you want to start client side programs from Forms on the Web. There is a sample on OTN (host bean) that allow you to acces sthe client and start executables.
    Frank

  • Problem on running a Report from a Form

    Hi,
    we are using Oracle Forms & Reports runtime and builder 6.0.8.22.1, Database Version is 9.2.
    We have a Production, Pre-Live and Testenvironment all the same Database architecture.
    Problem Description:
    We created a Form with some input fields and a button for creating a report. This button creats via a pl/sql script a report object and run the report.
    This works fine on production system with calling the formsruntime with parameter userid=scott/tiger@productionserver. When we calling the completly same script, only we change the userid on "userid=scott/tiger@testserver" the forms would work fine but the report generating failed.
    The Forms and Reports are compiled against the production environment.
    Where could be the problem, it's all the same only we change the connection string.
    There are any connection information in the compiled fmx or rep file.
    Where get the Report_Object the connection information.
    Best Regards
    Markus

    Markus,
    Reports gets the connect string implicitly from Forms. This means that the way you conenct Forms to the database is the account your run Reports with. Have you double checked that you weren't passing the userid somewhere in your code?
    Frank

  • How to run a report from a form?

    i created a report from reports 6i. now i want to design an interface in oracle forms and want to call all information from report according to paramaters which i designed in oracle forms.
    i found some information that i can do that using Procedure Run_Report or Run_report_object but i could not achieved it.
    Can anyone explain me that step by step? Or anybody made an example before so a connection from form to report and send to me as a muster. probably i can find a solution for me too..thanks a lot..

    Abdetu thanks for your quickly reply but i have to say that i could not understand it very clearly because i don't have any experience about Forms and Reports. Therefore i am trying to ask my question again with examples.
    I made a report and now i am trying to connect this report to my forms. My forms has 2 search item. Account_no and Date and i have a Run button.
    If i write date "Oct" and push button "Run" i want to see whole list of Oct from Report. Therefore i made a trigger "When-Button-Pressed" and i wrote this and now my question about the parameters.
    In Forms under menu parameters should i create 2 parameters parameter01 and parameter02. and now my questions:
    1) After i create parameters should i write as a Parameter Initial Value
    2) Should i extra add paramters to reports too?
    declare
    v_Report_Id Varchar2(20) := 'RAPOR_NAME';
    v_Parameter_List Varchar2(15) := 'FormParameter';
    v_Parameter_List_Id Paramlist;
    v_Return_Code Number;
    Begin
    v_Parameter_List_Id := Get_Parameter_List(v_Parameter_List);
    If Not id_null(v_Parameter_List_Id) Then
    Destroy_Parameter_List(v_Parameter_List_Id);
    End If;
    v_Parameter_List_Id := Create_Parameter_List(v_Parameter_List);
    Add_parameter(v_Parameter_List_Id, 'PAR_01', TEXT_PARAMETER,:Parameter01);
    Add_parameter(v_Parameter_List_Id, 'PAR_02', TEXT_PARAMETER,:Parameter02);
    Add_parameter(v_Parameter_List_Id, 'PARAMFORM', TEXT_PARAMETER,'NO');
    Add_parameter(v_Parameter_List_Id, 'DESTYPE', TEXT_PARAMETER,'SCREEN');
    Run_product(REPORTS,'v_Rerpot_Id',SYNCHRONOUS,RUNTIME,FILESYSTEM,v_Parameter_List_Id,null);
    End;

  • Calling Report from a Form on the same page

    Hi,
    We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
    Please help..
    Thanks
    Kumar.

    I am trying to do a similar thing... I have created a form application component and a Report application component which is called from the search form. This works fine.
    I expose the search form as a component and put it on a portal page. I do the same with the report.
    When I call the page and enter the search params in the form and call the report, the report appears in a separate non-portal window. I would like the report in the same portal page to be run in-line with the new parameters.
    Has anyone done this before?

  • How to run multiple reports From One Form with 1 report object?

    Hi ALL!
    i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object.
    i.e
    IF parameter=yes THEN
    Rpt_new should run
    Else
    Rpt_old should run
    END IF;
    How can i do this?
    thanks
    rana

    Rana,
    I found this in the Forms online Help. You could easily found it yourself. Don't be afraid of pressing CTRL-H:
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'yourreportsfilename.rdf')Regards,
    Martin Malmstrom

  • Webutil Error when trying to run excel report from Oracle form

    I am trying to run an excel report from a oracle from but it throws me following error:
    Oracle.forms.webutil.fileTransfer.FileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getmaxtransfer will not work
    Can you tell what is this error due to and how to eradicate this.

    hi
    Did you generate .plx?
    please check if you did not generate plx and if u did not create db packages please create the webutil user and create db packages.
    here is the webutil configurations.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.hope this helps u.
    sarah

  • How to update a report  from a form on the same page when form item changes

    I have a portal form from a table and a portal SQL report with a bind variable on a page. I want the report to get updated with details based upon what was selected from a form item. The form item is a selection from a dynamic LOV. Whenever the form item gets changed, the report should get updated to reflect the change. Can this be done using a javascript ONCHANGE event?
    Oracle Portal Version is 10.1.2.2.0.

    Your applet can open an URLConnection and read directly a document from your webserver.
    public String readText() {
      java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
    }So using JavaScript on your page, you might call readText() to fill that textarea.
    The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
    The real programming is more interesting.

  • Running reports from forms on the web

    On forms and reports 6i we used the following code to run reports from forms.
    We need to do the same on 9i forms and reports, we are running into problems.
    Any help will be appreciated.
    PROCEDURE web (inFileName VARCHAR2,
    inRecordGroup RECORDGROUP) IS
    outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
    outReport VARCHAR2(200) := 'report='||inFileName;
    outUserid VARCHAR2(200) :=
    'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
    SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
    outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
    outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
    outCount INTEGER;
    error we are getting.
    FRM-42017:Module name must be specified.

    S Hatch (guest) wrote:
    : I'm thinking that you're going to have to install the Reports
    : cartridge, create an entry in the keymap with any parameters
    and
    : call your report via the url.
    : Dessislava Gantcheva (guest) wrote:
    : : How do I call a report from a form on the web?
    : : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
    EE
    : : with patch 1, Developer 6.0 with patch 1. Developer server
    and
    : : forms server work fine in a non-cartridge implementation,
    but
    : I
    : : cannot run a report within a form. I just have no any info
    how
    : : to do this.
    I have entries in my keymap file and I can call my reports via
    the url, but I cannot run a report WITHIN a form. I mean to call
    a report by clicking on a button of a form on the web. The
    RUN_PRODUCT built-in does not work (at leas it seems like this)
    If any one has expiriense with it, please, give me a hint.
    Thanks
    null

  • Can not run Reports from a Form

    Hello,
    First: I'm completely new to Oracle, even my english is not very good - i'm sorry for that.
    Problem:
    I want to run a report from a Form using the Report Server.
    If i use:
    WEB.SHOW_DOCUMENT('http://tfischer:8888/reports/rwservlet?report=C:\Oracle-Projekte\testbericht.rdf&USERID=user/password@oraapp&SERVER=SrvShadow&DESFORMAT=html&DESTYPE=cache', '_blank') - everything works well.
    But if i use:
    repid := FIND_REPORT_OBJECT('REPORT_NAME');
    v_rep := RUN_REPORT_OBJECT(repid); - always following Error-Message appears:
    "FRM41213: Anmeldung bei Report-Server SrvShadow nicht möglich" (english: registration on Report-Server SrvShadow not possible)
    I am using:
    Windows 2000
    Oracle DS9i
    Oracle DB92 (Personal edition)
    Can somebody help me, please?
    If you need more information, to help me, please ask.

    Hi,
    Try using
    SET_REPORT_OBJECT_PROPERTY
    (repid,REPORT_SERVER,"YOURSERVERNAME");
    before
    v_rep := RUN_REPORT_OBJECT;
    If you are testing the report on your PC using reports services on your PC then you may need to initiailize the reprots server using
    rwserver server="YOURSERVERNAME" install
    at command prompt.
    Hope this helps.
    -Jayshree

  • Error running 9i reports from forms.

    Hi folks,
    i am having problems running 9i reports from a form.
    i have installed Oracle 9iDS on a Win XP machine with 256 MB RAM and a Pentium 1.4Ghz processor.
    i also have a local Oracle 9i database. i have created several reports that i am trying to run from some forms but all efforts to date have failed.
    below is some sample code.
    declare
    v_rid report_object;
    v_rjob varchar2(100);
    v_rptstatus varchar2(100);
    v_jobid varchar2(100);
    BEGIN
    /*get handle to report object itself*/
    v_rid := find_report_object('pbranchlist');
    set_report_object_property(v_rid,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(v_rid,REPORT_DESFORMAT,'htmlcss');
    set_report_object_property(v_rid,REPORT_DESTYPE,'CACHE');
    set_report_object_property(v_rid,REPORT_SERVER,'repsrv');
    set_report_object_property(v_rid,REPORT_COMM_MODE,synchronous);
    v_rjob := run_report_object(v_rid);
    v_rptstatus := report_object_status(v_rjob);
    while v_rptstatus in ('RUNNING','OPENING_REPORT','ENQUEUED') loop
         v_rptstatus := report_object_status(v_rjob);
         message(v_rptstatus);
    end loop;
    if v_rptstatus = 'FINISHED' then
         /*display report in browser*/
    --      web.show_document('http://steve:8888/reports/rwservlet/getjobid'||
    --      substr(v_rptsvrjob,instr(v_rptsvrjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    web.show_document('/reports/rwservlet/getjobid'||substr(v_rjob,instr(v_rjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    else
         message('error running Report');
    end if;
    end;
    pbranchlist is defined in the form,
    repsrv is a report server i installed and explicitly started.
    on clicking the button to run the above code, i get a message on the browser status bar as follows
    opening http://steve:8888/reports/rwservlet/getjobid11?server=repsrv...
    that's it. it stays like that forever and a progress bar showing the status of the operation gets to the halfway mark and stays there for up to 15 minutes.
    I eventually halted the operation by clicking the stop button of the browser. The form then becomes totally non-responsive with the mouse indicator changing to the hour-glass shape and a small vertical bar moving rapidly back and forth at the bottom of the form window.
    My only recourse then is to explicitly close the browser window.
    I have already configured Reports to run in non single sign-on mode by setting SINGLESIGNON=NO in the rwservlet.properties file.
    Is there anything i have not done properly?
    Thanks in advance.

    Steve,
    can you check the Reports cache directory if the Reports file got created? I would assume yes, but better check.
    Frank

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

Maybe you are looking for

  • FCPX Takes 10-15 Minutes to Open a Library

    Starting today, a Library for one of my projects (an actual full project, not the "sequences" unfortunately labeled as Projects by Apple) takes about 10-15 minutes just to open, from Clicking the FCPX logo in the dock, to being in a place where I can

  • How to reduce the size of winsxs in windows 7 ultimate x64

    Ok so first off there are some caveats to responding to this question 1.) Im on windows 7, so DONT refer to some "winsxs is important" vista link... 2.) i am well aware of what windows side by side is for, and appreciate dll ____ must be bad for some

  • ACE: probe failing

    Hi, I've following probe configured: probe http probe1.test.com:10114   port 10114   interval 34   faildetect 17   passdetect interval 60   expect status 200 200   header Host header-value "hcmfincrp1.test.com"   open 1 and it is applied to serverfar

  • SelectedIndex won't reset to 0

    I have two listboxes getting their data from an XML connector. This is a sign language video dictionary. The first listbox (alphaList) is a list of letters (A,B,C), and the second listbox (wordList) is words starting with that letter. An FLV player g

  • IDM 6.0 Updates/Patches

    Anyone know if Sun has released updates to IDM 6.0..If so exactly where on the site are they located?? Thanks!