How do I launch report from menu using RUN_REPORT_OBJECT?
Hi all,
Re: How do I launch report from menu (and have it print to the screen) using RUN_REPORT_OBJECT?
I am using Oracle 9iAS on Windows 2000 and I have a similar problem with launching reports from the menu. The application should call the report via the RUN_REPORT_OBJECT builtin feature from Forms. The report is never displayed.
The report is in the same folder as the menu form calling it. Do the reports have to be in a specific format? How do I get the report_id?
The name of the report is seconds_calls. No user-specified parameters are passed. Also, the report object in the object navigator in Forms is Report4 (is this relevant?)
When I try to run report via the form using this code:
DECLARE
report_id REPORT_OBJECT;
rep_status VARCHAR2(200);
v_rep VARCHAR2(100);
report_job_id VARCHAR2(200);
-- job_number NUMBER;
-- server_name VARCHAR2(200) := 'repserver';
BEGIN
report_id:= FIND_REPORT_OBJECT('seconds_calls');
rep_status:=REPORT_OBJECT_STATUS(report_job_id);
v_rep := RUN_REPORT_OBJECT(report_id);
END;
I get this error message:
FRM-41219 Cannot find report:Invalid ID
And this message
FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
When I tried to use the same code (above), substituting the object name for the form name,
I got these messages:
FRM-41219 Cannot find report:Invalid ID
FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
And FRM-10259 Invalid null argument to packaged procedure or function (???)
Any ideas?
Cheers,
Pippa
Philippy,
substr(v_rep,instr(v_rep,'_',-1)+1)
This code extracts the Reports job id from the Reports Server name. The run_report_object() built-in
retrieves e.g. RepServ_9 as a job id, but in Reports9i you only need the '9' as a value to retrieve the
output.
Use the following sample a template. It is a procedure that expects the reports object name, teh reports server name and the
output format as an argument. The call to Web.show_document expects the ReportsSrevices to be accessible from teh same server
(relative addressing is used)
PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportobj Varchar2, vc_reportserver varchar2, vc_runformat varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
vjob_id VARCHAR2(100); /* job_id as number only string*
BEGIN
/* Get a handle to the Report Object itself. */
v_report_id:= FIND_REPORT_OBJECT(vc_reportobj);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
/* Define the Report output format and the name of the Reports Server as well as a user-defined parameter, passing the department number from Forms to the Report. We don't need a parameter form to be displayed, and therefore paramform is set to "no". */
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, vc_runformat);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'p_deptno='||:dept.deptno||'paramform=no');
vc_ReportServerJob:=RUN_REPORT_OBJECT(report_id);
/* remove the Reports Server name from teh job id */
vjob_id := substr(vc_ReportServerJob,length(reportserver)+2,length(vc_ReportServerJob));
/* Check the report status if finished. */
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status='FINISHED' THEN
/* Call the Report output to be displayed in a separate browser window.
The URL for relative addressing is only valid when the Reports Server
is on the same host as the Forms Server. For accessing a Remote Reports
Server on a different machine, you must use the prefix http://hostname:port/ */
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid '||vjob_id ||'?server='vc_reportserver,'_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
END;
Frank
Similar Messages
-
HOW TO HIDE USERID PARAMETER, WHEN CALL REPORT FROM MENU USING FORM 10G
good morning colegas
i'm from panama
when i call a report from a oracle forms menu, its send a user, pass and bd in the url, i need to hide this parameter userid,
cuando llamo un reporte desde forms, se envia el usuario, pass y bd en el url nesesito ocultar estos parametros del url, le agradeceria si alguno tiene algun eejmplo q me de, de como ocultar estos parametros
i'm using oracle forms y report 10g
this is my msn [email protected]
slds desde panamathis document show us, only when i call a report from a forms, but not from a menu!
but to hide these parameters, i need to create a bean in a block a way and the menus do not allow me to create these objects
you done this before?
you have a example?
slds desde panama -
Passing parameter to report from form using RUN_REPORT_OBJECT method
Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.
If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
Ex.
If :<field_name> = 'S'
then :dummy_field := 'School'
Else
:dummy_field := 'College'
End If;
Return (true)
2. Another option is similar to this and uses a CF.
(I would prefer CF).
Warm Regards,
Raja. -
Unable to run reports from forms using run_report_object
Hi All,
I am unable to run a report(9i) from forms(9i) in client side.
I used the following code
Declare
repid REPORT_OBJECT;
v_rep varchar2(100);
rep_status varchar2(20);
Begin
repid := FIND_REPORT_OBJECT('report4');
v_rep := RUN_REPORT_OBJECT(repid);
End;
I get the following error
FRM-41219 : Cannot find report:invalid ID.
Any help will be highly appreciated.
Thanks,
SanjayHi All,
I am unable to run a report(9i) from forms(9i) in client side.
I used the following code
Declare
repid REPORT_OBJECT;
v_rep varchar2(100);
rep_status varchar2(20);
Begin
repid := FIND_REPORT_OBJECT('report4');
v_rep := RUN_REPORT_OBJECT(repid);
End;
I get the following error
FRM-41219 : Cannot find report:invalid ID.
Any help will be highly appreciated.
Thanks,
Sanjay Hi
You have to create a report object within the form.
If you look at the Object NAvigator in the Form Builder right below Record Group
tou would see an option for Report. Create a new report object.
Set the following properties for that object
Filename - This should be the name of your RDF file you created from Report Builder along with the full path.
Set the Execution Mode, Communication Mode and Report Destination Type as per your requirements.
In the parameter for find_report_object() pass the name of the report object you created.
eg.
if the name of the report object you created is Report2 then
your call should be rep_id := find_report_object('Report2') .
You are calling the report object which has been created in your form builder and through that call you are running the report file specified in the Filename property of that report object.
Regards
Poorvi -
Call oracle reports from MENU in oracle ebs
is it possible in oracle ERP EBS R12
how to call oracle reports from menu [any screen] in oracle ebs erp r12??
please helpyou may do a few things from menus and by adding buttons, but this is not really standard.
You may add button on the form or web page that after a certain action or event. You'll have to do personalization / extension and everything is present in oracle for normal report submission.
Why this is not done thru normal submission ? -
Calling Report from Menu (Oracle Forms 10g)
We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.Here is the code to call report from menu in 10g
DECLARE
pl_id ParamList;
repid REPORT_OBJECT;
v_rep varchar2(100);
v_server VARCHAR2(100);
rep_status varchar2(100);
v_host VARCHAR2(100);
BEGIN
select rep_server into v_server from reports_data;
select machine into v_host from reports_data;
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');
Add_Parameter(pl_id,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
repid := find_report_object('REPORTOBJ');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('Running');
END LOOP;
IF rep_status = 'FINISHED' or rep_status is NULL THEN
--Display report in the browser
WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
ELSE
null;
END IF;
END; -
Calling Report from Menu (Oracle Forms 11g)
I'm trying to call a report from a menu item in a menu (that is attached to a form) in Oracle Forms 11g directly and I'm having some difficulty. I know how to call a report from a form and everything works perfectly.
But since in a menu there is no item called "Report" to attach like there is in Forms, I followed on route which is to attach the "rp2rro" PL/SQL library on the menu file (mmb) and I also even did it on the form itself. Then when you convert a menu using the Forms Migration Assistant, it will comment out statements like "ADD_PARAMETER" and replace with calls to packaged procedures/functions from the package "rp2rro". I set all the parameters
RP2RRO.SETOTHERS('PARAMFORM=YES');
RP2RRO.SETDESTYPE('CACHE');
RP2RRO.SETDESFORMAT('PDF');
RP2RRO.SETCOMMUNICATIONMODE(SYNCHRONOUS);
then made the call to the report:
RP2RRO.RUN_PRODUCT(REPORTS, 'MYREPORT', SYNCHRONOUS, RUNTIME, FILESYSTEM, param_list_id, NULL);
but all i get is the error "FRM-41219: Cannot find report: invalid ID."
The Oracle documentation for integration reports in forms is for when you execute the report within a form not a menu item (that is attached to a form). Any clues?
My environment is:
Oracle (Database, Fusion Middleware) 11g - Red Hat Enterprise Linux 5
Web Browser - Internet Explorer 7 on Windows XP Professional
Thanks,Francois Degrelle wrote:
Hello,
One option is to use the Web.Show_Document() built-in, with the complete Report Server URL inside. Of course, you can hide some information (connection string for instance) by calling a section of the /reports/conf/cgicmd.dat configuration file.
FrancoisI tried it using the code below
DECLARE
c_relative_path CONSTANT VARCHAR2(50) := '/reports/rwservlet/?server=';
c_rep_srv_name CONSTANT VARCHAR2(50) := 'rep_wls_reports_calgf3_asinst_1';
c_rep_name CONSTANT VARCHAR2(30) := 'copy_detail.rdf';
c_desformat CONSTANT VARCHAR2(10) := 'htmlcss';
c_destype CONSTANT VARCHAR2(10) := 'cache';
v_username VARCHAR2(100);
v_password VARCHAR2(100);
v_db_instance VARCHAR2(40);
v_connect_string VARCHAR2(300);
v_rep_srv_params VARCHAR2(200);
v_rep_url VARCHAR2(400);
BEGIN
v_username := LOWER(get_application_property(username));
v_password := LOWER(get_application_property(password));
v_db_instance := LOWER(get_application_property(connect_string));
v_connect_string := v_username || '/' || v_password || '@' || v_db_instance;
v_rep_srv_params := '&report=' || c_rep_name ||
'&desformat=' || c_desformat ||
'&destype=' || c_destype ||
'&userid=' || v_connect_string ||
'¶mform=yes';
v_rep_url := c_relative_path || c_rep_srv_name || v_rep_srv_params;
web.show_document(v_rep_url, '_blank');
END;
and I get a new tab in the browser opening up (which is good at least) with the Oracle Reports Services page saying:
Error
No such Web command ().
Now I've tried putting a URL of a Oracle's website (http://www.oracle.com) and that works perfectly. Another question is, where would the default directory be if I wanted to say call an HTML file? Would it be in the directory of FORMS_PATH where all my fmb, fmx, rdf, pll, etc...files are stored?
Thanks, -
Call 10g Report From Menu(.mmb)
Hi All,
I want to call a Simple 10g paper layout report from Menu.. How can I do this..
I have searched a lot and didn't find any exact answer
TIAWell m using this simple code to call my paper layout report and I have mentioned it in the report node but it gives me the error
frm-41213 unable connect report server
DECLARE
report_id Report_Object;
ReportServerJob VARCHAR2(254);
BEGIN
report_id := find_report_object('emp');
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_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'Rep60_zubairit'); /*my report server name*/
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'p_deptno='||:Deptno||' paramform=no');
ReportServerJob := run_report_object(report_id);
END;
didnt get what the actual problem is..do i need to make any changes in reports folder located in developer folder??
TIA -
Display reports from BW using WAD on blackberry
Hi All,
I have to display reports from BW using WAD on blackberry
can any one please guide me how to do it?
awaiting Reply
Thanks & Regards
Prasadyou have to integrate SAP Mobile infrastrcture with BW system to achive this.
-
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. -
How can print a report from form 6i, when I press a button?
hi Friends,
How can print a report from form 6i, when I press a button?
When i press a button from Form 6i, the report should print through printer.
I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
I want when I press a button form Forms 6i , printer will print my report directly.
Please send me the solution of this problem.
Best regards,
ShahzadHi
If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run. -
How to move a report from one account to another account
Dear all ,
How to move a reports from one account to another account.
These are reports sent automatically. Unfortunately, I do not know where to find them and how to export to another account.
PuruHi,
You can use the Transaction SCC1 to move the data from One Client to Another Client for a Client dependent table.
The data should be present in a Transport and you can import to Transport to any client using SCC1.
Contact the Basis team to know how to use SCC1.
Regards,
Aj -
How to invoke crystal reports from Oracle forms 11g R2 along with passing p
How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
how to pass parameters to crystal report, please help.how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
cheers -
Regarding tutorial of how to call Oracle Reports from APEX
Hi,
I'm trying to call Oracle Reports from APEX using this tutorial.
http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
How can I create the workspace based on OE schema?Hello Shohei,
I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
Or reference the same url from a button placed on the HTML region
(you can create a package that would create the whole URL and returns it as a string, easier for scalability)
Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
Erwin -
How to migrate webanalysis reports from System 9.2 to System 11
how to migrate webnalysis reports from 9.2 to Hyperion System 11. I know the migartion utility only works for Pre system 9 products. We have new env of sytem 11 and succesfully migrated planning and HFM from 9.2 to system 11. How to migarte webanalysis reports.
Have you been able to resolve this ?
There are various approaches possible, depending on the amount and the folder structure of your reports.
One is to use life cycle management (not sure how stable it is in 9.2), the other is the import/export tool within web Analysis
Hope this helps,
Jeremie
Maybe you are looking for
-
Hello Every one, we have third party sales order process systems in our company, one system is in Borland data base and the other is using SQL Server. presently what we are doing is sending this orders from respective databases to SAP using LSMW (XLs
-
iphone 5 stuck on searching
-
Can't edit track info on some tracks...
I've had this issue since iTunes 7.5, now I'm using 7.6. Lately I've been having problems when trying to edit track info in iTunes. Some tracks info field is greyed out and I therefore I can't make any changes to these tracks. Often it's tracks from
-
Problems re-downloading InDesign to downgraded office PC
I have recently moved desks in my office to a PC which has XP installed on it instead of Windows 7. When I tried to re-download my CC subscription to InDesign on this PC, I was given the error that I am running an operating system that InDesign no l
-
N instead of n