How to run a report from a form?
i created a report from reports 6i. now i want to design an interface in oracle forms and want to call all information from report according to paramaters which i designed in oracle forms.
i found some information that i can do that using Procedure Run_Report or Run_report_object but i could not achieved it.
Can anyone explain me that step by step? Or anybody made an example before so a connection from form to report and send to me as a muster. probably i can find a solution for me too..thanks a lot..
Abdetu thanks for your quickly reply but i have to say that i could not understand it very clearly because i don't have any experience about Forms and Reports. Therefore i am trying to ask my question again with examples.
I made a report and now i am trying to connect this report to my forms. My forms has 2 search item. Account_no and Date and i have a Run button.
If i write date "Oct" and push button "Run" i want to see whole list of Oct from Report. Therefore i made a trigger "When-Button-Pressed" and i wrote this and now my question about the parameters.
In Forms under menu parameters should i create 2 parameters parameter01 and parameter02. and now my questions:
1) After i create parameters should i write as a Parameter Initial Value
2) Should i extra add paramters to reports too?
declare
v_Report_Id Varchar2(20) := 'RAPOR_NAME';
v_Parameter_List Varchar2(15) := 'FormParameter';
v_Parameter_List_Id Paramlist;
v_Return_Code Number;
Begin
v_Parameter_List_Id := Get_Parameter_List(v_Parameter_List);
If Not id_null(v_Parameter_List_Id) Then
Destroy_Parameter_List(v_Parameter_List_Id);
End If;
v_Parameter_List_Id := Create_Parameter_List(v_Parameter_List);
Add_parameter(v_Parameter_List_Id, 'PAR_01', TEXT_PARAMETER,:Parameter01);
Add_parameter(v_Parameter_List_Id, 'PAR_02', TEXT_PARAMETER,:Parameter02);
Add_parameter(v_Parameter_List_Id, 'PARAMFORM', TEXT_PARAMETER,'NO');
Add_parameter(v_Parameter_List_Id, 'DESTYPE', TEXT_PARAMETER,'SCREEN');
Run_product(REPORTS,'v_Rerpot_Id',SYNCHRONOUS,RUNTIME,FILESYSTEM,v_Parameter_List_Id,null);
End;
Similar Messages
-
How to run multiple reports From One Form with 1 report object?
Hi ALL!
i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object.
i.e
IF parameter=yes THEN
Rpt_new should run
Else
Rpt_old should run
END IF;
How can i do this?
thanks
ranaRana,
I found this in the Forms online Help. You could easily found it yourself. Don't be afraid of pressing CTRL-H:
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'yourreportsfilename.rdf')Regards,
Martin Malmstrom -
How to run a report from oracle 10g form in .csv format
dear all,
how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
i'm using
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
Please Help..i have already tried.
but the report show in htm or html format. that file will not save into csv. please help. -
Run a Report from a Forms Menu
I have a brain teaser,
I am trying to run a report from a forms menu item. Here
is my menu item code:
RUN_PRODUCT(REPORTS,
'C:\Documents and Settings\Bradley\My Documents\A_THESIS\Reports\AUCTION_EVENT_REPORT',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);
When I call on the menu item it works for a while and then a Reports Background Engine error message says:
REP-0110: Unable to open file 'C:\Documents and Settings\Bradley\My Documents\A_THESIS\Reports\AUCTION_EVENT_REPORT'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file
Any ideas?
Any help appreciated,
BradleyFrank,
I tried it at C:\AUCTION_EVENT_RPT with the same result.
Do you ever run Reports from a form? If so how do you do it?
Bradley -
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; -
How to invoke crystal reports from Oracle forms 11g R2 along with passing p
How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
how to pass parameters to crystal report, please help.how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
cheers -
How to run batch file from oracle forms 9i
Hi everyone.
i have a data in csv file. i want to upload it to my database. i am using sql loader for it.
i have made a batch file which run the sql loader and transfer my data to database.
How to run batch file from oracle forms 9i.
when i press the button, nothing uploads in my database. (when i simply run the batch file it works).
here is my code
Begin
HOST('C:\temp\batchfile.bat');
message('done');
end;
Thanks in advance
regards
sajidthis is my log file, when i run manually.
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jul 1 23:27:53 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: file_to_upload.ctl
There are 2 data files:
Data File: sk.csv
Bad File: sk.bad
Discard File: none specified
(Allow all discards)
Data File: sk1.csv
Bad File: sk1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table KHAN, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
SR FIRST * , O(") CHARACTER
DATES NEXT * , O(") CHARACTER
AGENT NEXT * , O(") CHARACTER
COUNTRY NEXT * , O(") CHARACTER
TRANSACTIONS NEXT * , O(") CHARACTER
PKR NEXT * , O(") CHARACTER
USD NEXT * , O(") CHARACTER
BANK NEXT * , O(") CHARACTER
Table KHAN:
11088 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 132096 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 11088
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Thu Jul 01 23:27:53 2010
Run ended on Thu Jul 01 23:27:54 2010
Elapsed time was: 00:00:00.63
CPU time was: 00:00:00.17 -
How to run a report from UIX ?
Hi, I need to run my reports made in Oracle Reports Builder, in Web Style. All reports has parameters, then I buid a UIX page with some MessageChoice to select values for the parameters, and I need to invoke the report when a click the submit button. How I can call this JSP, because to work I need to invoke a URL not the JSP code. Example:
http://localhost:8889/reports/myreport.jsp?cia=001
Thanks.Rodrigo,
We figured out the way to run the reports from UIX parameter forms. It will take a lot of explainig though. If you are interested, please email me at gorbunov @ pacbell . net and I'll send you the example.
Regards,
igor -
Hi Expert,
I want to call a report from a form.My problem scenario like, a user is login to his account and there is a option called ADMIT CARD(Push Button).Now when he pressed the button a report will generate.I want that when he pressed the button the user id of the user will passed to the report and the report will generate corresponding to his details which was stored in the database.This scenario is like any online admit card.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN
Message was edited by:
user630863Thanks for replying.
Actually I am a beginner.I think that I have to use RUN_REPORT_OBJECT built-in.But I cannot understand the parameterlist.Can u plz give me any example or code then I am very thankful.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN -
hi,
I am trying to run a report from a WCF service application, and then render it in PDF Format to a caller WPF application. But I cant get it! In more detail, this is what my app should do
1. from WPF, call a web service procedure, pass a report name, report path and parameters. Report is store at the same server where Web Service is installed
2. WCF procedure loads report, set parameters, retrieve data from DB and renders it as an array of bytes
3. WPF gets the array, save it into a PDF file, then open it.
this is the code of the WCF procedure.
Function DownloadCRReport(codEnte As String, connString As String, reportDir As String, reportName As String, Parameters As Dictionary(Of String, Object)) As Byte() Implements IGesiService.DownloadCRReport
Try
Dim bytes As Byte()
Dim infile As BinaryReader
Dim fs As FileStream
Dim rep As New ReportDocument
Dim RepAddress As String
logPath = reportDir & "log\"
sb = New StringBuilder()
timestamp = Now.Year.ToString & Now.Month.ToString & Now.Day.ToString & Now.Hour.ToString & Now.Minute.ToString & Now.Second.ToString
logFileName = timestamp & "_" & reportName & ".txt"
logFile = New StreamWriter(logPath & logFileName, FileMode.CreateNew)
logFile.WriteLine("----
Date and time: " & Now.ToString & " -
If My.Computer.FileSystem.FileExists(reportDir & reportName & ".rpt") = False Then
Throw New Exception("file RPT non found in: " & reportDir)
End If
RepAddress = reportDir & reportName & ".rpt"
logFile.WriteLine("rep address: " & RepAddress)
rep.Load(RepAddress, OpenReportMethod.OpenReportByDefault)
logFile.WriteLine("load rep")
If rep.DataSourceConnections.Count > 0 Then
rep.DataSourceConnections.Item(0).SetLogon("usr", "pwd")
logFile.WriteLine("data source connection")
End If
For Each i In Parameters
rep.SetParameterValue(i.Key, i.Value)
logFile.WriteLine("param: " & i.Key & " - " & i.Value)
Next
Try
fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
logFile.WriteLine("export to stream")
infile = New BinaryReader(fs)
logFile.WriteLine("created binaryreader")
bytes = infile.ReadBytes(CInt(fs.Length))
logFile.WriteLine("render pdf. fine")
logFile.Close()
Return bytes
Catch ex As Exception
logFile.WriteLine("vbCrLf & ex.Message & vbCrLf & ex.InnerException.Message)
logFile.Close()
Return Nothing
End Try
Catch ex As Exception
logFile.WriteLine("vbCrLf & ex.Message & "-" & vbCrLf & ex.InnerException.Message)
logFile.Close()
Return Nothing
End Try
End Function
I detected that error occurs on rep.ExportToStream(ExportFormatType.PortableDocFormat). I should point out that the same procedure works under WPF application. In the WCF server I installed CR Runtime engine for .NET framework (13.0.9.1312) and CR version for Microsoft Visual Studio (same version). Moreover, all DB operations are stored into the report, so I should not pass any dataset, just parameters.
Anyway, just to begin, I tried to call a simple report with just two string parameters and no queries, but I alwais get error ("An exception of type 'System.NullReferenceException' occurred in MyApp... Object reference not set to an instance of an object)!
How can I make it work? thanks for helphi Ludek,
Im trying to change DB connection info at runtime for all of the report tables. this is the code I used in my Web Service
Function DownloadCRReport(...)
If rep.DataSourceConnections.Count > 0 Then
Dim conn As New ConnectionInfo
Dim tabLogon As TableLogOnInfo
conn.ServerName = "10.10.15.90" 'IP address of DB server
conn.DatabaseName = "MyDB" 'Database name as set in TNSNAMES.ORA
conn.UserID = "newuser"
conn.Password = "newpwd"
For Each t As Table In rep.Database.Tables
tabLogon = t.LogOnInfo
tabLogon.ConnectionInfo = conn
t.ApplyLogOnInfo(tabLogon)
logFile.WriteLine("changed logon tab. " & t.Name)
Next
rep.Refresh()
logFile.WriteLine("changed data source connection")
End If
'set parameters
If Not IsNothing(Parameters) Then
For Each i In Parameters
rep.SetParameterValue(i.Key, i.Value)
logFile.WriteLine("set parameter" & i.Key & " - " & i.Value)
Next
End If
fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
End Function
that comes to an error on rep.ExportToStream: "Unable to access database".
Running web service in debug mode, I noticed that, after t.ApplyLogonInfo(tabLogon), the new ConnectionInfo has "password" property empty. Maybe this could cause the error, or is there some mistake in the new connectioninfo? -
How to print BIP reports from Oracle Forms?
Hi all,
I have a question in regards to printing BIP reports from Oracle Forms... We are aiming for a server installation of BIP with integration to Oracle Forms using SSO to handle security. We use Forms built-in web.show_document to render and view the report in PDF/Excel etc... We would like to by pass the viewing and print some of these reports directly to the printer.
Any idea/suggestions how we can go about this?
Thanks in advance for your time.
YahyaYahya,
via HTTP it's not possible to send a report directly to the printer. You had to go via the Scheduler, which is able to do that. With the WebService API you can call a report with the Scheduler and Execute Immediate.
Regards
Rainer -
How to Run Oracle Reports from the web.
How can we run Oracle Reports from the web - for example from a portal such as "Gateway"
This is a univeristy that implements Banner - so can we run them from within Banner?Yes, of course. And for running the reports-server you need an OAS. Maybe here is a good starting point http://www.oracle.com/technology/documentation/reports.html
-
Run Oracle reports from the FORM builder
Hello All,
We have Oracle Form base application running on the window OS.
(Form version is 9.0.4.1.0)
Our Database is installed on Linux box (DB version: 10.1.0.3.0)
I need to run different Oracle reports from the form based application or from the form builder. (Report Builder 9.0.4.1.0)
Any feed back will be appreciated.
Regards,
Dtry this
Run_product(REPORTS,' <path to the report>', ASYNCHRONOUS, RUNTIME, FILESYSTEM,' ',NULL);
in some event ( whichever event you want your report to show up) -
How to Run a Report from Desktop in Oracle 10g without using Web
Hi Friends,
I want to run a report from desktop (report which is developed in oracle report developer 10g), for that i have created shortcut. But when i double click on that shortcut it gives me followig error
"Report name, database connection, and reports server name (unless using local runtime, i.e. reports server call is local) properties must be specified for successful report run"
the path which is defined in the shortcut of report is as follow
D:\DevSuiteHome_1\BIN\rwsxu.exe rcptreg_dt userid/password@ORC
pls help me to sort out the problem.
Thanks & Regards.Hello,
You can use rwrun. Since 9.0.2 , it is no more possible to DISPLAY the output on the screen , but you can generate a file (HTML , PDF , RTF , ..) and then open the file generated.
EX: rwrun report=c:\temp\myrep.rdf destype=file desname=c:\temp\myrep.pdf desformat=pdf userid=scott/tiger@mydb P_1=param1_value ...
Regards -
How to run ADDM report from client?
Hi,
I want to run ADDM report from the client and get the report in my machine?/
in other words while connecting to sqlplus from my machine if i invoke @?/rdbms/admin/ >> it selects local oracle home..
Any suggestion to set as if run the remote sql's from sqlplus?/
Thanks,
RamanYou can run the individual built-in packages from SQL*Plus from a client.
You can also open a browser session to the OEM Grid Server if you know its fully qualified host name or IP Address on your network.
Be sure, however, that you are licensed to do so. ADDM requires the diagnostic pack license.
Maybe you are looking for
-
New late 2013 Macbook Pro 15" Graphics issue
Im starting this new thread because I cant find anyone else on here with this problem I'm having. Since I first got my new late 2013 MBP 15" 16gb RAM 1TB Flash Drive. I noticed a couple of things. First, I opened photoshop cc with about 20+ average r
-
I am getting a Error Message when installing the new I tunes
It says something at the end saying 2203. What is wrong when I download the program?
-
Publish Comments Button not Active
I have Adobe Acrobat X Pro Ink and my publish comments button in not active how can I get it active so i can add comments to a shared review
-
Inactive Sessions Getting Automatically Generated in Database
I am facing a strange problem of getting huge number of inactive sessions getting generated th the database server which leads to it's connection closure. The Error reads as "Failed to check out an Application due to connection failure of Application
-
Keynote swfs not compatible with Flash cs3 As3
I have flash timeline controls now written in AS3 but when I export swf from keynote I get a conflict- looks like keynote swf exports in as2 only. Is there anyway to change the keynote preference? Anyone know of other converters to produce swfs compa