Doubt with Oracle Reports Format Trigger
Hi friends,
I have created a format trigger in oracle reports the code is
Function F_Department_NameFormatTrigger return Boolean is
v_report_url varchar2(300);
Begin
v_report_url :=‘http://localhost:8888/reports/rwservlet?
report=empReport.rdf&userid=hr@orcl&destype=cache&desformat=htm
lcss&p_dept=’||:department_id;
SRW.SET_HYPERLINK (v_report_url);
Return (TRUE);
End;but i am getting an error rep-0738 : only a function is allowed here can u please let me know whats wrong in this coding.
Regards,
Manoj
Probably you are using the wrong quotes. Please try this:
Function F_Department_NameFormatTrigger return Boolean is
v_report_url varchar2(300);
Begin
v_report_url :='http://localhost:8888/reports/rwservlet?report=empReport.rdf&userid=hr@orcl&destype=cache&desformat=htmlcss&p_dept='||:department_id;
SRW.SET_HYPERLINK (v_report_url);
Return (TRUE);
End;
Similar Messages
-
Doubts in oracle reports 2.5. programmers/ engineers please help me
sir,
i have a doubt in oracle reports 2.5. it is based on a single table only. i request u to reply for the same at the earliest. the problem is as follows:
There are certain code numbers for which sub heading is to be displayed and sub total should be made and grand total to be
made. also main title should appear in each page. also in parameter entry based on date format, month should be chosen
and amounts should be summed from several fields based on the month but beginning with april of the current year.
sample report is as follows:
parameter entry : pf_1 = 1-4-1999 pf_2 = 30-8-1999
NANCE AND ACCOUNT SYSTEM (main title)
machinery expenses sub heading (this is reqd)
code name debit_amount (actually this is not from table)
103001 mech machines 72
103002 sliver m/c 95
sub total 167
elec equipments again sub heading
104001 switch 17
104002 relay switch 95
sub total 112
grand total 279
but the table is as follows table name t1
code varchar6 name varchar30 mo1dbamt m01cramt m02dbamt m02cramt m03dbamt
m04cramt etc upto 12 months all data type number(15,2) totally 26 fields
the debitamount should be summed from fileds m04dbamt,m05dbamt, m06dbamt ..upto m08dbamt - no cramt should be added further any clarifications needed please discuss with me
pl note that i am from INDIA
thanking you
sincerely
sudhes kumarLook into the following:
-- page protect property of the repeating frame
-- Maximum number of records per page property -
Requirement with Oracle report builder
Hi All,,
I had a requirement like this...i am very new to Oracle report builder tool and Oracle APPS
i need to develop a sample report in this format.......please help me
which tables i need to use??
i know how to create user parameters,field columns...etc i have 50% knowledge on Oracle report builderYou can make start with
Oracle Reports Tutorial...
Here few link...
1. Tutorial 1
2. Basic--[2] Oracle Reports 10g Tutorials
3. About Oracle Report 10g: Triggers in Report Data Source and Report Style
Hope this helps
hamid -
Generation of pdf forms with Oracle Report
I would like to generate editable pdf with Oracle Reports. That means I need clickable check boxes in the output.
Any suggestions or hints?
Thanks in advance.
UweHi Uwe
Reports does not currently have the capability to create PDF files with form fields.
Regards
The Oracle Reports Team -
Hi
I am working on sql server reporting services with oracle 10g DB.I would like to learn oracle reports.I have just got it installed in my vista PC
Ps guide me with links/docs so that i can get started with oracle reports.
at the outset i would like to know the bleow
can i use a procedure returning a refcursor to run a report?
if so how?
Regards,Hello,
You'll find many doc, examples, demos ... on OTN :
http://www.oracle.com/technology/products/reports/index.html
http://www.oracle.com/technology/documentation/reports.html
http://www.oracle.com/technology/products/reports/htdocs/search.html?cat=ALP&col=ALC&submit=Search
For the Ref Cursors :
Oracle® Reports Building Reports
10g Release 2 (10.1.2)
B13895-01
40 Building a Paper Report with REF CURSORs
Regards -
DB2 OS400 Connection with Oracle Reports 9i with Windows XP
Dear Friends
I have a valid ODBC connection of DB2 OS400 and i am using the same with Crystal Report i want to use the same connection with oracle Reports 9i & Forms 9i.
The response will be highly appriciated.
Rgds
Muhammad Tahir Khanduplicate post.
DB2 OS400 Connection with Oracle Reports -
Hi all,
I got reports error out when using IPP printer. It bursts out REP-177 and REP-713 errors in fact. Could anybody advice how-to use IPP printer with Oracle Report ?user9066239 wrote:
Hi all,
I got reports error out when using IPP printer. It bursts out REP-177 and REP-713 errors in fact. Could anybody advice how-to use IPP printer with Oracle Report ?Same Answer. 10g not supported.
It's introduced in 11g. -
Where is the forum for Fusion Report Service with Oracle Reports?
Where is the forum for Fusion Report Service with Oracle Reports?
You could try this one, maybe post your question.
-
Urgent - Is it possible with Oracle Reports
Hi Friends,
I want to generate a report with multiple databases.
I have some part of data in oracle data base and some in sql server.
How can I generate a report with oracle data and sql server data at a time ?
How can I connect to both the dB's simultaneously ?
Is it possible with oracle reports ?
If not what is the other tool in oracle products ?
thanks for your help.
Have a good day.
sriniYou should use a dblink or the heterogenous connection
-
DB2 OS400 Connection with Oracle Reports
Dear My Friends
I want to prepare report by DB2 OS AS400 on Oracle report how i Connecte DB2 Database with Oracle Report.
TahirHello,
To access "non oracle DB" :
Reports 6i : OCA + ODBC driver
http://www.oracle.com/technology/products/forms/pdf/275201.pdf
Using Oracle® Forms Developer, Oracle® Reports Developer and the Oracle Open Client Adapter to access ODBC Data sources
Reports 9.0.x / 10.1.2 : JDBC
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_jdbcpds.htm
Oracle® Application Server Reports Services Publishing Reports to the Web
10g Release 2 (10.1.2)
B14048-02
9 Configuring and Using the JDBC PDS
Regards -
Help with Oracle Report Builder and SQL Server2000
Hey guys,
I just installed it Oracle Developer Suite10g with Report Builder and I am trying to use Report builder and wants to connect with SQL Server 2000. The problem that I am running in to is SQL Server 2000 i have is Window Authentication so Does not required to enter user name and password. So how can i connect my report builder to SQL server or is it possible to connect Report builder to SQL server?
Also, I want to create small practice version of database in Oracle how do i do it? what i mean by that is I installed trial version or Oracle developer 10g from www.oracle.com and now trying to get some knowledge with oracle. Could any one can give me some direction in this matter please.
Thank You
KeyHave a look at the reports help for the purpose header and trailer sections. Here is an exert:
"Report sectioning enables you to define multiple layouts in the same report, each with a different target audience, output format, page layout, page size, or orientation. You can define up to three report sections, each with a body area and a margin area: the names of the sections are Header, Main, and Trailer. By default, a report is defined in the Main section. In the other sections, you can define different layouts, rather than creating multiple separate reports. If you wish, you can use the margin and body of the Header and Trailer sections to create a Header and Trailer page for your reports." -
Report format trigger not working
Hi,
I am using a format trigger on a column in my report as follows:
function B_9FormatTrigger return boolean is
begin
if (:TEST > 30) then
return (FALSE);
else
return (TRUE);
end if;
end;
When testing in reports builder everything works fine, but when running the report from a form, the trigger is not executed.
I am thinking this might have something to do with te reports runtime, but i don't know how to solve it.
I am using Report Builder 9.0.4.0.33
Edited by: user10085365 on 3-feb-2009 6:12so, did you try my suggestion to switch the condition?
Or, is there maybe an old rep-file in your runtime-environment which doesn't include the format-trigger? Try to colorize a field and see if the correct reports-version is run.
And I am a 100% shure the :TEST value is correct.
So the field that should be hidden, stays displayedYes, but its unlikely that you hit a bug here (but not impossible), the chance in gendral is higher that there is some other reason for that. (in my case, 99.99% of the things which don't work are my own fault ;-) ) -
Hi I have a table in which I have a column called file_name of type BLOB. In that I used to store files of PDF format.I want to display those files in oracle report.
I'm using reports 6i.Can anybody know solution for this please let me know.
Regards
AnandHi Sankar,
Use SY-PAGNO.
ex;
REPORT ZSAMPLE2 line-count 20(2). .
Tables mara.
data itab like mara occurs 0 with header line.
Start-of-selection.
select * from mara into table itab.
Top-Of-Page.
write:/ sy-pagno.
uline.
End-of-selection.
loop at itab.
write:/ itab-matnr.
endloop.
- Satuish -
PL/SQL + XML with Excel report format?
Dear all,
I am a new beginner in XML Publisher. For the EBS11i, I can use PL/SQL with http scripts to generate excel report format.
The following code will include in store procedure:
>
begin
owa_util.mime_header(ccontent_type => 'application/vnd.ms-excel');
htp.htmlopen;
htp.headopen;
htp.print( '<STYLE>' );
htp.print( '<!--'||
'.xl24' ||
'{mso-style-parent:style0;' ||
'mso-number-format:"\@";}' ||
'.xl41' ||
'{mso-style-parent:style0;' ||
'mso-NUMBER-format:"\#\,\#\#0\.000";}' ||
'.xl42' ||
'{mso-style-parent:style0;' ||
'mso-NUMBER-format:"\#\,\#\#0\.00";}' ||
'.xl45' ||
'{mso-style-parent:style0;' ||
'mso-NUMBER-format:"\#\,\#\#0";}' ||
'-->' );
htp.print( '</STYLE>' );
htp.headclose;
htp.bodyopen;
htp.para;
htp.strong( '<U>' || 'Sample Report Name'|| '</U>');
htp.para;
htp.tablerowopen;
htp.tabledata('<DIV align="left">' || rec_main2.vendor_name || '</DIV>',cattributes => ' class="xl24" width="190"');
htp.tablerowclose
>
How can I do that in R12?
Please advice.We currently do not support SQL aliasing of directories. This
is causing your errors.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
Frank Hubeny (guest) wrote:
: I think I got past this point by first creating a directory
: under sys and then granting read privileges to owner of the
: domsample procedure (in my case the this user is called "xml").
: create directory xml as 'e:\web\xml';
: grant read on directory xml to xml;
: Then the call becomes (I think)
: exec domsample ('XML','family.xml','test.err')
: However, I am getting the following error:
: ERROR at line 1:
: ORA-20100: Error occurred while parsing: XML/err.log
: ORA-06512: at "XML.XMLPARSER", line 43
: ORA-06512: at "XML.XMLPARSER", line 120
: ORA-06512: at "XML.DOMSAMPLE", line 80
: ORA-06512: at line 1
: The readme says "It is necessary for the user running
: this sample to have been granted the appropriate security
: priveleges to read and write from a file on the file
: system." I am not sure what the "write" grant would be.
: And so I also set utl_file_dir so that it pointed to
: the directory. But somehow I don't think that utl_file is
: needed in this context. In any case, it appears I cannot write
: to the err.log file or find it.
: Brad Douglass (guest) wrote:
: : I'm receiving the following error when I use the domsample
: : procedure supplied with the PL/SQL XML parser:
: : SQL> exec domsample('e:\web\xml','test.xml','test.err');
: : begin domsample('e:\web\xml','test.xml','test.err'); end;
: : ERROR at line 1:
: : ORA-20101: Error occurred while accessing a file or URL:
: unknown
: : protocol: file
: : ORA-06512: at "XML.XMLPARSER", line 46
: : ORA-06512: at "XML.XMLPARSER", line 164
: : ORA-06512: at "XML.DOMSAMPLE", line 77
: : ORA-06512: at line 1
: : UTL_FILE doesn't have any problems with the file.
: : Any ideas?
null -
HELP with Oracle Reports 6i - user parameters .....
Hi, i have made a form with button in Oracle Forms 6i.
When i press the button it fires trigger (when-button-pressed) where i declared and made parameter (:p_dep_no) which i want to sedn to report and later query report with this (:p_dep_no) ...
In Oracle report i made this parameter under user parameter and made my SQL statemet where i included in where clause my parameter (:p_dep_no) .
When i run oracle forms and press this button i get popup screen which asks me to enter this user parameter....
My question is - how i can make it all automaticly ... that i didn't need to write (:p_dep_no) manualy, but report could get this parameter from oracle forms and then show me only queried report ....
Plz helpi have similar code already wroten to button, but when i push button and report is opening, i get popup report parameter form screen and it asks me to write parameter value....
here i have (when-button-pressed) code :
declare
pl_id ParamList;
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'par_report',TEXT_PARAMETER, :registry_id);
RUN_PRODUCT(REPORTS, 'C:\Oracle\DS6i\BIN\reg_atskaite_vienam.rdf',SYNCHRONOUS,runtime,FILESYSTEM,'pl_id',null);
end;
Maybe you are looking for
-
No more Sprint Pre? No more webos?
One of my agents said that she wasn't going to get a pre because her Radio Shack contact told her that they were discontinuing the Pre and that Sprint was going to be discontinuing the Pre. I checked with a friend of mine in the industry and he conf
-
Trial version problem when using more than 1 track - does trial version same as full one?
I am thinking of upgrading to Premiere Elements 9 as I have upgraded my laptop. But the trial version Premiere Elements 9 doesn't even perform as well (with the same media) as Elements 4.0 did on my old laptop. My new laptop is an HP Pavilion with In
-
Procedure inserting different number of records in GT table
I have procedure, in the procedure a dynamic query is get created. Then query is open using OPEN for statement into refcusror. Then I'm fetching the data into record type object within a loop..end loop and inserting the records in a GT table. But pro
-
DNS Address in Solaris 10 java desktop
Hi I have recently installed solaris 10 I am using Java desktop I configured Ip address I can able to get ping from other pc But I can not start Internet from Solaris 10 Os' So pl. guide How can I provide Gateway and DNS IP address In Solaris 10 Java
-
Syntax issue to find a cell.
Hello, I have a tab in which I need to find the highest number, which I do with the following in A2 in a second tab (which I use to extract the interesting datas of the first one) : =MAX(tab1 :: K4:Z65) In the next cell, I need to get the the content