Report integration to forms in 10g IDS
Hi
My package was created using D2K 6.0 version. I donot have access to 6i. Converted the same in 9i first. The proceeded to 10g. While converting forms there were no problems. But reports is a different story. If i compile and run the rdf file in report builder, the paper layout works fine. But if i run the same from the forms it doesnt work.
Here are the settings...
* I have replaced run_product with run_report_object
* there reports are in the same folder as the forms. (I have created a sub folder under <oracle_home>/forms90 and forms works fine)
* the reports DONOT have web layouts, there are only paper layouts
* my report server is named rep_srv
* at first the message i got was "unable to run report"
* at this time the servlet was not showing any details
* I restarted the report server from command prompt using rwserver server=<name>
Since then the message changed.
* report server is up and running.
from the "http://localhost:80/reports/rwservlet/showenv?server=rep_srv" works fine and shows all variables.
* still i get the message: "unable to connect to the report server rep_srv" when i run a report from the form.
Now i am stumped.
Are there any settings that i have to change?
Do i have to change or mention paths for reports?
Thanks.
I somehow sorted the issue... The thing is (or was) that the "SCREEN" option doesnt work in forms.
But now i got a new set of problems...
a]
If i select printer, the system sends the print to the default printer of the SERVER!!!.
1) How do i send the print to the user's client machine?
2) How do i allow the user to select the printer? Local or Network. Since D2KWUTIL is not there I cannot use SELECT_PRINTER. How do i give my client this option?
b]
The print to file option works fine...but again stores the file on the server. How do i get it to work for the client?
Thanks,
Hema
Similar Messages
-
I need a code to run a report from a forms on 10G...
Hi!! I´m migrating from 6i to 10G and i cant run a report... can someone send me a sample code to run a report from a form in 10G??
Thanks!!
Regards!iam using Javabean in oracle 10g forms to tun the report....
First create a block with a name control and add an bean to it with a name
userid_bean.click the proerty of the bean and changes its width and height
so that u cannot see it when u run the particular form.
now use the below code where u are coding to run the report.
Declare
rep_url varchar2(2000);
begin
rep_url := '/reports/rwservlet?report=filepath\rep1.RDF' ||
'&desformat=htmlcss&destype=cache&userid=sample/sample@oracle' || '¶mform=yes';
-- Write Log messages to the Forms JInitiator console.The Next line must
-- be disabled before running this code in any production environment.
set_custom_property('control.userid_bean',1,'ADD_USERID',
get_application_property(username)||'/'||
get_application_property(password)||'@'||
get_application_property(connect_string));
-- writing the cookie
set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
web.show_document(rep_url,'_blank');
end; -
Reports integrated in Forms.
I am using 10gAS
Report integrated in forms are not working
If i open the browser and give the below url, i get message "successfully run". The same in form is not working.
Browser URL- is working
'http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver'
Forms10g Code - not working
DECLARE
rep_url varchar2(3000);
BEGIN
rep_url:='http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver' ;
WEB.SHOW_DOCUMENT(rep_url,'_blank');
END;
What can be the problem ?.This is just a guess, but it could be that the double backslash \\ is escaped somehow.
You should put your report in the directory that is indicated by the reports_path environment variable, and skip the path in the url.
I see after posting that the double backslash \\ is also escaped in this forum ;-)
Edited by: InoL on Dec 8, 2009 11:02 AM -
Can I call a report in Reports 6i from Forms Services 10g?
Hi there,
I was wondering if I could call a report in Reports 6i from my application in Forms Services 10g. If so, how could I do it?
Thanks!In Forms 6i you probably did use RUN_PRODUCT to call reports. In 9i onwards you should use RUN_REPORT_OBJECT instead.
See http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
Note that you should be able to run RDF files without any conversion. -
Unable to connect to the report server from FORM in 10g
Just I start to create Forms and Reports .
Final step I try to put Button in Form Report to call Report but this job I have not do it before just I try it by my seftstudy to do.
However, i get message error i will show you to see which mistake i have done.
this picture error message:
http://img136.imageshack.us/img136/5830/errr11ex.gif
this picture paht of Report after import it in Form builder:
http://img146.imageshack.us/img146/4381/tree9eb.gif
this picture show the setting of properties in Report:
http://img501.imageshack.us/img501/3999/agent4nz.gif
this is my code :
declare
report_id report_object;
report_message varchar2(1000);
p_id paramlist;
v_rep VARCHAR2(100);
begin
report_id:=find_report_object('agent');
v_rep := RUN_REPORT_OBJECT(report_id);
report_message := run_report_object(report_id , p_id);
web.show_document('http://orcl:8889/reports/rwservlet/getjobid'|| substr(report_message, length('svr')+2)||'?server=svr');
end;
Can any one try to tell me what the mistake in my code and how to solve it?
My best regards;
Message was edited by:
ExplOrerHello !
You can try to use only the web.show_document call
WEB.SHOW_DOCUMENT('/reports/rwservlet?report=agent.rdf&destype=cache&desformat=htmlcss&server=srv&userid=you have to enter your username/passwort@database net name here,'_blank');
Have you defined the path for the stored reports ?
Try to locate the registy key REPORTS_PATH in the registry and add the root C:\project\reports . to the key
Katharina -
Calling report from form on which IDS 10g is installed
Dear All,
I have a form which calls a report. I am able to run this form and report from my application server 10g. But before deploying it on the server I would like to test it from my pc where Developer suite 10g is installed. i.e running a report from the form in on IDS client pc. I have made changes in formsweb.cfg and default.env file. I am starting a report server from the command prompt using rwserver server=rep_oraclag_OraBi. But when I run the report it says that unable to run report.
Regards
TrushaDear All,
Thanks for the reply. I am able to run my report from the form through my application server which is installed on Linux. My question is how to run report on the development PC where IDS 10g is installed. Before deploying it on the server, I would like to test it from my development PC. Is there anyway I can do this? I have started on temporary report server using rwserver server=server_name. I have set path in formsweb.cfg and default.env. But when I run report from the form it says unable to run report. I am able to run all my forms on my development pc. But not able to run any report.
Regards
Trusha -
Web Util & Report integration to gather.
Hello all
I have configured webutil and report integration in Developer suite 9i.
and it is working very fine.
now I am upgrading it to 10g.
I have configured web util and it is working fine.
and now I am getting problem to integration for "reports" as follows.
FRM-41213 Unable connect to the report server cyan.
I have developed one form for testing the report integration with form.
but when i am running this form with default configuration of formsweb.cfg then
it is working fine as follows.
http://chirag:8889/forms90/f90servlet?form=c:\temp\chirag&userid=cyan/cyan@cyan
when i am running this form using web util configuration then i am getting
the abouve error.
http://chirag:8889/forms90/f90servlet?config=cyan
but my application in Ds9i have used both webutil and report integration
so i have to find out the same thing in DS 10g.
Following are the code of report integration.
DECLARE
mreport_other varchar2(4000);
BEGIN
set_report_object_property('CYAN',REPORT_DESFORMAT,:CONTROL_BLK.REPORT_DESFORMAT);
mreport_other := 'p_report_title="'||:control_blk.report_title||'" ';
mreport_other := 'p_user_name="'||'CHIRAG'||'" '||mreport_other;
DECLARE
report_status varchar2(30);
rep_id REPORT_OBJECT;
v_rep varchar2(100);
mreport_file varchar2(200) := 'C:\CYAN'||:control_blk.report_path;
BEGIN
rep_id := FIND_REPORT_OBJECT('cyan');
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_SERVER,'cyan');
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_FILENAME,mreport_file);
SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,mreport_other);
v_rep := RUN_REPORT_OBJECT(rep_id);
report_status := report_object_status(v_rep);
if Report_Status = 'FINISHED' then
WEB.SHOW_DOCUMENT('http://'||'chirag:8889'||'/reports/rwservlet/getjobid' || substr(v_rep, length('cyan') + 2, length(v_rep)) || '?server=' ||'cyan');
end if;
END;
END;
formsweb.cfg as follows
[cyan]
BaseHTML=c:\oracle\cyan\server\webutiljini.htm
BaseHTMLJinitiator= c:\oracle\cyan\server\webutiljini.htm
baseHTMLjpi=basejpi.htm
BaseHTMLie=baseie.htm
lookAndFeel=oracle
envFile=C:\oracle\cyan\server\webutil.env
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
separateFrame=True
pageTitle=Cyan Ltd
form=C:\cyan\admin\security\forms\cyan_logon.fmx
otherparams=cyan_home=c:\cyan
userid=cyan/cyan@cyan
width=800
height=566
buffer_records=NO
debug_messages=NO
array=YES
query_only=NO
quiet=NO
RENDER=YES
logo=webpage
webutil.env as follows
ORACLE_HOME=C:\oracle\OraDS10g
FORMS90_PATH=C:\cyan\admin\global\forms;C:\cyan\payroll\forms;C:\oracle\cyan\forms
CLASSPATH=c:\oracle\cyan\lib\webutil.jar;c:\oracle\OraDS10g\jlib\debugger.jar;
c:\oracle\OraDS10g\jlib\ewt3.jar;c:\oracle\OraDS10g\jlib\share.jar;
c:\oracle\OraDS10g\jlib\utj90.jar;c:\oracle\OraDS10g\jdk\jre\lib\rt.jar
WEBUTIL_CONFIG=c:\oracle\cyan\server\webutil.cfg
Please assist me to solve this problem
from
Chirag Patel
NairobiHi,
I remember that in 9i we had a problem that required both the Reports and the WebUtil java libraries to be in teh Forms classpath in the default.env. This however should have been fixed in Forms 10g.
For what it is worth, can you try
- In the registry variable "REPORTS_CLASSPATH", add the path of the jar file that will be used by webutil (webutil.jar basically)
- In the default.env file, add the Reports jar (see REPORTS_CLASSPATH for values)files to the classpath of Forms
Frank -
How to call Reports in oracle forms 10g
Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
FaziludeenHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
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;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
HELP! Form-Report integration problem!
Hi all, I have a problem in integrating report in dev10i. I used to use Dev6i and have no problem in using run_report_object in 6i. I have posted this in Report for few days but haven't got response.
I got the REP-0503 You did not specify the name of the report and FRM-40738 Argument 1 to builtin Report_Object_Status can not be null. The report run OK in report builder and I create the paper only layout. Also, I save the report as *.rdf and create a report object in form that point to this *.rdf file.
This is my PL/SQL code:
PROCEDURE P_PRINT_REPORT_OBJ(vc_reportoj Varchar2, vc_reportserver Varchar2, vc_runformat Varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
vjob_id VARCHAR2(100);
BEGIN
v_report_id := FIND_REPORT_OBJECT(vc_reportoj);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, CACHE);
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, XXX='||:XXX.XXX||' paramform=no');
vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status = 'FINISHED' THEN
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;
What gives? Do I miss something here? Do I have to set up other thing??? Also what is the name of report server in Dev10i? I am under impression that this is not needed so I put blank '' when I call this procedure in WHEN-BUTTON-PRESSED trigger like this:
P_PRINT_REPORT_OBJ('myreportobj','','HTML');Hi all, I created simple report from 1 table and save it as *.rdf. I then make a simple form consisting 1 block and a button that have WHEN-BUTTON-PRESSED trigger that call P_PRINT_REPORT_OBJ. I create a report object in the form that point to my *.rdf report file and name the object MYREPORT. This time it gives Rep-0110 Can not open file '%n~<intangible character>' and REP-1170 Error while opening or saving a document. After that other message popup with REP-0110. It seems that FIND_REPORT_OBJECT could not find the file at all/giving the wrong filename as argument. Do I have crooked installation? I have tried it on 2 diff machine running XP2. Is this because of Win XP2? I have admin privilage user account for winXP2. Please help, this is not making a sense at all. I have no problem in Dev6i.
PROCEDURE P_PRINT_REPORT_OBJ IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100);
BEGIN
v_report_id := FIND_REPORT_OBJECT('MYREPORT');
vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
END; -
Calling a Report from Form in 10g
Hi all,
I am very new to Oracle Form builder, I wana to call a report from a Form.
we are using Oracle 10g Developer suit.
Can any body please help me regarding on this?
Regards
Tanmaya Pradhan(Tam)..or
Take a look at
Re: Run Report10g Through form 10g -
Calling a report from oracle form 10g
how to call a report from oracle form 10g
Please see the link:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf -
URGENT!!! calling crystal reports from oracle forms 10g
Is it possible to call crystal reports from oracle forms 10g?
Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
Please provide codes with details showing step by step.
Thankshi
try something like this.
DECLARE
charWinHandle VARCHAR2(50);
numWinHandle NUMBER;
BEGIN Set_Application_Property(Cursor_Style,'BUSY');
charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
numWinHandle := To_Number(charWinHandle);
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
:= numWinHandle;
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
:Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
:= 'DSN=;UID=' || Get_Application_Property(UserName) ||
';pwd=' || Get_Application_Property(password) || ';dsq=;';
Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
'C:\Sample_Rep.Rpt' );
Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
Set_Window_Property( 'MAIN', Window_State, Maximize );
:reptitle := 'Report Preview Window';
numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
Set_Application_Property(Cursor_Style,'DEFAULT');
END;NOTE: Change the report name and path according to your required file name and path in
the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
assumes that you will use the current USER and PASSWORD for the Form.
- To make the above Form generic so that you can run any Crystal report from it, then create
a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
Then just replace the file name with the passed parameter.
-. Run the Form
If its correct/helpful please mark it thanks.
sarah
Edited by: S@R@h on Nov 27, 2009 6:33 AM -
Calling Crystal Reports from Oracle Forms 10G
Hi everyone,
I am trying to call a crystal report from Oracle Forms 10G.
I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
Can someone please send me the code to do this and also the exact steps that are to be followed.
Thanks
Fm.Hi Andreas,
I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
Is that possible ? If yes please let me know the steps to do this.
Thanks
Faiz
Edited by: IQ on May 13, 2011 11:38 AM -
Calling 10g Report from 6i Form
A 6i client-server form has a call to a 10g report in the form of a URL.
The HOST command calls Internet Explorer and with the URL appended. This, however, keeps the form locked until IE is closed.
Is there a way around this or a better way to call a URL from 6i Forms?
Thank you.Found an example. It seems to work fine.
I believe this is replaced in Forms 10g by web.show_document though.
win_api_shell.winexec(vcCommand, WIN_API.SW_SHOWNORMAL, FALSE); -
Calling Crystal Reports XI from Forms 10g
Any one succeed in calling Crystal Reports XI from Forms 10g,
or using Import Java Class in Forms 10g
to call Crystal Reports XI
or any other method to invoke crystal Reports XI from FORMS
share your Knowledge to OTN
please provide me the steps,documents to [email protected]
Message was edited by:
user501763Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun
Maybe you are looking for
-
I desperately need to uninstall adobe reader from my Mac book air. I sent adobe reader to trash and afterwards look for internet plugs in library but this folder is empty in my library. Can anybody help me?
-
Bios Update Problem P35 Neo2 - MS 7345 V 1.1
Hello I've update my board bios because a "hard disk not present" problem and since it I was having several problems: I'm running Windows XP SP2 and it takes a very long time to start (in bar and loading windows screen). The major problem I have is w
-
i have read in books that java supports unicode and hence all the language charectors. i have the unicodes for hindi fonts. i want to write them in TextArea or JTextArea. but the problem is that when i use command append(""+<code>), i see some number
-
Hi, Using cfcache to cache templates for a short period of time, the number of threads in coldfusion.exe process increase unexpectedly. Moreover, these threads remains in process (view resource monitor). We don't know why. Maybe an xml config file of
-
Dear All, I get the following error at the time of co11n goods movemnt posting A master record for 121002/MACHN exists only in 2009 A master record for 121002/LABOUR exists only in 2009 A master record for 121002/OVRHD exists only in 2009 how and to