Calling report from report problem
hi all
plse help me
how to possible to run report from another report(for 10g).
i do not find the action item(button) ?
how to find the button ?
plse example
(for 6i object navigator ->paper layout-> Button)
but 10g where button?
try searching reports Reports and forms Forms forums, there are several enteries related to your question.
best regads.
Similar Messages
-
Calling textfile from Java problem
I have a problem reading from a textfile. I have a set of 20 questions, that are stored in a textfile. When Java calls the textfile it opens up the questions in a dialog box. My problem is that it is only reading the first 10 questions, the other 10 isn't reading them. Can someone pls help me figure ou my problem? Thanks a lot.
This is the code:
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener.*;
import java.util.*;
import java.io.*;
import javax.swing.*;
import java.util.Calendar;
import java.awt.image.*;
import javax.imageio.*;
public class Quiz extends JFrame implements ActionListener {
private static final int FRAME_WIDTH = 1024;
private static final int FRAME_HEIGHT = 768;
private static final int FRAME_X_ORIGIN = 0;
private static final int FRAME_Y_ORIGIN = 0;
String ac = event.getActionCommand();
String[] questions = null;
String[] answers = null;
if (ac.equals("b1")) {
questions = readFile("dogs.txt");
answers = answerStore.dogAnswers;
askQuestions(questions, answers);
private String[] readFile(String path) {
Scanner s = null;
StringBuilder sb = new StringBuilder();
String separator = "\n";
try {
s = new Scanner(new BufferedReader(new FileReader(path)));
while (s.hasNext()) {
sb.append(s.nextLine() + separator);
} catch(IOException e) {
System.out.println("read error: " + e.getMessage());
} finally {
if (s != null)
s.close();
return sb.toString().split("\\n");
public void askQuestions(String[] questions, String[] answers) {
int count = 0;
for(int j = 0; j < questions.length; j++) {
String input = JOptionPane.showInputDialog(null, questions[j]);
if(answers[j].equals(input))
count++; // incrementing counter if entered answer is correct
point++;
}Edited by: mcal on Jan 16, 2008 7:26 AMOh i'm really sorry. Thanks for your time in seeing my code. This code should work:
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionListener.*;
import java.util.*;
import java.io.*;
import javax.swing.*;
import java.util.Calendar;
import java.awt.image.*;
import javax.imageio.*;
public class quiz extends JFrame implements ActionListener {
private static final int FRAME_WIDTH = 1024;
private static final int FRAME_HEIGHT = 768;
private static final int FRAME_X_ORIGIN = 0;
private static final int FRAME_Y_ORIGIN = 0;
public quiz() {
Container contentPane;
contentPane = getContentPane();
JButton button1, button2, button3, button4, button5;
setSize (FRAME_WIDTH, FRAME_HEIGHT);
setTitle("Quiz");
setLocation(FRAME_X_ORIGIN, FRAME_Y_ORIGIN);
button1 = new JButton("Quiz1");
button2 = new JButton("Quiz2");
button3 = new JButton("Quiz3");
button4 = new JButton("Quit");
button1.setBounds(350,225,300,50);
button2.setBounds(350,325,300,50);
button3.setBounds(350,425,300,50);
button4.setBounds(350,525,300,50);
contentPane.add(button1);
contentPane.add(button2);
contentPane.add(button3);
contentPane.add(button4);
button1.addActionListener(this);
button1.setActionCommand("b1");
button2.addActionListener(this);
button2.setActionCommand("b2");
button3.addActionListener(this);
button3.setActionCommand("b3");
button4.addActionListener(this);
button4.setActionCommand("b4");
setDefaultCloseOperation(EXIT_ON_CLOSE);
public static void main (String[] args) {
quiz frame = new quiz();
frame.setVisible(true);
public void actionPerformed(ActionEvent event) {
String ac = event.getActionCommand();
String[] questions = null;
String[] answers = null;
if (ac.equals("b1")) {
questions = readFile("quiz1.txt");
} else if(ac.equals("b2")) {
questions = readFile("quiz2.txt");
} else if(ac.equals("b3")) {
questions = readFile("quiz3.txt");
} else if (ac.equals("b4")) {
System.exit(0);
askQuestions(questions, answers); // calls the questions from textfile
private String[] readFile(String path) {
Scanner s = null;
StringBuilder sb = new StringBuilder();
String separator = "\n";
try {
s = new Scanner(new BufferedReader(new FileReader(path)));
while (s.hasNextLine()) {
sb.append(s.nextLine() + separator);
} catch(IOException e) {
System.out.println("read error: " + e.getMessage());
} finally {
if (s != null)
s.close();
return sb.toString().split("\\n");
public void askQuestions(String[] questions, String[] answers) {
int count = 0;
int point = 0;
for(int j = 0; j < questions.length; j++) {
String input = JOptionPane.showInputDialog(null, questions[j]); // shows questions in a dialog box together with input line
if(answers[j].equals(input))
count++; // incrementing counter if entered answer is correct
point++;
-
Calling report with no parameters from a form should report be a JSP file?
Hi,
I'm completely new to the Oracle environment and am having a few beginner problems all I want to find out is how to call a report from a form. I know this question has been asked before but I can't work it out from the answers because people seem to keep talking about rdf files:
I am trying to call the report with the following code:
Declare
report_id REPORT_OBJECT;
v_rep varchar2(100);
rep_status varchar2(20);
Begin
report_id:= FIND_REPORT_OBJECT('EmployeeRep');
v_rep := RUN_REPORT_OBJECT(report_id);
END;
My report is called 'EmployeeRep' but it saves it as a JSP file and there is no option to save as an rdf as is mentioned in other posts. I can understand the environments confusion because there is no directory information with the find_report_object command. Does the report have to be stored in a certain directory.
All I have done with the report is created it from the emp table of the sample Scott database. Any help is appreciated and nothing is too obvious as I say I'm completely new to this.
Thanks
DanTry to pinpoint what is going wrong:
1. Run the report stand alone (from Reports Builder). If that doesn't work, then it won't work calling it from Forms either.
2. Check if anything has run at all, or if there are report error messages with:
http://localhost:port/reports/rwservlet/showjobs?
For a standalone Report Server use:
http://localhost:port/reports/rwservlet/showjobs?server=rep_server_name
3. If it does work, call it from Forms. Is the report output file created (e.g. in the cache directory if destype=cache)? In your code you have run_report_object, but you won't see any output on your screen. To see the output add web.show_document(...) to your report. There are many examples in this forum if you search for run_report_object. -
FRM - 41219 CANNOT FIND REPORT INVALID ID - CALLING REPORT FROM FORM
I am using Developer Suite 10g (forms 9i, reports 9i) . windows XP.
I am using the following code in WHEN-BUTTON-PRESSED-PRESSED trigger in form to call report.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
repid := find_report_object('C:\EMP.RDF');
v_rep := RUN_REPORT_OBJECT(repid);
END;
as as result It is displaying FRM - 41219 CANNOT FIND REPORT INVALID ID.
I have used the EMP.JSP also in find_report_object built-in. But there is no difference.
what could be the reason - plz give the solution.
with thanks
by GMSUnless you made a mistake and overlooked it, what I suggested should work. Having said that, you did not mention the exact Forms version you are using. There may have been a problem in the version you are using which was corrected in a later release. I tested the example I offered using Forms 10.1.2.3 and it works correctly. Carefully review what you did. Verify that the file actually exists in the file system. Also, I would recommend renaming the file with all lower case letters and referencing it in the form with all lower case letters. Here is the complete code of the form I tested. I will also include the property values from the Report object.
Report1 settings:
Name - REPORT1
Subclass Information -
Comments -
Filename - dummy.rdf
Execution Mode - Batch
Communication Mode - Synchronous
Data Source Data Block - <Null>
Query Name -
Report Destination Type - File
Report Destination Name -
Report Destination Format -
Report Server -
Other Reports Parameters - On the form create the following items in BLOCK1:
Text fields:
<li>SERVERNAME
<li>REPNAME
<li>OTHERPARAMS
Button:
<li>CALL_REP
In the WHEN-BUTTON-PRESSED trigger add this code:
Declare
repid REPORT_OBJECT;
v_rep varchar2(256);
rep_status varchar2(256);
Begin
repid := find_report_object('REPORT1');
-- Set Report Object properties
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'HTML');
-- Comm mode 1 = SYNCHRONOUS
-- Comm mode 2 = ASYNCHRONOUS
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, 1);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, :block1.SERVERNAME);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :block1.REPNAME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,:block1.otherparams);
SYNCHRONIZE;
-- Run report and get status
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := report_object_status(v_rep);
SYNCHRONIZE;
-- Wait for Reports to generate results
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
SYNCHRONIZE;
-- If DESTYPE is appropriate for displaying to user, execute WEB.SHOW ;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||:block1.SERVERNAME,'_blank');
ELSE
message(rep_status);
END IF;
END; When you run the form, enter the Report Server name and the Report filename (include the path if you have not configured REPORTS_PATH). Then click on the button. Note that the substr logic may need to be altered slightly if you are using an old version of Forms/Reports.
. -
Calling report from form in Web environment
Hi,
We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
a) Is there any other way to call report from a form other than web.show_document?
b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
Any reply would be appreciated..Thanks1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
Darshan Desai
[email protected]
null -
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 -
Crystal Report - problem with passing parameters from J2EE app
i'm trying to pass a few parameters from my java application to a crystal report using the code below:
ParameterField pfield1 = new ParameterField();
ParameterField pfield2 = new ParameterField();
Values vals1 = new Values();
Values vals2 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
ParameterFieldDiscreteValue pfieldDV2 = new ParameterFieldDiscreteValue();
pfieldDV1.setValue("1056");//dform.getSelectedPeriod());
pfieldDV1.setDescription("termId");
vals1.add(pfieldDV1);
pfield1.setReportName("");
pfield1.setName("@p_termId");
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
// check here for null condition otherwise will throw nullpointerexception
pfieldDV2.setValue("elect");
pfieldDV2.setDescription("allocType");
vals2.add(pfieldDV2);
pfield2.setReportName("");
pfield2.setName("@p_allocType");
pfield2.setCurrentValues(vals2);
fields.add(pfield2);
this report calls a stored procedure (sql server). the report displays the data but the same is not the case when i call ity from my java application. with a single parameter it works fine (even though i get a "Some parameters are missing values" ERROR on the console. But when i pass, say 2 parameters, it give me the above error first and then "JDBC Error: Parameter 2 not set or registered for output"
Can anyone bail me out of this one?
thanks,
ptalkadI don't know about naming conventions, but could the @ signs in the variable names cause a problem?
How have you set up the mapping in Crystal?
Is this parameter 2 an "out" parameter returning a value?
What version of Java are you using?
Version of Crystal?
What JDBC driver? -
Calling Report From Oracle Forms
Hi
I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
Thanks.As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
Adi -
Problem displaying a report from within Oracle 10g forms.
After a lot of work, we are able to access and actually display a report directly from Internet explorer and view the report from the report server as well.
The successful url was:
http://york.vrc.virginia.gov:7778/reports/rwservlet
?report=/u01/app/oracle/produ ct/vrcmidtier/reports/vrc/pmw41051.rdf
&userid=vrcpr/vrcpr@vrctest&destype=cache&desformat=HTML
The form displays correctly back to the screen
When executing from within the form, however, the report runs but does not display back to the screen.
Forms Steps so far:
created a report object called pmw41050
static parameters are:
file name: /u01/app/oracle/product/vrcmidtier/reports/vrc/pmw41051.rdfination format
execution mode: batch
communication mode: synchronous
destination name; null
destination format: HTML
reportserver:: vrc_york_midtier
Built a when button pressed trigger as follows:
declare
l_report_file varchar2(200);
l_report_id REPORT_OBJECT;
l_report_status varchar2(200);
begin
-- capture the report
l_report_file := 'pmw41051';
l_report_id := find_report_object(l_report_file);
-- set the parameters for this output
set_report_object_property(l_report_id, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property(l_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
set_report_object_property(l_report_id, REPORT_DESTYPE, CACHE);
set_report_object_property(l_report_id, REPORT_DESFORMAT, 'PDF');
set_report_object_property(l_report_id, REPORT_SERVER, 'rep_york_vrcmidtier');
set_report_object_property(l_report_id, REPORT_OTHER, 'PARAMFORM=NO');
set_report_object_property(l_report_id, REPORT_DESNAME, 'DESNAME');
-- and run the report
l_report_status := run_report_object(l_report_id);
-- monitor progress
while l_report_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
l_report_status := report_object_status(l_report_status);
end loop;
message('back from the report'); -- test message for return
end;
The report executes without error (as indicated by the message on the last line) but does NOT display back to the screen
checking the rwservlet/showjobs verifies the report completed and the reportcan be displayed from there.
So, bottom line: how to make a 10g form call report and display it on the screen?Thanks MIke for your feedback...
Will this surfice?
Procedure Test_Report Is
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
BEGIN
repid := find_report_object('report5');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
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
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://<YourServerName:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
END; -
Retrieve WRITE statements of a called report from a caller one: howto?
Hi experts, need an help for a (imho) quite interesting task. I have a little report that works on a single purchase order and , at the end of the execution, prints on screen a simple message using a WRITE statement. (something like "PO number X processed with/without errors", and eventually other lines showing a specific error).
Now, I'm just creating a "caller" report that gets po numbers from an input file, and process them one by one; a really simple task, but considering I'd like not to modify the original "called" program, I'm wondering about how to get messages in order to print them on screen at the end of the loop.
I tried something as follows (note: it_orders is an internal table containing my po numbers):
LOOP AT it_orders.
CLEAR listobject. "TYPE TABLE OF ABAPLIST
SUBMIT MY_CALLED_REPORT
WITH num_ctr = it_orders-ebeln
WITH flag = flag
EXPORTING LIST TO MEMORY AND RETURN.
* read from memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
LOOP AT LISTOBJECT INTO wa_list.
APPEND wa_list TO FINALLIST.
ENDLOOP.
ENDLOOP.
FORMAT INTENSIFIED COLOR = 1. "heading
WRITE: 'RESULTS'.
SKIP.
* write to output
CALL FUNCTION 'WRITE_LIST'
* EXPORTING
* WRITE_ONLY = 'X'
TABLES
LISTOBJECT = FINALLIST
EXCEPTIONS
EMPTY_LIST = 1
OTHERS = 2.
But... it doesn't work. The above code only shows the message of the first order processed, but I can't understand why. Can somebody give a "clean" way to solve this issue? It would be helpful in many cases similar to the one I'm working on
Thanks in advanceThanks *DP, it almost worked for me. There's a little problem anyway; the first row in the output screen is the one of the last call of the REPORT called by a submit. To show it clearly, here's an example: suppose I've got 4 purchase orders to process, stored in an itab 'po_table': 300000001, 300000002, 300000003 and 300000004.
Then the output of the trace is the following:
Cancellazione totale dal DB
PO 3000001145 processed correctly.
10.03.2009
PO 3000001143 processed correctly.
10.03.2009
PO 3000001144 processed correctly.
10.03.2009
PO 3000001145 processed correctly.
10.03.2009
As you can see, the original output of the last call of the 'inner' report is visible on top. How can I suppress the output of the called program in order to avoid this replication? Thanks in advance.
Nvrmind, my fault. Works correctly now, thanks
Edited by: Matteo Montalto on Mar 10, 2009 10:01 AM -
Calling reports from oracle forms 9i
Hi
I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
declare
pl_id2 ParamList;
pl_name2 VARCHAR2(30) := 'liste2';
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
begin
pl_id2 := get_parameter_list(pl_name2);
if (Id_Null(pl_id2) )THEN
pl_id2 := Create_Parameter_List(pl_name2);
IF NOT Id_Null(pl_id2) THEN
add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
END IF;
end if;
IF NOT Id_Null(pl_id2) THEN
if(:mois is not null) then
v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
message(v_rep);
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('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
ELSE
message('Error when running report');
END IF;
end;
the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
Rq: the report my_report is running very well in report builder.
does someone see where is the problem so can help me??
thanx.Hi,
This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
and check the detailed error occured.
This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
Regards,
-Bulent -
Calling report from a button based on parameters
Hi,
I want to call a report from a custom button based on some parameters. Suppose
I have a form based on dept table and I have created a custom button which
should take the value of the selected deptno and pass as a parameter to the
report to get all the info from the emp table against that deptno.
ThanksReport:
You need to create a SQL report with a bind variable. Then you can take a look at the call interface from the "Manage" Screen of your report to find out how to pass parameters to it.
Form:
To get the required value from the form, make use of p_session in the Custom PL/SQL handler code, then form the URL of the report and call it using <portal_schema>.wwa_app_module.set_target. Take a look at this post: Problems installing 9iAS 9.0.3 -
Dear friends,
Any body know abt the script or process to call report from report.Hi,
I have been able to call Report from Report using the hyperlink.
I put these code in my Field on the Report caller.
function F_3FormatTrigger return boolean is
temp varchar2(2000);
begin
temp := 'http://<computer_name>:8889/reports/rwservlet?';
temp := temp || 'server=repsrv' || '&' ||
'report=C:\MyReport\rep_detail.jsp' || '&' ||
'userid=scott/tiger@orcl' || '&' ||
'desformat=htmlcss' || '&' ||
'destype=cache' || '&' ||
'P_1=' || :ItemID || '&' ||
'P_2=' || :ItemName;
SRW.Set_Hyperlink(temp);
return (TRUE);
end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
The problem is, the hyperlink has to include the reports path and also userid and password.
If I did not put the userid and password, it will showed in another browse that
"The report has uncompiled PL/SQL"
How can I hide those userid, password, and the reports path?
BTW, Is there anyway to show the report callee in different page from the report caller?
Any help would be grateful.
Many thanks,
Buntoro -
Htmlcss Problem in calling Report using Forms 6i
Hi
My form6i server is on win2000 server.
I am calling Reports(Report6i) using forms 6i, my problem is when html report get generated in a IE browser, cell border AND background color are not coming, i tried desformat property set as htmlcss even tho i not get proper output. i only get report without borders.
Q1 ) My quetion is how i can get web html report with cell background and cell border using Report6i calling from forms 6i.
Q2 ) MY forms 6i service always get hagged after 2..3 hr, when restart it, i get my form in a browser. but again after some time my service get in some invalid state, how i can solve this problem.
thanks
sudarshan s vatturkarSudarshan,
Q1 ) My quetion is how i can get web html report with cell background and cell border using Report6i calling from forms 6i.
Reports6i does not support cell background colors in html format. Htmlcss in Reports does render table borders, but it does so in the color that is assigned to teh table in teh building environment
Q2 ) MY forms 6i service always get hagged after 2..3 hr, when restart it, i get my form in a browser. but again after some time my service get in some invalid state, how i can solve this problem.
This is hard to answer via the forum as it may have platform dependencies. If this is a serious issue then I recommend consulting Oracle customer support. -
Hide UserID, Password, and Report Path when call Report from Report
Hi,
I have been able to call Report from Report using the hyperlink.
I put these code in my Field on the Report caller.
function F_3FormatTrigger return boolean is
temp varchar2(2000);
begin
temp := 'http://<computer_name>:8889/reports/rwservlet?';
temp := temp || 'server=repsrv' || '&' ||
'report=C:\MyReport\rep_detail.jsp' || '&' ||
'userid=scott/tiger@orcl' || '&' ||
'desformat=htmlcss' || '&' ||
'destype=cache' || '&' ||
'P_1=' || :ItemID || '&' ||
'P_2=' || :ItemName;
SRW.Set_Hyperlink(temp);
return (TRUE);
end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
The problem is, the hyperlink has to include the reports path and also userid and password.
If I did not put the userid and password, it will showed in another browse that
"The report has uncompiled PL/SQL"
How can I hide those userid, password, and the reports path?
BTW, Is there anyway to show the report callee in different page (precisely, open another IE) from the report caller?
Any help would be grateful.
Many thanks,
BuntoroHi,
Thanks for the answers.
Yet, I am still doubt about using cgicmd.dat.
I have looked around in this forum saying that it is not secure to use cgicmd.dat. Because all report request does not use authentication (the client can directly open report without login).
In Form, I can use the On-Logon to do the Oracle Form login (to do logon to the database), and then I use my own custom user login to restrict the menu for each user.
I do this since I want to restrict the user,
i.e user A can only view the sales form as well as sales report,
user B can only view the purchasing form as well as purchasing report.
Well, I am not so fond about the SSO itself.
It comes to my mind, since I don't have to re-login (to the database) each time I call another form (login database is only once at the first Form, On-Logon). It also goes to when calling the report caller.
What is RAD?
How can we use it?
Is OID = Oracle Internet Directory?
If true, maybe, I won't use it since I don't understand about it also.
Why we don't have to specify the userid and password when Form calls Report1 (using Run_Report_Object and Web.Show_Document())?
But we have to specify the userid and password when Report1 calls Report2.
Any help is appreciated.
Many thanks,
Buntoro -
Error REP-3002 when call report from WebForm
Hi,
i run form (6.0) on Form Server (IAS9i) to call report (6.0) to print receipt on local printer using RUN_PRODUCT command (PARAMFORM=NO, DESTYPE=PRINTER) and got Error Message "REP-3002 Error initializing printer. Please make sure a printer is installed." but on Client-Server it's OK.
the objective is just want to direct print report to printer (do not show parameter form)
anyone know how to solve this problem ?
Hunsa
nullHi,
i've changed to use RUN_REPORT_OBJECT as your advice and followed the instructions in "Oracle Reports Remote Printing Utility - An Oracle Technical White Paper December 2000". i tested orarrp by created the HTML file follow the steps in page 5 of the paper, it worked.
then i modified existed form, set report object property like this :
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'test.rrpa');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'Rep60_NTSERVER2');
note : i'm not sure that i set the right value for REPORT_SERVER property, i got this value from TNSNAMES.ORA file.
then call the report with this statement :
:GLOBAL.ReportHandle := RUN_REPORT_OBJECT(report_id);
it showed the same error message :
"REP-3002 Error initializing printer. Please make sure a printer is installed."
i think i set something wrong, but i don't know where. could you help me ?
Hunsa
Maybe you are looking for
-
When I try to open an embedded PDF file (Word doc) I get an error "The program used to create this object is AcroExch.exe. That program is either not installed on your computer, or is corrupt..." I've tried about everything from unchecking protecte
-
Is this BIOS correct for Satellite A100-SP2022 PSAA5U?
I want to update the bios of my Satellite A100-SP2022 (PSAA5U-02G00G) with windows XP SP2 Spanish, because Im installing windows Vista (dual boot XP/Vista). The question is, if this BIOS file is correct for update in my notebook? sa100a5v53.exe Title
-
How to send values from a "Report Column" instead of a "Page Item" ?
Hi there, Here's my case: Two pages A and B. Page A is used to view each employee from a selected department. Page B is used to created/modify employees. I have a create button on page A which redirect to page B. By default, page B is blank (as of co
-
Hi, Im very new to streams and having a doubt regarding ORA-01403 issue happening while replication. Need you kind help on this regard. Thanks in advance. Oracle version : 10.0.3.0 1.Suppose there are 10 LCRs in a Txn and one of the LCR caused ORA-01
-
Save As... dialog doesn't show mounted volume
Roughly half the iMacs in my lab, Intels running 10.5.8, don't show the server share in the "Save As..." sidebar when the kids need to save a new document. The server shares are mounted ahead of time by a local AppleScript (with password) that is act