How 2 Cre8 Parameter Form 4 Report Running?

Hi All!
I don't know how 2 cre8 parameter form in form developer 10g but i tried this please check it out and guide me.
1)i have create a simple tabular report "rpt_dept.rdf" in report developer 10g.
The query is
SELECT DEPTNO,DNAME,LOC FROM DEPT
WHERE DEPTNO= :P_DEPTNO
2)Then i create a form in form developer 10g frm_dept
in this form i have create a DEPT data block in which i have only take a one field "deptno" and
one push button
3)in Reports node i have create reports object "Report10" using 'Use Existing Report File" option, by clicking the browse and navigate to "rpt_dept.rdf"
"Report10" properties
name=report10
File name=D:\GTMS_FILES\GTMS_APPLICATIONS\Reports\rpt_dept.rdf
execution mode=batch
communication mode= synchronous
data source data block=DEPT
report destinaton type=file
4) Then in when_button_pressed Trigger in put this code
Declare
     report_id Report_Object;
     ReportServerJob VARCHAR2(100);
BEGIN
     report_id:= find_report_object('REPORT10');
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'rep_uoas');
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_DEPTNO='||:Dept.Deptno||' paramform=no');
     ReportServerJob:=run_report_object(report_id);
END;
Now when i run this form and enter the deptno 10,20 or 30 and press the button it gives nothing and no report is shown
Note! "rep_uoas" is report server..
Please guide..
Please give me solution what mistake i have made
Thanks
Rana

You have to modify your code - machine_name is the name of your computer - this will run on your PC:
Declare
report_id Report_Object;
ReportServerJob VARCHAR2(100);
rep_status VARCHAR2(200);
L_REPORT_SERVER_PATH VARCHAR2(30):='http://machine_name:8889/reports';
L_REPORT_SERVER VARCHAR2(15):='rep_uoas';
BEGIN
report_id:= find_report_object('REPORT10');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,L_REPORT_SERVER);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_DEPTNO='||:Dept.Deptno||' paramform=no');
ReportServerJob:=run_report_object(report_id);
rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(ReportServerJob);
END LOOP;
IF rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT(L_REPORT_SERVER_PATH||'/rwservlet/getjobid'||substr(ReportServerJob,instr(ReportServerJob,'_',-1)+1)||'?'||'server='||L_REPORT_SERVER,'_blank');
ELSE
message('Error');
END IF;
END;
Before first running the report you have to start report server on your PC.

Similar Messages

  • Invoking Parameter form using Run Product in Web Server

    Hi
    I am facing a problem in executing a report from forms in Web
    Server
    if i use Run_Product it does not display Parameter Form ,Even if
    i assign Yes to paramform
    else
    if i use
    web.show_document it displays the paramform but does not execute
    the report ,Note:if i set paramform no the entire report is
    executed successfully
    kindly provide appropriate solution
    Thanks

    One solution is:
    1. Install Oracle Report Server
    2. Use the built-in WEB.SHOW_DOCUMENT instead of RUN_PRODUCT
    3. The only small problem is the parameter passing to the reports, but this is described well in the documentation
    4. After the first succesful run of the SHOW_DOCUMENT the RUN_PRODUCT will reestablish his functionalty,
    but we do not know when it will deliver the next surprise. So it is a bad idea to use RUN_PRODUCT before Oracle fixes the bug.

  • How pass parameter to report?

    i want to have a report which show the orders of a certain customer
    select order_date , customer_name , order_value from orders
    where customer_id = my_variable
    my variable is the parameter to be passed to the report
    How can i pass the value to the report where parameter name is my_variable
    help
    Best Regards
    Mohamed Hammed

    Hi all,
    Finally i got succeed
    here is a sample code
    and here is how to call a report from a form
    1-Form
    Create Button Action
    Custom
    declare
    input_MEMBERSHIP_NUMBER number;
    l_url varchar2(2000);
    begin
    input_MEMBERSHIP_NUMBER:= p_session.get_value_as_number( p_block_name => 'DEFAULT',
    p_attribute_name => 'A_MEMBERSHIP_NUMBER');
    l_url :=
    'http://servername:7778/pls/portal/PORTAL_DB.SPECIALIZATION_REMOTE.show?p_arg_names=input_MEMBERSHIP_NUMBER&p_arg_values='||input_MEMBERSHIP_NUMBER;
    portal.wwa_app_module.set_target(l_url);
    end;
    2-report
    SQL Used in the report:
    select * from PORTAL_DB.SPECIALIZATION_tab where
    SPECIALZATION_DELETE_DATE IS NULL
    AND MEMBERSHIP_NUMBER = :input_MEMBERSHIP_NUMBER
    order by DEPARTMENT_CODE

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • How to compile forms & Reports in 10g

    Hi Guys,
    We are migrating an application from Forms & Reports 6i to Oracle 10g. We have Windows based 10g IDS, Application Server is on HP-UX and Database also on HP-UX. We are migrating the forms & reports successfully on windows using 10g ids. while deploying forms & Reports in application Server on HP-UX, it will not work as platform is different.
    So my question is,
    How do I compile all forms & Reports under unix environment using Application Server?
    Can you people help me out at the earliest?
    Thanks

    Hello,
    Use rwconverter.sh for Reports and frmcmp.sh for Forms .
    Regards

  • How to deploy Forms/Reports 9i Application on Internet

    Hi Forms gurus,
    We install Oracle 9IAS Server on LINUX to deploy Forms/Reports 9i applications. Applications are well deployed using the local network.Now we want to deploy using Internet. I would like to know, the step i must follow to do this.
    PLZ it's very important. I'm waiting for your answer.

    A technique should might be to create a WAR file with fmx and rdf inside, an deploy it.
    For creating WAR file, use Jdeveloper or ant.
    For deploying war file, use Oracle9iAS EM control, and add the war to OC4J_BI_FORMS instance.
    Then, either the formsweb.cfg is already configured, or you need to add some setup (to be done ...).
    A brand new formsweb.cfg file can be give as a parameter of OC4J startup (if needeed).
    If the fmx are not already made for Linux, you must do it before packaging them in the war file.
    Of course, it's just a track to explore, but it can be interesting in case of a single deployement on multiple OC4J instances.
    Another way is to use WEBDAV !
    Patrick.

  • How to deploy Forms/report on Application Server 10.1.3

    Hi,
    I have Forms and Reports created with Developer10g R2, I want to deploy these with Application Server R10.1.3 but after reading a lot of manuals like Administrator guide, Installation guide, deployment Guide I didn't find a way how and where should I place my Forms/Reports and how to call it via browser, some one plz explain me or send a link where I am going wrong.
    Thanks and Regards.
    Khawar

    Hi Kashif,
    SSO (single sign on) is a feature of infrastructure. what does it mean?.
    When you intended to use SSO, then you will need to you the infra in which you have what it calls Metadata & OID (oracle internet directory) some think like LDAP server.
    so just when you want to connect through your FR&REP the user must be well known by SSO (created in OID). otherwise you can not login to your apps+DB.
    SO about your question version 10.1.3 for forms&rep servers (BI) is not availble just version 10.1.2.0.2. you can download separately or toegether with you infra. (it depends on what you want.
    You can see forms&rep server as OC4J container in which you can deploy your applications (fmx files).
    Hope it is clear now for you otherwise let me know so I can provide you with some links which will help you.
    Cheers,
    Hamdy

  • How to start Forms & Reports?

    Could any suggest a very good book for Oracle reports and forms which has all the details of the reports and forms from the fundamentals? I wanted to do forms & reports in Oracle 9i. Please provide info how to start, what is the software for this n where should I get it

    Hi,
    You can find all the information on OTN.
    Have you checked :
    http://www.oracle.com/technology/index.html
    Downloads Tab for downloading the product and Documentation Tab for finding manuals for forms and reports development and deployment.
    Regards,
    Adina

  • How to find forms/reports version 11i EBS

    Hi Gurus.
    one of my colleague asked me to find out forms/reports version in 11i system on Linux OS.
    Thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

  • Performance issue of Forms & Report running in Web environment

    Hi,
    We have been using Oracle web forms and reports but experience slow and unstable of application when run in web as java applet.
    Besides, after using quite intensively during the day or idle for some time in the day, forms is very likely to go halt, which is the biggest problem when we need to serve a lot of customers in queue. When this thing happens, the entire browser needs to be restarted. We can't afford to always do that.
    Is anybody out there face the same problem with Oracle Web Forms or not? If yes, can someone provide some guidance and advice on this.
    Really appreciate your help in advance.
    Please advise.
    Thanks.

    In the server registry entry or env variable
    FORMS60_TIMEOUT
    -- Length of time (in minutes) after which the server process shuts
    down if there is no communication with the Java Client
    (check out the online help of forms builder).
    there are some notes about this parameter on http://metalink.oracle.com

  • Forms & Reports Running Error

    Hi
    I am using the following product for the developements.
    1. FORMS 9i DS Release 2
    2. REPORTS 9i DS Release 2
    i have started the OC4J for both the products.
    When i run REPORTS 9i DS Release 2 it is doing fine... the report output is displayed
    When i run FORMS 9i DS Release 2 i am getting "FRM-10142" error.
    What should i do to resolve this error.
    If i need to make some modification in the forms server and report server, pls do give the necessary instructions to implement
    Pls do help me out.
    Regards
    Yram

    Assuming that OC4J instance has been started properly ..
    In forms builder go to menu option > edit > preferences, click on runtime tab
    In 'Application Server URL', change the URL to:
    'http://<hostname>.<domain>:<port>/forms90/f90servlet?'
    Or
    'http://<hostname>.<domain>:<port>/forms/frmservlet?'
    Save the changes and run the form again.

  • Newbie Question: How to find Forms/Reports Server Version

    Hello,
    Is there a way to easily find out what is the patchset installed for the Forms and Reports Server. I know that presently using AS 9i rel1 and Forms 6i, but how do you find out more information on the installed patches on Windows? thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

  • How to make the report run with urls supplied parameters

    I have a report that I send the report's parameters by URL.
    How can I make the report automatically run with the parameters supplied?
    So when the report opens the user does NOT have to click the "View Report" button the report would just run and display the results for the user?
    Thank you for you help.

    Take your iPad to the apple store and explain your problem. They won't make you sit there for an hour to reproduce the problem. I took an iPad back a month ago wit h screen problems. They didn't look at the problem, they just exchange it.
    Again, Apple won't make you stand on your head to reproduce a problem with one of. their produces.

  • Passing parameter form report to report

    Hi:
    How can i pass parameters from a report to another report? i mean for example, i have a report with a field called "company" and i want to link this to another report in such a way that the report would display just the company's data. so i need to pass the argument in a certain way...
    i've tried creating a link, but when editing some parameters appear by default, like _title and so on...the fact is that i don't think this are the parameters i want to pass neither the way to pass the value i want to pass.
    Anybody knows how to do this?
    Best regards. Urko.

    The same way you do it for one parameter.Create a parameterlist and use that in your call to RUN_REPORT_OBJECT, or concat a parameterstring and pass it to the REPORT_OTHER property.

  • How to revert a report run in Solution Manager?

    Hello All:
    As per  Note 1119150 - Solution Manager: EHP 3 product data missing, I ran this report RS_SMSY_PPMS_XML_UP_DOWNLOAD,
    My bad, this was for Solution Manager 4, I ran this in Solution Manager 7.
    Product Version got changed once I ran this report.
    Is there any way to revert the changes done by this report?
    Please let me know.
    Thanks a lot for your time guys!!
    Cheers,
    -Sai

    Hello Sai,
    SAP Solution Manager release 4.0 and release 7.0 are one in the same.
    There is a note that will confirm this assertion.
        1122966   Maintenance Optimizer: Notes for Enhancement Packages
    Indeed it is referenced in the footer of SAP Note 1119150
    Note 1122966 States: SAP Solution Manager 4.0 is officially renamed on May 1st, 2008 and
    becomes SAP Solution Manager 7.0. 
    Note 1119150 was released in 2007, so this was before the name change.
    Since this note applies to the release and not to a a particular SP level, it is completely valid for Solution Manager 7.0 as 4.0/7.0 are interchangeble terms.
    However the reason to run the report attached to the Note is because product version 'SAP ENH PACK 3 for SAP ERP 6.0' is missing. Is this what the product changed to, because if it did, then it is correct. What did the product version change to because you may find that you can now select the correct product, if it was missing before...which would be the only reason to have run the report.
    If the product version was missing, its likely a matter of just going back in and changing the product to the newly downloaded one that was missing. If it wasn't missing, then the report should not have been run, as the reason for applying the note instructions did not apply, and you may need to involve SAP support to assist in a resolution.
    My thoughts are since the note does apply to SAP Solution Manager 7.0, so does the attached report, and perhaps this has shuffled the product list, without moving the pointer correspondingly, so it is now pointing to the worng product. But I suspect now the correct product is in the drop down selection list.  This is just a thought as to why the product changed.
    Hope it helps to resolve.
    Regards,
    Paul

Maybe you are looking for