Run report from forms - Cannot change file name in report node
I am running a report (9i) from forms (9i) and I changed the name of the report in the filename field in the report node (in object navigator).
I noticed that I get the error FRM-41214 on the RUN_REPORT_OBJECT line when I run the form, if I've changed the filename from what it originally was. e.g. It was originally rep44.rdf and I changed it to rep55.rdf, but I get this error unless I keep the rep44.rdf filename. Why? Is there somewhere else I should change this filename?
To view the reports queue open this URL:
http://<server>:<port>/reports/rwservlet/showjobs?server=<repserver>
Also, try running the report stand alone, not from Forms.
http://<server>:<port>/reports/rwservlet?server=<repserver>&report=rep55.rdf&userid=<un>/<pw>@<db>&destype=cache&desformat=PDF
Similar Messages
-
HELP! Suddenly cannot change file names..
Last night after a brief power cut I found, inevitably, I had lost a photoshop image I hadn't saved, but everything else seemed OK. To be sure I checked Disk Utility. The HD was OK but some odd issues appeared in permissions which I told to repair. This then said all OK.
Whether my present problem is related to the power cut or repairing permissions I don't know, but -
Now I cannot change file titles. If I click on an icon title to bring up the normally re-typeable title pane, and try, nothing happens. I'm stuck with the existing name. Is there a simple way of rectifying this?
Guidance please........
Intel iMac 24" 2.16Ghz 2GB Mac OS X (10.4.10) G4 OS9Ooops... I just did a Restart and the title function works OK again! But why did it lose its functionality last time?
-
Ok so I have the Creative Zen V Plus 4 Gb Mp3 Player for a while now, and I've been able to use it, but recently I was trying to change the title on some of the tracks on it, and I can change it on the computer, but once I unplug it it hasn't changed anything. Does anyone know what I can do? Thank you very [email protected]
When you say you changed the file names on the computer are you doing that to the files on the device or the files that are stored on the computer? If it is the files on the computer you will need to change it by right-clicking the file & changing them thru the properties,erasing from the player & reload the changed [email protected]
-
FRM-41214 unable to run report from forms with parameters
Hi all,
I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
I used set_report_object_property to pass the parameters.
Any clues to solve this problem?
PriyaHi Jeneesh,
Code is below:
myreport1 :=find_report_object('MYREP');
reportdata := Get_Parameter_List('reportsdata');
IF NOT Id_Null(reportdata) THEN
Destroy_Parameter_List( reportdata );
END IF;
reportdata := Create_Parameter_List('reportsdata');
Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
/* Setting the properties into Report Object */
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
/* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
/* Checking for Report Server is started or not, if not throw an exception else proceed */
if vrep = vrep||'_0'then
raise form_trigger_failure;
end if;
vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
vrep_status := REPORT_OBJECT_STATUS(vrep);
/* Checking the status of the report */
WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
vrep_status := report_object_status(vrep);
END LOOP;
/* When the report status is successful then report is generated in Web */
IF vrep_status = 'FINISHED' THEN
-- COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
END IF;
---Any clues? -
here is the scenario
i connect to a oracle 9i server from home. i use winxp and 9i Developer to create database applications. when i need to run forms i have to start an OCJ4 Instance, i have a problem though....
i need to run a report from a form and have tried the following methods:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('rptRequest');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
v_rep := RUN_REPORT_OBJECT(repid);*/
END;
this results in REP-0503 "You did not specify the name of a report"
i have also tried:
WEB.SHOW_DOCUMENT('http://localhost:8888/reports/server=repSRV&report=rptRequest.rdf&desformat=pdf&userid=user/pass@ORASERV¶mform=no');
but this display page cannot be found.
Where is the report server i should be pointing to?
thanks for your helpMichael,
the default Reports Services is started by a request to the Reports Servlet "rwservlet". To run Reports from Forms I suggest to install the Reports Services as a separate process that can be controlled by a Windows Service
iDS Home\bin rwserver -install <Reports Services name you want to use>
This creates a Windows Service for you that starts/stope the Reports Server. In Forms you use set_report_object_property() built-in to set the Repors services name to teh one specifie when installing the Reports Services process. Alternatively you can set the name in teh Report node property palette.
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, SCREEN);
This is not a valid option when running a report on Reports Services. Try destype CACHE and set the desformat to either HTML, HTMLCSS or PDF.
Read http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf and 10 days no longer should be a problem.
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 -
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 -
hi,
I am having problems in running report from form.
I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
Name REPORT7
FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
Execution Mode Batch
Communication Mode Synchronous
Destination Type Cache
Report Server 9irep
and in when_button_pressed trigger
DECLARE
Report_Id REPORT_OBJECT;
Report_Job_Id VARCHAR2(20);
Report_Status VARCHAR2(80);
Report_Svr VARCHAR2(20);
BEGIN
Report_Id := FIND_REPORT_OBJECT('REPORT7');
Report_Svr := '9irep';
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
END LOOP;
IF Report_Status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
else
message ('report server failed with error message '||report_status);
END IF;
END;
i have installed report server with following command
rwserver -install 9irep
i have changed entry in rwservlet.properties like
SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
<!--security id="rwSec" class="oracle.reports.server.RWSecurity">
<property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
</security-->
i get the following error message when i run my form
frm-41214 Unable to run report
and then next message is
frm-41217 unable to get report job status
i debugged the report id and it is
9irep_0
returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
When I checked the Report Queue Manager
it is showing status like
(9irep)Terminated with error
and detail it shows is
Unable to connect to the specified database.
Now I am wondering what to do next.
any suggestions???????Hello,
From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
Thanks,
The Oracle Reports Team. -
I want to run report from FORM
I want to run report from FORM. The report will save in PDF format then OPEN automatically in PDF
Every PDF file should have a unique file name.
I am using Form 6i and Reports 6iDECLARE
vParamList PARAMLIST;
BEGIN
vParamList:=GET_PARAMETER_LIST('MyRep');
IF NOT ID_NULL(vParamList) THEN
DESTROY_PARAMETER_LIST(vParamList);
END IF;
vParamList:=CREATE_PARAMETER_LIST('MyRep');
SET_REPORT_OBJECT_PROPERTY('report_path\emp_rep_def',REPORT_DESFORMAT,'PDF');
RUN_PRODUCT(REPORTS,'report_path\emp_rep_def',ASYNCHRONOUS,RUNTIME,FILESYSTEM,vParamList,NULL);
END; -
Unable to run report from forms developer.
hi....
i m not very much in developer 9i.from last 2 month i m doing developer 9i.I m desiging and running
report from report builder.but i m not able to run that report from forms developer.Can anyone help to solve my problem?is there any particular extension i have to follow or any configuration(Application server) i have to made change?What code i have to write to run a report from forms?Hi frank...
Thanx for ur reply...
Actually what i did,i created a report and save that report with .rdf extension.I set reports_path(In Registry) property to the particular folder where i put all of my reports.In forms developer i add the report as report object from that folder.i set the following few lines in a button click event
--=============================================
declare
rep_id report_object;
v_rep varchar2(30);
begin
rep_id :=find_report_object('report4');
v_rep :=run_report_object(rep_id);
end;
--=============================================
when i click the button it is showing a error "You didnot specify the report name".This is all about from me what i did to run a report from forms.So should i do to run report? -
hi all,
i have tried to run report from forms using below codig(got from online help)
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
v_host varchar2(100):= 'localhost';
v_port varchar2(10);
v_parameter_string varchar2(4000);
v_username varchar2(50);
v_password varchar2(50);
v_database varchar2(50);
BEGIN
repid := find_report_object('REPORT27');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed');
copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
-- host('MOZILLA E:/Rep/local.pdf');
-- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
-- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
else
message('Error when running report.');
end if;
-- Get the full domain name of the server from the formsweb.cfg
tool_env.getvar('SERVER_URL',v_host);
-- Get the username/password and database from the .env file
tool_env.getvar('APPLICATION_USERNAME',v_username);
tool_env.getvar('APPLICATION_PASSWORD',v_password);
tool_env.getvar('APPLICATION_DATABASE',v_database);
-- If it is localhost then we are running on windows and need to use the windows port, otherwise we
-- are on AIX and need to use the AIX port
IF v_host = 'localhost' THEN
v_port := '8889';
ELSE
v_port := '8889';
END IF;
-- Now build the parameter string for running the report
v_parameter_string := 'server=repserver';
v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
v_parameter_string := v_parameter_string||'&execution_mode=batch';
v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
v_parameter_string := v_parameter_string||'&destype=cache';
v_parameter_string := v_parameter_string||'&desformat=pdf';
-- Now run the report
web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
END;
REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
but i hav report in e:\ then why its getting?Hi,
I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
<p>
from the Online Help
</p>
<p>
On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
</p>
<p>
On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
</p>
<p>
Regards
JeanYves
</p> -
How to run report from forms 6i
i want to run report from forms 6i.
can anyone help me in this regard.
asif iqbal
karachi.hi
try something like this.
parameter_list_id := CREATE_PARAMETER_LIST('temp_data');
mywhere:='where 1=1';
if :RESULT_VALUE is not null then
mywhere:=mywhere || ' and diagnosis like ''%'||:RESULT_VALUE||'%''';
end if;
if :HISTORY is not null then
mywhere:=mywhere || ' and histodesc like ''%'||:HISTORY||'%''';
end if;
if :RCOMMENTS is not null then
mywhere:=mywhere || ' and scomments like ''%'||:RCOMMENTS||'%''';
end if;
if :PATHOLOGIST is not null then
mywhere:=mywhere || ' and PATHOLOGISTS like ''%'||:PATHOLOGIST||'%''';
end if;
mywhere:=TRANSLATE(mywhere,' ','~');
ADD_PARAMETER(parameter_list_id,'MYWHERE',TEXT_PARAMETER,mywhere);
RUN_PRODUCT(REPORTS,'C:\SearchResult.RDF',SYNCHRONOUS,RUNTIME,FILESYSTEM,parameter_list_id,NULL);
ADD_PARAMETER(parameter_list_id,'PARAMFORM',TEXT_PARAMETER,'NO');
DESTROY_PARAMETER_LIST(parameter_list_id);and also u can try the following code please modify it with u r requirements.
declare
v_plist_id paramlist;
pl_name varchar2(50) := 'rep_params';
begin
v_plist_id := get_parameter_list(pl_name);
check_param_list (pl_name); --Check availability of paramlist and
destroy is present
--When the parameter list already exists it needs to be distroyed first
if not id_null(v_plist_id) then
destroy_parameter_list(v_plist_id);
end if;
v_plist_id := create_parameter_list(pl_name);
add_parameter(v_plist_id, 'P_1', text_parameter, :block_name.item);
-- input parameter
add_parameter(v_plist_id, 'PARAMFORM', text_parameter, 'NO'); --
suppress the display of the Reports p-form
add_parameter(v_plist_id, 'DESTYPE', text_parameter,
:control.dest_type); -- set file destination type
add_parameter(v_plist_id, 'DESNAME', text_parameter,
:control.dest_name); -- set file destination name
add_parameter(v_plist_id, 'DESFORMAT', text_parameter,
:control.dest_format); -- set file destination format
-- call reports
run_product(reports, 'reports_file', asynchronous, runtime,
filesystem, v_plist_id, null);
end;sarah -
hi all,
I am working in oracle forms 6i and i am trying to run report from
form while press one of the push-button. works fine upto 2nd line from the
begin key-word.After that its showing error like " FRM-40738:Argument 1 to builtin
REPORT_OBJECT_STATUS cannot be null.". Can any-one help me of how to solve this and
wat would be the problem.........?
declare
run_rep varchar2(200);
rep_obj report_object;
rep_stat varchar2(20);
begin
rep_obj := find_report_object('report46');
run_rep := run_report_object(rep_obj);
rep_stat := report_object_status(run_rep);
if rep_stat = 'FINISHED' then
copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
else
message('error when running report');
end if;
end;
Please help asup!
regards,
jamehi rosario,
Thanks for ur reply. My requirement is, I want to generate pdf file from the report output. so i wrote the following code which is taken from d2k documentation. Problem area has been highlighted in bold.
declare
run_rep varchar2(200);
rep_obj report_object;
rep_stat varchar2(20);
begin
rep_obj := find_report_object('report46');
run_rep := run_report_object(rep_obj);
rep_stat := report_object_status(run_rep);
if rep_stat = 'FINISHED' then
copy_report_object_output(run_rep, 'C:\Documents and Settings\trainee\Desktop\Icons\test.pdf');
else
message('error when running report');
end if;
end;
Report is running but while coming to report_object_status. complior shows error like "FRM-40738:Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null". Parameter for report_object_status is null, i dont know y it is null because report is running. If report is running means,then there must be some values in run_rep.
why complior doesnt find the values from run_rep.......???
regards,
jame -
FRM-41219 - Cannot able to call reports from form generated in Designer
Hi
I'm trying to call a report from form whit a button generated in Designer 10.1.2.0.2
But I'm getting error : FRM-41219 Invalid report id
I'm tying with a menu but I'm getting the same error.
Please help meNote 1056653.6
FRM-41219 Cannot Find Report: Invalid ID
Problem Description:
You are getting error: FRM-41219 Cannot Find Report: Invalid ID
Problem Explanation:
The code is using find_report_object and passing a report name to the function.
The statements are as follows:
DECLARE
repid REPORT_OBJECT;
BEGIN
repid := FIND_REPORT_OBJECT('report1');
END;
Solution Explanation:
The error message frm-41219 is a new error code which corresponds to the
Oracle Developer forms/report integration.
This message essentially means that the report cannot be found. Specifying the
correct name of a report object found in the forms object navigator (not the
actual name of the rdf file) usually resolves the problem. -
Invalid Id when i run reports from forms
When i try to run my reports from forms, i get FRM-41219 Cant Find Report: Invalid ID.
I am using 8I and Developer 6.0.
The RDF files are saved on my hard disk.
Any help is appreciated
Thanks
FadiHello fadi,
if you are still getting the problem, even when every thing is fine, just do this one, you replace with full absolute path in the place of report name when passing arguments to the run_product, i have the same problem initially but now its working hope this works, if still your problem exists, just try to build new report with default settings, it might be vauge, just try out some things work out in this way only.
have a nice day.
murali
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Fadi Anani ([email protected]):
Candace,
I am running my reports in a Client server environment. I tried both RUN_REPORT_OBJECT and RUN_PRODUCT and I am getting the same error in each method.
And Yes, My reports run fine when I run it directly.
Thanks
Fadi<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
Custom tag attribute calculated by scriptlet expression
Hi, If I set the rtexprvalue subelement of the attribute element in my tld to "true", should I be able to dynamically determine the value of my custom tag attribute using a scriptlet expression? When I include
-
So we have about 50 mailboxes that we use simply to retain emails indefinitely for record keeping. They are not owned by actual users. These obviously need to be archived every 6 months or else the disk will fill up. What I do NOT want to do is archi
-
Import image email attachment into app
I am trying to import email attachments into my iphone app. I am placing code in my info.plist with uti etc. I have successfully imported audio attachments (caf, aifc, aif, m4a, and mp3). But I am not being successful at all with image files. I want
-
Currency formating with pattern specified
Hi, I am trying to format value with Currency,in which I am successful. Now I want to apply some specific pattern over a number and then it should give me Currency formated value. For e.g. My value is "5000.25" I apply patter formating over it like #
-
How do I delete my 4 number pass code on my iPhone 4 after downloading iOS 7
How do I delete my 4 no. Pass code on my iPhone 4 after down loading ios7?