How to run report on Button Click in Forms 9i

Hi ,
I want to run a report , when I press button on form
it is RDF file . I have complied it and create a REP File .
I has also set the report path in registry / HKEY_LOCAL_MACHINE/ SOFTWARE /ORACLE/ HOME1
And then i has written these command line on Button click
Declare
     pl_id           ParamList;
     al_id Alert;
     al_button     Number;
     M_RepFile     Varchar2(80);
Begin
     pl_id := Get_Parameter_List('tmpdata');
     IF NOT Id_Null(pl_id) THEN
          Destroy_Parameter_List( pl_id );
     END IF;
     pl_id := Create_Parameter_List('tmpdata');
Run_Product(REPORTS,'sitereport', SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
Show_Window('MAIN');
End;
Message('Now Closing');Message('Now Closing');
But only message at last is showing . No report being open .

Look at this one
Re: Run Report10g  Through form 10g

Similar Messages

  • How to run report with selected data in form?

    Hi,
    Imagine I have a form with a Data block with this inside :
    Code | Name
    1 | Product1
    2 | Product2
    I want to run a report that will only select these 2 records from the table "product".
    I manage to run a report from forms, but it's a pre-defiined report that will always display the same things. (all the table)
    Maybe it's with the paramlist, would you have an exemple or tutorial about that?
    Edit : When I create the report object in the form, I can give the source Data Block, but how to use in the report Data Model?
    Edited by: Danicela on 24 avr. 2009 10:41

    One way to achieve this is to use a "temporary" ID-table.
    Create a table with just two columns RUN_ID and ID
    Then, in forms before starting the report, create a new RUN_ID, e.g. by using a sequence and then, for every record in your block, create a record with the RUN_ID and the record's PK-column-value, in your case this might look like
    RUN_ID  ID
    4711     1
    4711     2Commit that data in Forms (e.g. with using an autonomous transaction).
    Now, pass the RUN_ID as a parameter to the report, and in reports, restrict your query like
    SELECT ..
      FROM YOURTABLE
    WHERE ID IN (SELECT ID
                    FROM ID_TABLE
                   WHERE RUN_ID=:PARAM_RUN_ID
                 )To be clean, delete the data with the run_id in the AFTER-REPORT-trigger of the report.

  • How to run a batch file clicking a button?

    Hi All,
    Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
    Arif

    As said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
    As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
    cheers

  • How to run Reports demos?

    I finally got everything installed and I'm trying to run the Reports demos off of the mid-tier web site. when I click on the jsp report demo it brings up the parameter page. I just use the defaults and click the run button. when I do that it asks me for a SSO login/password. what do I use here? I've looked over all the docs I can think of without finding anything.
    Thanks,
    Jason

    Hi Thivan,
    See the links here:
    http://www.oracle.com/technology/products/reports/htdocs/search.html?cat=INT&col=WIP&submit=Search
    Look for "Integrating Oracle9iAS Reports Services in Oracle9iAS Forms Services"
    Another link on the above page will give you info on how to run Reports from Forms 10g.
    Navneet.

  • Very Urgent! Print Report output to local printer on button click in form

    In Sales Order Form there is a print receipt button. In current situation On Clicking the 'Print Receipt Button' it submits a XML Publisher report(PDF output) to the concurrent manager. Currently to print that report i need to go view--> requests--> view output and then print. According to my new Requirement i need to print that report directly to local printer on one simple Print receipt button click in form.
    I am trying to call the printers on server using custom.pll. The report is running successfully but it is not printing output to the local printer. I need to print the report to the local printers based on responsibility. Local printers are available on apps server. Can anyone help me on this issue ASAP.
    Is it possible to print the document using custom.pll? Is there any other alternative to print the report on simple button click in form.
    Environment: Apps 11.5.10.2, Forms 6i
    Here is the code that i am using in my custom.pll.
    if (v_form_name = 'OEXOETEL' --and v_block_name = 'LINES_SUMMARY'
         and name_in('parameter.ACTIONS') = 'PAYMENT_RECEIPT' )THEN
    l_organization_id := Name_In('PARAMETER.OE_ORGANIZATION_ID');
    l_order_header_id := Name_In('ORDER.header_id');
    select to_number(oe_sys_parameters.value ('SET_OF_BOOKS_ID')) into l_sob_id from dual;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXAFP','XXAFPOEXPMTRCRTF','en','US','PDF');
    select a.profile_option_value
    into v_printer_name     
    from fnd_profile_option_values a
    , fnd_profile_options b
    , fnd_profile_options_tl c
    , fnd_user fu
    where a.profile_option_id = b.profile_option_id
    and c.profile_option_name = b.profile_option_name
    and fu.user_id (+) = a.level_value
    and c.language = 'US'
    and c.user_profile_option_name='Printer'
    and a.level_id = 10003 ;
    if (FND_SUBMIT.SET_PRINT_OPTIONS(v_printer_name, 'Portrait', 2, TRUE, 'N'))
         then
    l_new_request_id := FND_REQUEST.SUBMIT_REQUEST('XXAFP','XXAFPOEXPMTRC',
    null,null,FALSE,l_sob_id,l_organization_id,NULL,NULL,l_order_header_id,
    chr(0), '', '', '', '', '', '', '', '', '', '',
    end if;
    fnd_message.set_string('Request Submitted for Custom Payment Receipt. Request ID is '||l_new_request_id);
    fnd_message.show;
    copy('NULL','parameter.ACTIONS');
    IF (l_new_request_id = 0) THEN
    FND_MESSAGE.RETRIEVE;
    FND_MESSAGE.ERROR;
    else
    l_commit_result := APP_FORM.QuietCommit;
    END IF;
    I need to complete this requirement immediately. Can anyone suggest me better ways in doing this.
    Thanks,
    Srinivas

    I solved this problem myself using shell script through custom.pll. I wrote shellscript and called that shellscript through FND_REQUEST.SUBMIT_REQUEST.It printed 2 copies to local printer.

  • How to run report server in oracle 9i DS

    hi..
    can any 1 tell me how to run report server in oracle 9i DS
    i've installed oracle 9i DS, but don't know how to run
    report server.
    actually i want to run a report from my form
    on button press trigger.. some of the experts r tellin
    that 1st u check whether report server is running or not..
    so pls tell me how to install report server.
    while installing oracle 9i DS, i've given Mail server
    as mysmtp.com
    Thanks
    amit

    hi ..
    i've to go in this directory n run
    rwserver -install repservername
    where repserver name is my mailserver..
    this will install reports server
    Amit

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         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
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How to add a link button in system form?

    how to add a link button in system form in the edit text?

    HI
    see the following code
    This creates an item "55" caption, and exittext ("550") and creates linked button "51" linked to "550"
            oItem = otmpform.Items.Add("55", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            With oItem
                .Top = 315 + 30 + 15
                .Left = 12
                .Width = 100
                .Specific.Caption = "Többlet"
            End With
            otmpform.DataSources.UserDataSources.Add("550", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
            oItem = otmpform.Items.Add("550", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            With oItem
                .Top = 315 + 30 + 15
                .Left = 120
                .Width = 100
                .Specific.DataBind.SetBound(True, "", "550")
                .AffectsFormMode = True
                .Description = otmpform.Items.Item("55").Specific.Caption
                .DisplayDesc = True
            End With
            oItem = otmpform.Items.Add("551", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            With oItem
                .Top = 316 + 30 + 15
                .Left = 120 - 14
                .Width = 13
                .LinkTo = "550"
                .Specific.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
            End With
    Regards,
    J.

  • How to add screen elements at run time on button click in Web Dynpro abap?

    Hello All,
    I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
    Please help.
    Thanks

    Hi Ajinkya,
    This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
    Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
    Cheers,
    Amy

  • Open a report from button click/javascript

    Hi,
    Does anyone know if there is a way to call a report from a button click? Or through javascript? I set the report to Display Results > Link - within the dashboard and then did a view source on it and found the function that calls the report from the hyperlink.
    This is the code:
    return DashboardReportLink('saw.dll?PortalGo&_scid=v-x8QJloqTY&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical&NavFromViewID=d\x253adashboard\x257ep\x253acp4tq3p9brn77o6o\x257er\x253a8a2g9nltmkrtra9n&Path=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/Archive\x2520Reporting/Run\x2520Historical\x2520Report&Action=PromptStart&Options=frdc', 'd:dashboard~p:cp4tq3p9brn77o6o~r:8a2g9nltmkrtra9n','Dashboard&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical', false)
    I added this function to the end of my javascript but when i click the button it just opens a blank page with
    http://la820119:9704/analytics/saw.dll?PortalGo
    as the url.
    Any help would be appreciated

    Hi,
    So i have been trying out a few things and the following url works to open the default view of the request:
    window.location='saw.dll?Go&Path=/shared/Plan Setup Audit Tool /Archive Reporting/Run Historical Report&Options=dfr';
    I just replaced 'Dashboard' in the code provided with the 'Go' and it started to work :)
    What i need to do though is have this work for the session variables set up on the dashboard. I have 7 prompts which a user can use to filter a request. Each is assigned to a session variable that is used to call a stored procedure. Originally i thought that by setting the variables and then calling the report from the url that the session variable values i set would be used in the request. What seems to be happening is that the variables get set and then, on calling the url, they are reset to the defaults and the report is run.
    Any help in solving this would be very much appreciated
    Una

  • How to run report through form

    dear friends
    i have a problum i craeted a report and i want when i press the button
    the report dispalyed
    please send me the code for that i tried lot but not succesed
    or any possible help
    thanks in advance
    regards
    Vikas Singhal

    Vikas,
    What have you tried so far. Could you give us a code example? Also, what version of Forms and Reports are you using? Forms 6i through Forms 10g have the RUN_REPORT_OBJECT() built-in which is the recommended way to run a report, however you can also use the WEB.SHOW_DOCUMENT() built-in to call a report. There are examples of how to use both in the Forms Help system.
    Craig...

  • How to run report in Netscape as a default

    Hi,
    how do I run reports in netscape browser.
    Reports currently are running in IE.
    In Forms - preferences I have set it to Netscape and the forms run in netscape which is what I want for reports too. Where in reports builder, i have to specify the browser settings.
    Thanks

    Hi,
    Please check the article below:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f048c590-31a4-2c10-8599-bd01fabb93d4?quicklink=index&overridelayout=true
    -Vikram

  • Report on button click

    Hi experts,
    i hope you all are doing fine.I need your help ....i generated a report in rtf format using iText and stored in a file name like 'xyz.rtf'.Now i want to open this file on button click in jsp.
    Pls. suggest me something....
    Thanks a lot...appreciate any kind of help.
    Sonika

    Thanks bsampieri,
    Thanks a lot for your reply......but it says that the requested resource is not available...
    here i am sending you the code:
    try{
    Document document = new Document();
    // step 2:
    // we create a writer that listens to the document
    // and directs a RTF-stream to a file
    RtfWriter rtf = RtfWriter.getInstance(document, new FileOutputStream("/try4.rtf"));
         rtf.setHasTitlePage(true);
         RtfHeaderFooters header = new RtfHeaderFooters();
         header.set(RtfHeaderFooters.FIRST_PAGE, new HeaderFooter(new Phrase("UNSODA DATABASE"), true));
    document.open();
    document.setHeader(header);
    document.add(new Paragraph(" UNSODA DATABASE", new Font(Font.HELVETICA, 20, Font.BOLD)));
    document.close();
    } catch(Exception e){
    out.print("erwerweror"+e.toString());}
    %>
    //and then in button or for calling report
    <tr><td bgcolor="#CCCCFF">
    <input type='button' name="Report" onClick= "<%= theFileURL%>" value="Add New Record"></td></tr>
    but it gave me this error:
    The requested resource (/try4.rtf) is not available.
    Thank you....so much
    sonika

  • How to run Net Configuration Assistant on 10g Forms and Reports server

    I have a Windows 2000 server with Forms and Reports Services installed from AS 10g v. 9.0.4 (just the Forms and Reports install). According to the OUI, Net Configuration Assistant 9.0.4 is also installed. However I cannot figure out how to run the Net CA. There is no shorcut that I can find. Can anyone help?

    Thanks for the reply Frank. I have looked all through the Start menu but see no "Configuration and Migration". I assume it's because I only installed the Forms and Reports option, so I only have Forms Services, Reports Services, and the Universal Installer. No big deal - I've already setup tnsnames manually. I just like to use the Net Assistant when I can.

Maybe you are looking for

  • Performance erosion in 2.0

    I've spent a couple of hours throwing some challenging photos at 2.0 (i.e. ones that need quite a bit of work to look good). I'm very happy with the tools in this version - effective and accessible. However, I've noticed after editing a given photo f

  • NEED HELP--HOW DO WE NETWORK MACS in 2 CITIES?

    ...for purposes of Web Site Design and accessing files. We have a small web design company in New York. My staff person is moving to New Jersey and we both want to access our web site files from one hard drive, located here in New York, so she can co

  • JPopupMenu won't die

    Hi, I'm using a JPopupMenu on a JList and I'm experiencing an odd problem. The menu never actually closes itself under a certain circumstance. Say for instance you invoke the popup menu. If you click outside the frame, the menu closes fine. However,

  • Unexpectedly Quitting Applications

    I posted on the Macbook forum about this problem and didn't ever get a solution, so I figured I'd try the OS forum. I have consistent problems with unexpectedly qutting applications. Mostly this is with AIM, but I also have had problems with VLC and

  • Free White Paper: Cisco Secure ACS & SOX/COBIT Audit

    For a free white paper on how to manage your ACS server with a view to meeting auditory reporting requirements such as SOX/COBIT please take a look at our white paper here: http://www.extraxi.com/audit.htm