Reports called forms don't run
Hello,
I have an application on forms6i, the application works fine, except one pc with windows xp, , because, when I tried to run report, the report didn't run. In runtime mode, the form call report with run_product, but don't start reports backgroupd engine, and The form don't response, then I kill the session.
PLease, help me.
Regards,
Diego
Edited by: diegog on 28-abr-2009 10:33
What happend if you run another report using the same module?
It is work?
Try to create a new report without any input parameters and executing it, with a button pressed within your module.
Which version of windows XP, pro or home?
besit regards
Abdel Miranda
AEMS Global GRoup
Panama
Similar Messages
-
Hi,
I want to call a report from Form 6i at run time. And I write the following code in When Buttton Press trigger . when I press the button it will gives no response.
declare
x report_object;
y varchar2(100);
begin
x:=find_report_object('billform');
y:=run_report_object(x);
end;
for more information , path of my report is: C:\REP\billform.rdf
please send me the solution of this problem
E_mail: [email protected]
Shahzadhi,
now i am using the following code in when button press trigger. if u give me ur e_mail address i will send u FMB and RDF files used for Scott/tiger EMP table for the sample.
declare
repo_Para ParamList;
BEGIN
repo_Para:=Get_Parameter_List('Report_para');
IF not Id_null(repo_Para) THEN
destroy_parameter_list(repo_para);
end if;
repo_Para:=Create_Parameter_List('Report_para');
Add_Parameter(Repo_para,'PARAMFORM',TEXT_PARAMETER,'No');
Add_Parameter(Repo_para,'MAXIMIZE',TEXT_PARAMETER,'Yes');
Add_Parameter(Repo_para,'BDATE',TEXT_PARAMETER,:BLOCK3.a_dptno);
Add_Parameter(Repo_para,'EDATE',TEXT_PARAMETER,:BLOCK3.b_dptno);
RUN_PRODUCT(REPORTS,'c:\apu\DDATE.rep', SYNCHRONOUS,
runtime, FILESYSTEM,Repo_para,NULL);
end;
BDATE & EDATE are two user parameters created in report.
when i press the button in form pass parameters the report will be called but no data will be display but when i directly run reprot from report buider and pass same values of BDATE & EDATE it will show data.
please give me ur e mail address or help me for this problem
best regards,
shahzad -
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 -
Calling report from forms while running the application from thin clients
I am using thin client technology with 64MB RAM for running developer 6i application.
The server has windows 2000 advanced server with 256 MB RAM.
When I run the apllication from a single client, it works fine even for multiple windows.
But the moment I switch on more thin clients, the client which fired the printing job first works fine, while the others allow data entry using forms but any call to report for direct printing throws an illegal condition error. I have tried both run_product and host option for running reports. The error returned is the same.
Howver if the report is run from command prompt simultaneously from both the clients it works fine.
Immediate help required in this case
chandandeepHi,
you better off using Run_Report_Object() instead of Run_Product(). There is a Whitepaper available on otn.oracle.com/products/forms that details this. The problem that you run into is that Forms Services(thin clients) are multi user environments while Reports called via Run_Product() is a single user environment. This means that the Reports Runtime does not handle Reports requests in parallel but sequential one at a time. The first user blocks the runtime engines and all other hang for this time.
Fran -
Calling Forms 6i from Reports 6i. Is this possible. Run Product in Reports
Re: Calling Forms 6i from Reports 6i. Is this possible?
Hello,
I have need programming in Oracle 9.x and using Forms and Reports for about 1.5 years. My ERP application calls a report from a form. I DO NOT have source code for the FORM. But, I DO have source code for the Report. So, from the Report 6i, I would like to call an Oracle Form 6i. Note: Not WEB based. My question is, IS THIS POSSIBLE. I can not find a command like Run Product in Report for calling a Form Application. Can someone please help me. I am under the gun to have this ready in a couple of days. Can I call an Active X Application from Reports..if Oracle Forms DOES NOT WORK. This needs to be a Form Application because of the nature of this request.
Thank you
DennisThank you
...the ERP vendor based on a form icon button will call a report. They will pass a TAG_NUMBER from a database record (that they just inserted) to the report. This tag_number will link to other tables and will display the report. The problem is ??..there is additional information that the user needs to scan into the database BEFORE the report runs. This is part of the business work flow.
I have options.
1) Get the ERP Vendor to call a FORM based on the name I provide to them.(Not really an option since they are unwilling to make custom mod changes.)
2) Have the user key into the REPORTS PARM FORM. And I will update the tables...
3) Call an Active OCX popup FORM from Reports and then update tables. Is this possible from Reports???..I am not sure if I like to introduce ms vb into an oracle application. It just does not seem to be a correct solution/procedure.
4) Pay the ERP Vendor as a custom mod to make the changes for us. (unlikely because they do not like making custom mod changes)
5) ....any more ideas/comments please let me know..
Thank you Again
Dennis Aubrey -
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. -
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 -
HST50: Unix - How Headstart calls forms and reports uppercase/lowercase from a Menu
We are migrating a 'in production' Headstart generated application from Windows to Unix.
We had to a little time in setting the lowercase implementation names, setting the prefs to generate lowercase file.....
So good so far. When testing the application on Unix, all files are lowercase, the Forms start without a problem but the Reports won't start.... Renaming the report files to uppercase works fine.
Going through the Headstart code for calling Forms and Reports I noticed the following:
When calling Forms the qmslib50.qms$form.call procedure is invoked. In this procedure the follwoing statement is used:
l_form_name := lower(p_form_name) So only lowercase will be found....
For calling Reports from the Lauch Report Form the qms0012l.qms$report.run procedure is invoked.
This procedure calls fill_par_list where the l_module_name is set. But in this procedure no uppercase or lowercase is used......
Not consequent I think !!
Is this done for a specific reason ?
PS: Change qms0012l and it works fine.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 -
Simplest Way 2 Call a report from Forms 10g
Hello,
i am using Oracle 10g & tools 10g too,
What i am trying to do is to call a report from a form...
So one friend told me 2 use a library exists in Folder Forms90 called " rp2rro"on the installed developer10g tools,i am using the following code :
============================================
Begin
PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
IF NOT ID_NULL(PARAM_ID) THEN
DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
END IF;
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,'P_DATA_TYPE',TEXT_PARAMETER,:PERIOD_MONTH);
ADD_PARAMETER(PARAM_ID,'P_MATERIAL_CODE',TEXT_PARAMETER,:MATERIAL_DESC);
ADD_PARAMETER(PARAM_ID,'P_DATE_FROM',TEXT_PARAMETER,:DATE_FROM);
ADD_PARAMETER(PARAM_ID,'P_DATE_TO',TEXT_PARAMETER,:DATE_TO);
ADD_PARAMETER(PARAM_ID,'MONTH_ID',TEXT_PARAMETER,:MONTH_ID);
ADD_PARAMETER(PARAM_ID,'FIN_YEAR_CODE',TEXT_PARAMETER,:FIN_YEAR_CODE);
rp2rro.rp2rro_run_product(REPORTS,'Report_name',SYNCHRONOUS, RUNTIME, FILESYSTEM, PARAM_ID, NULL);
END;
The problem is that i am receiving many errors as:
frm-41219:Can't find report invalid id
frm-47023:No such parameter named rp2rroDesformat exist in form my_form_name
frm-40105:Unable 2 resolve reference to item parameter.rp2rrodesformat
can any kind guy help me pls it's urgent i have no time 2 even read a document 4 it pls help me..!!??
Regards,
Abdetu..Hi Abdetu,
Here is a procedure and simple call of the procedure witch Iam using successfully now.
PROCEDURE INVOKE_REPORT
url_and_server in VARCHAR2,
file_name in VARCHAR2,
des_type in NUMBER,
des_name in VARCHAR2,
des_format in VARCHAR2,
param_list in PARAMLIST
IS
l_report_id REPORT_OBJECT := FIND_REPORT_OBJECT('QMSREP');
l_report_job_id VARCHAR2(100);
l_userid VARCHAR2(200) := GET_APPLICATION_PROPERTY(USERNAME) || '/' ||
GET_APPLICATION_PROPERTY(PASSWORD) || '@' ||
GET_APPLICATION_PROPERTY(CONNECT_STRING);
l_report_url VARCHAR2(200) := substr(url_and_server, 0, instr(url_and_server, ',') - 1);
l_report_server VARCHAR2(100) := substr(url_and_server, instr(url_and_server, ',') + 1);
l_vcStatus VARCHAR2(100);
l_vcJob VARCHAR2(100);
BEGIN
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_COMM_MODE, ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_SERVER, l_report_server);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_FILENAME, lower(file_name));
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESTYPE, des_type);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESNAME, des_name);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_DESFORMAT, des_format);
SET_REPORT_OBJECT_PROPERTY(l_report_id, REPORT_OTHER, 'paramform=no userid='||l_userid);
-- invoke the report (currently we don't use the returned ID)
l_report_job_id := RUN_REPORT_OBJECT(l_report_id, param_list);
l_vcstatus := Report_Object_Status(l_report_job_id);
l_vcJob := substr(l_report_job_id, instr(l_report_job_id ,'_', 1 , 3 ) + 1);
WHILE l_vcstatus in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
l_vcstatus := Report_Object_Status(l_report_job_id);
END LOOP ;
if l_vcStatus = 'FINISHED' then
Web.Show_Document('http://'||l_report_url||'/reports/rwservlet/getjobid'||l_vcJob||'?server='||l_report_server,'_blank');
else
message('Failed - Status was :'||l_vcStatus);
end if;
END;
INVOKE_REPORT ('172.198.1.1:7777,rep_SRV'
,'MYREP.RDF'
,cache
,'htmlcss'
,l_par_list_id
hope this helps,
Alireza -
Running JSP Excel report from Forms 10g
Perhaps this had been discussed before, though I didn't find an exact solution.
We have a JSP report that displays data in MS Excel. Works fine if called from the url.
The report shall be called from the form passing a parameter list with PARAMFORM=NO.
Problem: reports runs as designed but opens up an empty Excel spreadsheet. No errors, no data..
We are using RUN_REPORT_OBJECT with desformat=spreadsheet and paramform=no.
We can't use just web.show_document alone since quite a few parameters need to be passed.
I've read in one of the posts that a paper layout need to be created (in addition to web layout) to run RUN_REPORT_OBJECT. We've done that, but now it does not open EXCEL, and displays paper layout in a browser.
So, how to call JSP (Excel) report from Forms passing parameter list without displaying the parameter form?
Thank youWhat is the complete Application Server version you are using? Be sure you are using 10.1.2.2
What platform and version is it installed?
What version of Excel is installed on the client?
Does it work if you use an RDF report?
Try this:
o Change DESFORMAT to DELIMITED
o Append the following to the end of the URL created in the WEB.SHOW call:
&mimetype=application/vnd.ms-excel
The result should be the same as using SPREADSHEET. -
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 -
Problem running a report in forms.
Hello!
I am having a problem with running a report in a form. I have installed on my computer Oracle developer suite 10g, weblogic, oracle database 11g. Now i have a main form in witch runs froms and reports. The forms and reports had run well on oracle 6i but now i am faceing with a issue, the forms are running but the reports do not. In oracle 6i the reports did run with run_product, now with REPORT_OBJECT. I don't understand what structure could i use. Do i have to install Application server ???? PLS explain what do i have to do, all the configuration necessery, other ipoduct installation if needed. thanks!!!!!
This is the main form that runs other forms and reports:
DECLARE
nod varchar2(50);
htree ITEM;
lis paramlist;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(100);
BEGIN
nod:=ftree.get_tree_node_property('COP1',ftree.get_tree_selection('COP1',1),ftree.node_value);
htree := Find_Item('FRONT.COP1');
Ftree.Set_Tree_Selection(HTREE, :SYSTEM.TRIGGER_NODE, Ftree.SELECT_ON);
--lis:=create_parameter_list('LISTA');
:GLOBAL.PROJECT_PATH:= 'D:\Diploma\Last_version\rap\';
-- forme
if lower(nod) = 'intretinere clienti' then
open_form('D:\Diploma\Last_version\INTRETINERE_CLIENTI',ACTIVATE, SESSION);
ELSIF LOWER(nod) = 'produse clienti' then
--add_parameter(lis,'USERU',TEXT_PARAMETER,:PAROLA.USERU);
open_form('D:\Diploma\Last_version\PROD_CL_inch',ACTIVATE, NO_SESSION,lis);
-- rapoarte
elsif upper(nod)='CLIENT' then begin
run_product(REPORTS,'D:\Diploma\Last_version\rap\CLIENT',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);
--v_rep := RUN_REPORT_OBJECT('D:\Diploma\Last_version\rap\CLIENT');
end;
elsif upper(nod)='PRODUSE BANCARE DESCHISE IN PERIOADA' then begin
run_product(REPORTS,'D:\Diploma\Last_version\rap\PRODUSE_PERIOADA',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);
--repid := find_report_object('PRODUSE_PERIOADA');
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE, SYNCHRONOUS);
--SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
--rep_status := REPORT_OBJECT_STATUS(repid);
-- v_rep := RUN_REPORT_OBJECT('D:\Diploma\Last_version\rap\PRODUSE_PERIOADA');
--v_rep := RUN_REPORT_OBJECT(repid);
end;
elsif upper(nod)='DEPOZITE SCADENTE IN PERIOADA' then
run_product(REPORTS,'D:\Diploma\Last_version\rap\DEPOZITE_SCAD',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',null);
-- nomenclatoare
elsif upper(nod)='TIPURI PRODUSE' then
open_form('D:\Diploma\Last_version\nom_prod',activate, NO_SESSION);
elsif upper(nod)='TIPURI DOBANZI' then
open_form('D:\Diploma\Last_version\nom_dob',activate, NO_SESSION);
-- operatiuni
elsif upper(nod)='DEPUNERE NUMERAR' then
lis:=create_parameter_list('LISTA');
add_parameter(lis,'STARE',TEXT_PARAMETER,'D');
open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);
elsif upper(nod)='ELIBERARE NUMERAR' then
lis:=create_parameter_list('LISTA');
add_parameter(lis,'STARE',TEXT_PARAMETER,'E');
open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);
elsif upper(nod)='TRANSFER' then
open_form('D:\Diploma\Last_version\TRANSFER',activate, NO_SESSION);
elsif upper(nod)='SIMULARE DEPOZIT' then
open_form('D:\Diploma\Last_version\SIMULARE_DEPOZIT',activate, NO_SESSION);
elsif upper(nod)='RAMBURSARE CREDIT' then
open_form('D:\Diploma\Last_version\RAMBURSARE_CREDIT',activate, NO_SESSION);
elsif upper(nod)='RAMBURSARE RATA' then
open_form('D:\Diploma\Last_version\RAMBURSARE_RATA',activate, NO_SESSION);
elsif upper(nod)='TRECERE LA RESTANTA' then
open_form('D:\Diploma\Last_version\RESTANTA_CREDIT',activate, NO_SESSION);
elsif upper(nod)='TRAGERE CREDIT' then
open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);
/*elsif upper(nod)='TRAGERE CREDIT' then
open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);*/
end if;
--destroy_parameter_list(lis);
END;Ok, so I have installed on my computer Oracle developer suite 10g, weblogic, oracle database 11g just like i said in the previous post. If i installed weblogic and i can run forms it means that i have the weblogic server running, no? If not what do i have to install for it to run ? I did what you said about the reports path, but just to be clear , i put it in environment variables REPORT_PATH='D:\diploma\Last_version\Rap'. I don't know where to put it in fromsweb.cfg ! Now about the main from, it looks like this :
DECLARE
nod varchar2(50);
htree ITEM;
lis paramlist;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(100);
report_job_id VARCHAR2(100);
BEGIN
nod:=ftree.get_tree_node_property('COP1',ftree.get_tree_selection('COP1',1),ftree.node_value);
htree := Find_Item('FRONT.COP1');
Ftree.Set_Tree_Selection(HTREE, :SYSTEM.TRIGGER_NODE, Ftree.SELECT_ON);
--lis:=create_parameter_list('LISTA');
--:GLOBAL.PROJECT_PATH:= 'D:\Diploma\Last_version\rap\';
-- forme
if lower(nod) = 'intretinere clienti' then
open_form('D:\Diploma\Last_version\INTRETINERE_CLIENTI',ACTIVATE, SESSION);
ELSIF LOWER(nod) = 'produse clienti' then
--add_parameter(lis,'USERU',TEXT_PARAMETER,:PAROLA.USERU);
open_form('D:\Diploma\Last_version\PROD_CL_inch',ACTIVATE, NO_SESSION,lis);
-- rapoarte
* elsif upper(nod)='CLIENT' then begin *
* v_rep := RUN_REPORT_OBJECT('CLIENT');*
* report_job_id := RUN_REPORT_OBJECT(repid);*
* end;*
* elsif upper(nod)='PRODUSE BANCARE DESCHISE IN PERIOADA' then begin*
* repid := find_report_object('PRODUSE_PERIOADA');*
* report_job_id := RUN_REPORT_OBJECT(repid);*
* end;*
* elsif upper(nod)='DEPOZITE SCADENTE IN PERIOADA' then *
* repid := find_report_object('DEPOZITE_SCAD');*
* report_job_id := RUN_REPORT_OBJECT(repid);*
-- nomenclatoare
elsif upper(nod)='TIPURI PRODUSE' then
open_form('D:\Diploma\Last_version\nom_prod',activate, NO_SESSION);
elsif upper(nod)='TIPURI DOBANZI' then
open_form('D:\Diploma\Last_version\nom_dob',activate, NO_SESSION);
-- operatiuni
elsif upper(nod)='DEPUNERE NUMERAR' then
lis:=create_parameter_list('LISTA');
add_parameter(lis,'STARE',TEXT_PARAMETER,'D');
open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);
elsif upper(nod)='ELIBERARE NUMERAR' then
lis:=create_parameter_list('LISTA');
add_parameter(lis,'STARE',TEXT_PARAMETER,'E');
open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);
elsif upper(nod)='TRANSFER' then
open_form('D:\Diploma\Last_version\TRANSFER',activate, NO_SESSION);
elsif upper(nod)='SIMULARE DEPOZIT' then
open_form('D:\Diploma\Last_version\SIMULARE_DEPOZIT',activate, NO_SESSION);
elsif upper(nod)='RAMBURSARE CREDIT' then
open_form('D:\Diploma\Last_version\RAMBURSARE_CREDIT',activate, NO_SESSION);
elsif upper(nod)='RAMBURSARE RATA' then
open_form('D:\Diploma\Last_version\RAMBURSARE_RATA',activate, NO_SESSION);
elsif upper(nod)='TRECERE LA RESTANTA' then
open_form('D:\Diploma\Last_version\RESTANTA_CREDIT',activate, NO_SESSION);
elsif upper(nod)='TRAGERE CREDIT' then
open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);
/*elsif upper(nod)='TRAGERE CREDIT' then
open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);*/
end if;
--destroy_parameter_list(lis);
END;
Thanks, hope u can guide me :). -
How to call a report from form in developer suite 10g
i want to call report from a form that is developed in Builder 10g. Reprot is also built in Reports Builder 10g. I now want to run report through form.Please give me any solution.
I am finding that this document is unhelpful also with respect to running a form which calls the report in the testing environment of Oracle Developer Suite. I have Googled for forms integration with reporting and most refer to this document, but it does not help.
I have download and used the "run_report_object_doc" procedure they provided, along with a supporting function. And used that.
This document indicates that if the sever is not specified then it will use the in-process server. This does not happen. When I do not specify the server I get the notorious "FRM-41211: Integration error: SSL failure running another product." I suspected that the in-process server is not getting called.
When I look through the rwservlet.properties file I find that the servlet is configured with in=process "yes". I have since changed this file so that a server is actually named. I called it "local".
This time a local.conf file is created, not a rep_local.conf file as indicated in the documentation. Anyhow when I try the form again I get the same FRM-41211 message.
Alternatively, I have change the report invocation parameters to supply a server name "local". This time I no longer get the FRM-41211 message. I get the error FRM-41214: Unable to run report.
When I use the servlet to get information, I get (can anyone see any setting that is a problem?):
http://localhost:8889/reports/rwservlet/showenv?server=local
OracleAS Reports Services - Servlet Environment Variables Return to Top
KeyMapFile C:\DevSuiteHome_1\reports\conf\cgicmd.dat
DBAUTH C:\DevSuiteHome_1\reports\templates\rwdbauth.htm
SYSAUTH C:\DevSuiteHome_1\reports\templates\rwsysauth.htm
server local
DIAGNOSTIC yes
traceopts undefined
ERRORTEMPLATE C:\DevSuiteHome_1\reports\templates\rwerror.htm
SERVER_IN_PROCESS yes
COOKIEEXPIRE 30
ENCRYPTIONKEY reports9i
DIAGHEADTAGS undefined
DIAGBODYTAGS undefined
HELPURL undefined
RELOAD_KEYMAP NO
IMAGEURL http://localhost:8889/reports/rwservlet
SINGLESIGNON yes
OracleAS Reports Services - Server and Engine Environment Variables Return to Top
PATH C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\CA\Dcs\DMScripting\;C:\Program Files\CA\DCS\CAWIN\;C:\CAisd\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\ZipGenius 6\;c:\Program Files\CA\SharedComponents\ScanEngine;C:\PROGRA~1\CA\ETRUST~2;C:\Program Files\CA\Unicenter Software Delivery\BIN;C:\PROGRA~1\CA\SHARED~1\CAM\bin;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft Office\Office10;C:\Program Files\CA\DSM\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\DevSuiteHome_1\jdk\jre\bin
DISPLAY
LD_LIBRARY_PATH
ORACLE_HOME C:\DevSuiteHome_1
TNS_ADMIN
NLS_LANG AMERICAN_AMERICA.WE8MSWIN1252
USER_NLS_LANG
RW C:\DevSuiteHome_1\reports
REPORTS_PATH C:\DevSuiteHome_1\repadm61\srw;C:\DevSuiteHome_1\cgenr61\admin\crretc;C:\DevSuiteHome_1\cgenr61\admin;C:\DevSuiteHome_1\reports\templates;C:\DevSuiteHome_1\reports\samples\demo;C:\DevSuiteHome_1\reports\integ;C:\DevSuiteHome_1\reports\printers;
REPORTS_TMP C:\Temp
REPORTS_TAGLIB_URI /WEB-INF/lib/reports_tld.jar
java.class.path C:\DevSuiteHome_1\j2ee\home\lib\ojsp.jar;C:\DevSuiteHome_1\reports\jlib\rwrun.jar;C:\DevSuiteHome_1\jlib\zrclient.jar
sourceDir
tempDir
useDataCache
ignoreDataParameter -
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
How to display the output of a reports called from forms in the same window
Hi all.
I have installed Forms / Reports 11g Rel2 developer only installation on my windows 7 box.
I can successfully call a reports from forms using RUN_REPORT_OBJECT and WEB_SHOW.document, but the report is opened in a new window.
I'd like to open it in the same widow, in a new tab, similar to ctrl-t and make a call.
How is that possible?.
I'm using Chrome 25.0. Could this be done through browser settings?.
Thanks in advance ...!
Edited by: myluism on 14-mar-2013 6:09Don't know for Chrome, so Google for it.
One more thing, though. what is the 2nd parameter in web.show_document? Is it '_blank'? If not, try that.
Maybe you are looking for
-
Error while loading data oracle table using xslt
Hi I have an following xml: <TRAN TRAN_ID = "12" RCODE = "W"> <STATION>1234567</STATION> </TRAN> I have created the following xslt for the above xml: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
-
Hi, I have programmed some signal processing project libraries in LabVIEW and would like to use them in a VC++ program. When building the DLL under LV 8.0, I get this error 1 message: Error 1 occurred at ABAPI Dist Define VI Prototype.vi -> ABAPI Di
-
Is there a TRANSITION OVERLAP OPTION setting?
My research into this problem has been uneventful -- doing a simple cross-dissolve. I have two clips in the TL with NO handles on either side. I really don't want to manually overlap [hundreds] the clips (they are adjacent in the TL). I hit CMD+T
-
Difference between Business Partner and Customer Master repository
What is the difference between Business Partner and Customer Master repository ? Is the Business Partner repository to be used in case CRM is also in landscape ? or Customer master repository is good enough ? Sandesh
-
Unknown Error while running quickstart tool
While running the FIM quickstart tool I get an error while trying to verify the container. Any Ideas what is causing this? VERBOSE: Verifying the forest and account VERBOSE: Verifying the container invoke-quickstart : Unknown error (0x80005000) At li