Run report thru form builder
hi
I have a table
EMP(empname varchar2(30),
empno varchar2(20),
add1 varchar2(60),
add2 varchar2(60),
sal number(10,2),
comm number(10,2)
i want create a report and
parameter form and run it thru form builder
can it possible i select column name in parameter as a list and report
show data only these column
if any solution plz help me
with thanx
I think you can achieve this as follows:
set up a new parameter, say P_FIELD, with initial value of empname
in your data model have an sql something like
Select
P_FIELD as field1 from EMP
pass the column name to P_FIELD and the report will return that column
Similar Messages
-
hi
every body
i am trying to run report thru form.it's running fine but when i choose destype file
then it doesn't show printjob message
plz help me it's show or not
if yes plz help me
with thanxHi,
what do yo mean by that it doesn't show printjob message? If you use run_report_object() ain Forms, then the only feedback you get is through the returned status message. When running a Report from the Reports Servlet, then you get receive an acknowledgement in teh Webbrowser that the Reports was printed successfully (in case you mean this message). If you like to see this message shown when running Reports from Forms, then use web.show_document() in a call to the Reports Servlet.
However, using Run_Report_Object() provides you the same information about success and failure of a Report run.
Frank -
How to run reports thru menu in 10g
Hi,
I'm a junior oracle programmer and have already migrated forms 6i to 10g. Now I have to migrate the reports to 10g. I have read many documentations about running report from forms or menu, but the more I read, the more confused I get. Please note that I am very new to all this oracle stuff. So please bear in mind that I might not understand everything too well. Thats the reason I would like help from you experts out here.
We have a menu (mmb) which has two horizontal sub menus (eg. Forms & Reports). Now Forms and Reports again in turn hv couple of vertical sub menus. Each vertical submenu under Forms calls a form (for eg. submenu_f1 calls forms1, submenu_f2 calls forms2 and so on). Same thing for Reports (eg. submenu_r1 calls report1, submenu_r2 calls report2, etc). Now this is what we want for the Reports. Each of our report has parameters like Begin Date, End Date, Agency_Type, Year, etc. We want our user to have one more choice in the parameters "FORMAT" (pdf, excel, html, etc) . Now this is what I dont know how to do. I cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms). I tried web.show_document but the problem in this is that everything is hard-coded, so I cannot give a choice in the desformat.
I would appreciate if someone can tell me how to run my report thru menu and give the user the option for the format. The users mostly want the output in excel (but might want pdf, etc too).
Plus we want to schedule certain reports to run at certain times everyday or every month, how can I do that?????
Any help would greatly be appreciated.
Thanks in advance for taking your time to reply my query.Hi,
cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms).
Create a generic named Report node in the forms that you reference from the RunReport object request. This way you can run Reports from a menu
Frank -
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> -
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. -
FRM-92101 error while running report from form
HI All,
I am getting the form error FRM-92101 while running report from form menu.My code is given below:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT47');
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('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
--Arifhi Arif
Please see this note on MOS/Metalink for some common causes of this error:
Known Causes of FRM-92101 Error In Forms [ID 604633.1]
thanks,
AMN -
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; -
When run report from form(6i) on the web,error FRM-921000
While I was trying to run report from form (6i)on the web,it will give me this error
message FRM-921000 and hang.
But when I try to call form using form,I do
not have the problem.
May I know ehat is the cause?
Anybody encounter this before?
Thanks
nullI am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
Thanks,
Jenny N.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
Dear Jenny,
I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
1. Install Oracle Reports Server
2. For WEB calls of reports use WEB.SHOW_DOCUMENT
3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
I hope this will help you.
Joseph Schwertner
<HR></BLOCKQUOTE>
null -
OAS in Unix: URL not found when run report from Form???? please help
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
nullplease check env. variables
1. FORMS60_MAPPING
2. FORMS60_OUTOUT
FORMS60_MAPPING should point to vartual directory on your forms webserver
FORMS60_OUTPUT should point to physical
directory path of vartual directory
FORMS60_MAPPING
regards
Darshan
[email protected]
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by leong([email protected]):
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
<HR></BLOCKQUOTE>
null -
Run report in form 11g with RP2RRO.RP2RRO_RUN_PRODUCT
I have installed Forms 11g R2 on Windows Server2008 64bit
using tools are :-
Weblogic Server 10.3.6
SE JDK 6U35 64bit
Windows Server 2008 (Firewall off)
Oracle Portal,Forms,Report, and Discoverer Services (11.1.1.4.0)
I try to run report within form 11g, i also attached library RP2RRO.plx in form
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'\reportname',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,null);
But there is problem Report is not working, i try to make the server on windows run command
rwserver server=myserver
it show the message :-
REP-50125:java.lang.NullPointerException
When i try to url :-
http://localhost:9002/reports/rwservlet?getserverinfo
it show the following Error
REP-52005: The specified key getserverinfo does not exist in the key map file.
Please guide and give the soultion of above problem.
Sincerely
ParkashPlease see {thread:id=1107427}.
Perhaps this is what you need to do.
Cheers, -
I've interview tomorrow , still do not know how to run report from forms
hi all ,
i asked before about running report from forms 10g rel2 , but vainly , because i could not configure the reports server ,
and no one told me .
now i've an interview tomorrow , and sure it will be included in the task which i have to do .
i am in a bad need for your step by step help
thanks in advanceExcuse me for being lazy and not searching your previous threads containing questions about configuring your reports server. As I don't know their content I don't know the links posted, the advices given and what you did, and as this is a new thread I'll go ahead and ask what you tried, where you failed and what exactly did not work out for you.
i am in a bad need for your step by step help Fine, here is an easy one:
Step 1: go to http://tahiti.oracle.com
Step 2: click on "Oracle Application Server, 10g Release 2 (10.1.2)"
Step 3: click in the searchbox, type "Configuring Reports Server"
Step 4: click "search"
Step 5: You will be redirected to some links, the very fist of them is this:http://docs.oracle.com/cd/B14099_19/bi.1012/b14048/pbr_conf.htm
This is as step-by-step as it gets, if you want detailed help ask detailed questions.
cheers -
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 -
Oracle 10g Developer suite
using OC4J
hi experts
can you please share some code here to run report from form with and without passing parameters.
regardsTry This
Declare
v_connect VARCHAR2 (200) := 'userid=nisadmin/nisadmin@abc';
v_report_name VARCHAR2(100) := 'Voucher.rdf';
v_format VARCHAR2(12) :='Htmlcss';
Begin
Web.Show_Document('http://hoitvoltes5:9002/reports/rwservlet?'||v_connect||'&server=ReportsServer_HOITVOLTES5_asin&destype=cache&report='||v_report_name||'&desformat='||v_format||'&companyid='||:voucher.companyid||'&vouno='||:voucher.vouno,'_blank');
End;
Maybe you are looking for
-
My iPhone 4S no longer vibrates or rings when I get messages or calls. Help meeee
I didn't drop it or anything. And now I am sad and my friends and family think I don't love them because I never respond to their messages or answer their calls. Mer.
-
Garageband 11 will not open in Mac os 10.7.5
I've just re-installed Ilife 11 on my Mac pro. Movie and Photo work but Garageband doesn't. When I launch Garageband it has a large screen open with a bunch of programming language. It mentions celemony, propellerhead, which are not installed on t
-
Fake desktop (so I can store information in it)?
Hi All, I'd really like to have a desktop like space (maybe one that I can toggle to somehow) where I can store current projects that I am working on. I find it really a bump in the road to have to look at these in a normal Finder window. At the same
-
Transfer of WBS to Operative Structure
Dear Experts. I have come across a unique scenario where i have a WBS element which is carrying actual cost and commitment cost in it. Now the user needs this WBS element to be transfered to other operative project. Do we have any way where we can tr
-
DMVPN GRE over IPSEC Packet loss
I have a hub and spoke DMVPN GRE over IPSec topology. We have many sites, over 10, and have a problem on one particular site, just one. First off I want to say that I have replaced the Router and I get the same exact errors. By monitoring the Termina