How to call a Report 10g from a parameter form..?
Hello,
pls i wanna know the procedure of :
How to call a Report 10g from a parameter form..?
regards,
Abdetu..
hopes it work for you.
procedure get_report is
pl_id paramlist;
p_year varchar2(4);
param_name varchar2(10) :'param';
begin
pl_id := get_parameter_list(param_name);
if not id_null(pl_id_)then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list(param_name);
p_year := year -- assign the value.
add_parameter(pl_id,'p_year',text_parameter,p_year);
execute_report('report_name',pl_id);
end;
Similar Messages
-
How 2 call a report 10g from a parameter form 10G
Hello,
pls. i need steps ,or docs how 2 run a report 10g from a parameter form ;
Is it requireD for the Parameter form to call a report an Application Server no* ???*
i had a previous experience with the code due to run the report as follows:_
DECLARE
PARAM_ID PARAMLIST ;
PARAM_NAME VARCHAR2(30) := 'REPORT_PARAMETER';
ALRT NUMBER;
ERR_TXT VARCHAR2(1000);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_REP_SERVER_NAME VARCHAR2(200);
v_ip VARCHAR2(100);
BEGIN
PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
IF NOT ID_NULL(PARAM_ID) THEN
DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
END IF;
v_REP_SERVER_NAME := REP_SERVER_NAME;
BEGIN
SELECT PARAMETER_VALUE
INTO v_ip
FROM GENERAL_FIXED_PARAMETERS
WHERE PARAMETER_ID = 'REPORT_SERVER_IP';
EXCEPTION
WHEN OTHERS THEN
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
END;
PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
ADD_PARAMETER(PARAM_ID,'group_id',TEXT_PARAMETER, :group_id);
repid := find_report_object('WH_R01_GRP_ITEM');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_rep_server_name);
v_rep := RUN_REPORT_OBJECT(repid,PARAM_ID);
WEB.SHOW_DOCUMENT('http://'||V_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||v_REP_SERVER_NAME,'_blank');
-- http://server_name:8889/reports/rwservlet?report=rep_name.rdf¶mform=yes&destype=CACHE&desformat=htmlcss&userid=id/pass@conn
END;notice here the value of V_IP it is retrieved from the following table desc...
The table desc GENERAL_FIXED_PARAMETERS that i select from the values are as follows:_
SQL> DESC GENERAL_FIXED_PARAMETERS;
Name Null? Type
PARAMETER_ID VARCHAR2(200)
PARAMETER_VALUE VARCHAR2(200)
PARAMETER_DESC VARCHAR2(200)
MODULE VARCHAR2(200)it's stored value is as follows:
SQL> select * from GENERAL_FIXED_PARAMETERS;
PARAMETER_ID PARAMETER_VALUE PARAMETER_DESC MODULE
REPORT_SERVER_IP rep_oraas_OracleAs_10gNotice here the value of the PARAMETER_VALUE is a string ; as if it's a generic value to be applied on any REPORT_SERVER_IP this value ...
Where Should i retrieved or Get ???
That was long time i can't remember pls help me 2 run my report what should id
i searched the google but there is a missing link can u help and guide me it's urgent pls.
if needed 2 start oc4j for reports , setting pathes ,fonts, enviroment file etc.
The report object's property in the object navigator is as follow:_
+ Oracle Developer Integration node :
File name : My_Report_name
Execution Mode: Runtime
Communication Mode : Synchronous
Data Source data block :NULL
+ Reports node:
Report Destination Type : FileThanks in advance,
Regards,
Abdetu...Thanks InoL for reply,
REPORT_SERVER_IP is not correcti had doubted but wasn't sure of it...!
My First Question was :
Is it requireD for the Parameter form to call a report an Application Server no ???*the answer i found is Yessss
Regards,
Abdetu... -
How to call a COM object from an Oracle Form?
Hi All,
Pls advice. How to call a COM object from an Oracle Form?
Thanks.try asking the "Form" forum
-
How to Call Crystal Reports XI from Oracle Forms 6i
hi can any one ,Please provide me the steps to call Crystal Reports XI from Oracle Forms 6i
very urgent please
if any Doument,attachment please send to [email protected]
Thanks in advance
Regards
S.Thirumalai selvanHi All,
Can anyone send me the steps to call Crystal Reports XI from Oracle Forms 6i (client/server)?
Thanks in advance, Lidija
My email is: [email protected] -
How to: Call a Report (9i) from JDeveloper
Hi,
how can i call a Report from JDeveloper and how can i create a PDF File from an available report.
I have created both, a jsp file and a rdf file.
Thanks
AchimHello Achim,
You do not need to create multiple files:
- you can create a single file from the Builder and specify 'Paper anfd Web Layout'
- save the files as JSP
In this case the JSP file contains the both layout Paper and Web, in this case you can:
- edit the web source (JSP) from JDeveloper
- use Reports Builder to edit the Paper Layout -that you can format as PDF-.
Regards
Tugdual -
How to call Oracle Report 6i from a java swing/ejb codes (client server)
Hi to all.
We now have to do reports using Oracle Reports that have to call from Java Swing (interface) / EJB (Backend).
How can we call the Oracle Reports 6i from Java Swing?
Do anybody done that?...Any ideas? Where should we find the resourse, if any?
Thanks in advance and best wishes to all,
Rushdan.Hi,
6i
1) One way
Runtime.getRuntime().exec("rwcli60 report=test.rdf .... server=server_name ...<cmd line params>...");
2) From swing, open a browser and submit request programmatically
Re: Calling reports6i reports from java swing client serve application
Thanks
Ratheesh -
Reports 10g problem: Before parameter form trigger(BPFT) problem
In report bilder there is no problem - I get parameter form wit all the parameters, I initialized in BPFT
function BeforePForm return boolean is
s_date date;
begin
s_date := Trunc(SYSDATE);
if :PAR_TEM_OD is null then
:PAR_TEM_OD := '1';
end if;
if :PAR_TEM_DO is null then
:PAR_TEM_DO := '9';
end if;
if :PAR_DAT_OD is null then
:PAR_DAT_OD := s_date ;
end if;
if :PAR_DAT_Do is null then
:PAR_DAT_Do := s_date ;
end if;
return (TRUE);
end;
PAR_DAT_... is data type DATE wit input mask DD.MM.YYYY.
REPORT crashes when I run it from forms - no parameter form is displayed. When I initialize only CHAR PARAMETERS IN BPFT then I get result - parameter form is displayed. . The problem is when I want to initailize DATE parameters.
Any idea?
GordanWhy are you using srw.do_sql here? You are just performing some sql and pl/sql statements here. This is an explanation of do_sql in the Report Builder Help:
"Since you cannot perform *DDL statements* in PL/SQL, the SRW.DO_SQL packaged procedure is especially useful for performing them within Report Builder, instead of via a user exit."
So, your code would simply be:
function BeforePForm return boolean is
segment2 varchar2(10);
begin
select segment1
into segment2
from xxmssl_po_headers_all
where rownum<2;
... etc. ...
end; -
How to call a report 9i from form9i
I have tried many and many times but failed. Could you offer a simple tutorial.
Form: 9i
Report: rdf file
error: REF-0503: You did not specify the name of a report
or : unable to run the report
when-button-pressed trigger:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT1');
v_rep := RUN_REPORT_OBJECT(repid);
Web.Show_Document('http://vteit-0392:8888/reports/rwservlet/getjobid' ||substr(v_rep, 18) || '?server=mysrv');
END;I think you specified report object name incorrect.
in command line:
repid := FIND_REPORT_OBJECT('REPORT1');
Report1 must be name of report object in Form Builder.
However to call report from Oracle Form you must do more work. For example:
- Create report server name
- Adding some code to set property for report object base on report server you created.
Cheer! -
In Oracle 10g, How to call a report since an option of a menu (*.mmb)
Hello
In Oracle 10g, working since the browser, how to call a report since an option of a menu (*.mmb)? I know to call it in a form (*.fmb), therefore uses the fields bean area and the objects reports, but in a menu there is not neither canvas, neither fields, neither reports. Someone would be able to help me with that?
Kisses. Thanks.
AnnieI understand that you had sent me everything,
I sent for example to you that, no to insert it in your item's menu code,
then,You have to modify it.
... but
a menu (mmb) doesn't have to define him reports
objects... then, what parameter I send to the
function FIND_REPORT_OBJECT:
This is not true
Try out this, and then let me know
You do not need to have a report object defined in the menu. It is enough to have it in forms.
I tried to call a report from the menu in the folowing way:
I created a menu and wrote the following code in one item:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('report2');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'reportserver1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'C:\p.pdf');
v_rep := RUN_REPORT_OBJECT(repid);
END;Then I created a form with a report object called report2.
I attached the menu to this form and while running this form, I was able to successfully run the report.
In your case, you have to make sure that you have the dummy report object in each form that will have this attached menu.
You can replace by the actual report name as you have written in the code.
Regards -
Calling crystal reports 11 from oracle forms 10g
Could you provide me step by step a solution on how I can call crystal reports 11 from oracle forms 10g application.
Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun -
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 CabralHi
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 call a Shell Script from Report 6i
Hi All,
Can anybody tell, how to call a Shell Script from Report 6i.
Thanks in Advance,
Balatry the SRW.USER_EXIT (user_exit_string CHAR);
-
How to call BI report from web dynpro
Hi ,
How to call BI report from webdynpro application and what are the prerequisites for that .
Please provide an example to work with BI application frame UI element
ThanksHi Rajpal,
Please go through this..
calling BI report
Cheers,
Kris. -
How to call crystal report from plsql
How to call crystal report from plsql?
http://asktom.oracle.com/pls/ask/f?p=4950:8:14685899341865976974::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241,
-
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:
user501763Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun
Maybe you are looking for
-
I want to trigger the end of page for the secondary list. The secondary list is displayed as a window. Is there any way to do this ? Thanks in advance.
-
My TiddlyWiki is not saving properly in FF4.
I just upgraded to FF4. Now, when I try to save my TiddlyWiki after editing, it always fails to actually save. It tells me it has saved, but the next time I open the file, everything new is missing. Is there a fix for this?
-
Connecting MacBook (2007) to iMac (2012)?
Hi! I have a broken old MacBook from 2007, i have a files on this which I would like to transfer to my reasonably new iMac which I brought in 2012. My question(s) is what cable would I need to transfer data from my old Macbook to my iMac, would I als
-
SLES 11 - Oracle 10g or Oracle 11g
Hello guys, i have tested the newly released SuSE Enterprise Server 11. We need this OS release, because of some SAN implementations, so SLES 10 is not an option. I tried to install an oracle 10gR2 and oracle 11gR1 database, but the installer does no
-
Can any 1 tell me if E51 supports voip over wireless lan? I have Cisco VOIP in my office. Can I configure e51 to use wifi for voip?