Displaying files in Reports6 (Oracle Reports Team) URGENT
HELP! I cannot come up with a solution to this problem as yet and
I am desperate.
I have two different file formats
format 1: 4 fields ==> Branch, Policy Number, Due Date, Amount
length :43 characters.
format 2: 8 fields ==> the above plus others
length :73 characters.
NB. This is the structure of two separate client files.
Aim: To display the contents of the files to the client.
What has been tried:
1. Text_io.getline was used to read each record from file into
fields on the screen(this is done within a procedure). In
the Data Model view the company name was retrieved so that
the appropriate format (format 1 or 2)could be chosen. In the
layout model depending on the company the corresponding
fields were displayed. However when the program was run only
the last record in the file was displayed. How does one get
Reports6 to show all the records that was read?
2. The repeating frame concept does not apply as I simply want
to display files read and even when a select was done where
I know the values would be repeated this did not work - only
the last line of the file was displayed.
3. Again another dummy select was tried with the intent of
using the 'Read From File' property. This did not apply in
my situation. ( Or it could be that I do not understand how
to use this).
Any help that is forthcoming is greatly appreciated.
Thanks in advance.
hello,
this request sounds now more as if you want to use the text-file
as a datasource.
unfortunatly this is not possible with reports 6i as the support
for text-files as datasources will be introduced with the next
(upcoming) release.
regards,
the oracle reports team --pw
Similar Messages
-
PDF file created from Oracle Report is attached wrongly
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2, document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroThe code looks absolutely good. I have the same code working in my system. Only difference is I use TRUE and DBMS_LOB.Session for the BLOB I use to read from the BFILE.
I can suggest one more way to handle to binary attachments if you are on Oracle 9i DB are later versions.
procedure attach_document (p_document_id in varchar2,
p_display_type in varchar2,
p_document in out nocopy clob,
p_document_type in out nocopy varchar2)
is
l_nid number;
l_directory varchar2(100);
l_filename varchar2(100);
l_content_type varchar2(100);
l_src_offset binary_integer := 1;
l_dst_offset binary_integer := 1;
l_err_msg varchar2(100);
l_amount number;
l_bfile BFILE;
l_blob BLOB;
l_clob CLOB;
file_not_found exception;
pragma EXCEPTION_INIT(file_not_found, -22288);
begin
l_nid := to_number(p_document_id);
l_directory := trim(wf_notification.GetAttrText(l_nid, 'ATTR_DIRECTORY'));
l_filename := trim(wf_notification.GetAttrText(l_nid, 'ATTR_FILENAME'));
l_content_type := trim(wf_notification.GetAttrText(l_nid, 'ATTR_CONTENT_TYPE'));
l_bfile := BFILENAME(l_directory, l_filename);
dbms_lob.createtemporary(l_blob, true, dbms_lob.Session);
dbms_lob.createtemporary(l_clob, true, dbms_lob.Session);
begin
dbms_lob.FileOpen(l_bfile, dbms_lob.File_Readonly);
exception
when file_not_found then
l_err_msg := to_char(sqlcode)||' - Attachment File "'||l_filename||'" is not found.';
raise_application_error(-20002, l_err_msg);
end;
dbms_lob.LoadBLOBFromFile(l_blob, l_bfile, dbms_lob.LobMaxSize, l_src_offset, l_dst_offset);
dbms_lob.FileClose(l_bfile);
-- Encode the BLOB content to BASE64 and attach to notification
wf_mail_util.EncodeBLOB(l_blob, l_clob);
l_amount := dbms_lob.GetLength(l_clob);
dbms_lob.Copy(p_document, l_clob, l_amount, 1, 1);
-- Mention an appropriate Content Type so that Notification System
-- understands the attachment content
p_document_type := l_content_type||'; encoding=base64; name='||l_filename;
end attach_document;Here I read the BLOB from the filesystem and base64 encode it before giving it to the Mailer. Please note that this is a PLSQLCLOB based attachment as against PLSQLBLOB that you are using.
Thanks - Vijay -
PDF file created from Oracle Report is created wrongly using dbms_lob
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroHi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
Buntoro -
Problem with Run_Product.. FRM-41211 Oracle reports team pls respond
Hi,
I am calling run_product built in my form 3 times on when button pressed trigger I am getting error
FRM-41211 Integration Error: SSL Failure running another product..
how to solve this problem..
In help it is given check with Run_Product ... but no errors are exist in run_product...
pls help me.. its very urgent..
regards
KiranHi every thing is fine problem is
If am running 3 reports consecutive from form builder I am getting frm-41211 error. To solve this I have place message('1') ;pause in-between run_product statements now it is working fine. Could u please find out any solutions for this (not using timers);
Or
Pls pass maild of Oracle reports team usually they answer questions in oracle .com forums. -
Get report file name in oracle report builder at run time
Dear All,
Is there any way to get the report file name in oracle report builder at run time?
for example "HR_REP012.REP"
i need this very important...
Regards,
Yousef
Edited by: Yousef_m on Jun 2, 2012 5:18 AMHello,
Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
Example
function AfterPForm return boolean is
my_var varchar2(80);
BEGIN
SRW.GET_REPORT_NAME(my_var);
SRW.MESSAGE(0,'Report Filename = '||my_var);
RETURN (TRUE);
END;
Regards -
Message for Oracle Reports Team !
Hi Oracle Reports Team !
We have posted regarding our problem in parameter form. On
yesterday 20th Dec, we didn't got any response your end.
Actually we have dead line to meet.
thanks
rajahello,
in this case, the best way to proceed is to contact oracle support services and work out a way with them.
they have all the information about certifications between designer and reports patches.
regards,
the oracle reports team -
ORACLE REPORTS TEAM - Patch 3 / 4 etc.
Question to:- ORACLE REPORTS TEAM -
You have mentioned to apply Patch 3 and 4 for different types of issues in the past.
Our DBA Team says these patches are NOT compatible with DESIGNER 6i. (which we use).
How can we overcome this problem???
nullhello,
in this case, the best way to proceed is to contact oracle support services and work out a way with them.
they have all the information about certifications between designer and reports patches.
regards,
the oracle reports team -
Att: "ORACLE REPORTS TEAM"
Hi,
I have a report in RDF format which need further calculation and
generation of Graph.So,I want to convert this report to XLS
(Excel).
Is there any Solution from "ORACLE REPORTS TEAM"?
santoshhello,
in this case, the best way to proceed is to contact oracle support services and work out a way with them.
they have all the information about certifications between designer and reports patches.
regards,
the oracle reports team -
[b]Urgent : oracle report team help[/b]
I m using oracle reports 6i...I have a common header for all the reports which comes from a specific query..Now i tried using a template but its not possible to add a query there..Is it possible 2 make the header as a different report and display it over other report...or can u suggest any other way in which i could achieve this
Well its does not seem possible to achieve this requirement....
Regards
Deepak -
Getting Error While Displaying web page in Oracle Report 11g
Hi,
I am new to Oracle reports 11g. I have stuck into an error. While I'm trying to display the web page it says "No such Web command ()".
I am using following URL to call the report.
http://hostname:port/reports/rwservlet/?server=repserver&report=a.jsp&destype=cache&desformat=htmlcss&userid=scott/tiger@db
Please help me out from this.Hi Rupesh,
Thanks a lot removing web solved my problem.
My second problem is
1) SAP xMII >Navigation services>Navigation do following
a) From the account name pull down menu select everyone
b)In the navigation tree tab page,choose Navigation Item >Add>Child
c)In the loading content dialog box,enter a name , for example,"Test"
d)choose."..."
e)In the File Browse dialog box,open the CM folder and navigate to teh QM folder
Select ZPPWeb.htm and choose Ok
After this I get error message as
"Can't move focus to the control because it is invisible , not enabled or of a type that does not accept the focus".
It does not add my htm file to the navigation link
Thanks in advance
Regards Namita -
Exception while opening a JSP file created using oracle report builder
I have created a JSP page which contains embedded Oracle reports build using Oracle Report Builder.
I have deployed the JSP created above to the Oracle Application Server
but when i try to open the JSP file it gives the following error:
500 Internal Server Error
javax.servlet.jsp.JspException: rwlib-1: REP-1202: ORACLE logon not specified. at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:206) at testing.test1._jspService(_test1.java:75) [SRC:/testing/test1.jsp:0] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
can anybody help regarding this
this is of high priority to me
thanks and regards
Subhajitbump
-
Time out error in oracle reports--very urgent
Hi
I have this oracle report on 9i which calls 14 other reports and runs them
via a wrapper report which I run from a URL
However I get this engine null crashed error or else Engine rwEng-0 is destroyed due to timeout error.
From what I understand there is a timeout issue happening bcoz reports is taking a long time to run.Hence I increased the value of engineResponseTimeOut but it does not help either.Would you have any other idea to resolve this issue?
Could someone plz tell me urgently how can this be resolved.This is on Oracle 9i.
ThanksHi Ravi kanth,
You are using select * statement which is very time consuming and low performance. Dont use select * instead use select field1 field2.... into table itab where field1 = s_field. Use corresponding field names in the select statement.
Follow the below rules.
1) Dont use nested select statements
2) If possible use for all entries in addition
3) In the where addition make sure you give all the primary key
4) Use Index for the selection criteria.
5) You can also use inner joins
6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
<b>reward if useful</b>.
Regards,
sunil kairam. -
Oracle reports Team please note
dear sir
i would like to know how can i Control Printer Attributes for a
printer at Run
Time Like page width , height etc
we are using oracle reports 6i as reporting tool.
my problem is i had installed a printer and it is set for
printing different reports ( like invoice slips , legal size ,
A3 etc ) each time i have to manually set the page settup from
printer folder .instead if there is an option to set the printer
attributes from Reports 6i it is great
tom if u have got time pls send me a reply ( i know u are busy
with other oracle
products..... i had posted this question oracle forums but no
answer till today
will u place this question to an expert there to solve this
problem
if u cannt leave this
send me a reply
sicerely
rajesh<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sam1:
I user Report60_server (shell script) to run oracle report server(rwmts60).
The server is used to run reports on the web.
The report server runs if my display variable is setup with an ip address which run an X-window client. If I shut down the xwindow client the reports do not run.
Do we need a x-window client?. Can we live with out the x-window client<HR></BLOCKQUOTE>
Any one has faced this problem?
null -
Hi,
The default Font size of Character mode Reports is 12. I want to reduce the font size from 12 to 8 .How to go about it.The printer codes mentioned in reports Documentation only talk about other attributes like Bold etc.Also the documentation gave the impression that The fontsize can only be controlled for Bitmap reports.Kindly help me out.
Thanks in advance.
Regards
Deepakhello,
in this case, the best way to proceed is to contact oracle support services and work out a way with them.
they have all the information about certifications between designer and reports patches.
regards,
the oracle reports team -
hi,
I have create a report and i run that on web.
so the format of the report is not proper.
main problem with lines which we have drawn with text
just like this ------------ or ========== this type of two
lines are there.Just to expand a little on Sudha's reponse.
In Reports 6i, ODBC data sources are supported through OCA functionality (you should be able to find more about this in the help and documentation provided with the product).
In Reports 9i, JDBC data sources are supported through a native JDBC pluggable data source. We also support direct connections to Oracle Express, text files and XML files. If this is still insufficient for your needs, you can write your own pluggable datasource through a provided public API.
Regards,
Danny
Maybe you are looking for
-
AS3 swf doesn't update variables set via javascript
Can't figure this one out: I've got a C4 project with 2 slides. First slide has a button that executes a Javascript call: SetStringVariable("myVar"); Where myVar is an internal C4 user variable with a default value of "Hello World". The second slid
-
Hi, I have a Time Reporting site where users log in their time twice a month.This site uses only Out Of Box functionality. There is no scope for coding in my site. In the list i have created a view which shows the Time Report of the user logged in fo
-
Hi friends, I am struck with the cover flow on iPad. The Code i m using was initially implemented for iphone, I tried to customize it but unable to do so. Please help in out. So is there anyone who who has implemented cover flow feature with iPad.
-
Does SAP generate COMMIT WORKS when BAdIs end?
I want to call a function module "IN UPDATE TASK" from within a BAdI. Will SAP generate a "COMMIT WORK" when the BAdI ends, so that the function module is triggered ? If I do have to code a COMMIT WORK in the BAdI to trigger execution of the FM, won'
-
Auto-covert to 128aac works with shuffle - does it work with Nano also?
hi! I own a shuffle alu, now I am thinking to buy a Nano. The problem is, that the apple care hotline could not answer the simple question: Is the auto-covert to 128 AAC format aviable also when a Nano or a big iPod is connected to the mac? thank you