Use of procedure in Report Builder
Hello all,
i am using Oracle 10gR2 Report Builder it is working properly with sql queries but i want to try it with procedures
so is it possible to use procedures in Report Builder as the same way we import query. i used a procedure but got an error :- ORA-24333 zero iteration count
Thanks & Regards
Pratik Lakhpatwala
Jr Oracle DBA
Edited by: Pratik.L on Oct 9, 2009 2:11 AM
Edited by: Pratik.L on Oct 9, 2009 2:12 AM
Does this procedure return the resultset as a REF CURSOR?
Having not worked on Report builder, I am not sure if this error is related to calling of procedure itself.
Similar Messages
-
How to query a dataset using custom code in report builder 3.0
Hi,
Can anyone please suggest whether it is possible to query a dataset by using custom code in report builder 3.0.
Thanks in advance.Hi Purbasha,
please see below similar thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9af8f39a-9dc5-49ab-91af-2f64198c8477/ssrs-2008-custom-code-for-database-query
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/440ff5de-1c21-47de-95d8-e4212d6cef6d/dataset-in-custom-code-in-sql-server-reporting-services?forum=sqlreportingservices
swallow -
How to Use Temporary table on report builder
Hi community!
Well, i'm trying to build a temporary table based report in Oracle Report Builder. in "After Parameter Form Trigger" I've placed a stored procedure that populate a temporary table and I've based my report on it. The problem is Report shows no data. When i execute this procedure directly on database and i perform a select on my temporary table, it show all inserted data.
I hope somebody can to help me because I tried many ways to build this report with my temporary table and always looks blank.Temporary tables are session specific.
If particular session is closed then no data will be found on your temporary table in an another session.
My suggestion is, on "After parameter form" trigger you directly populate the GTT without using procedure.
Hope this will help. -
Using CLOBs in oracle Report Builder
I want to select all the data in a CLOB column using SQL Navigator by just doing
select entry_note
from chartentries;
just as you say in your example by it just gives me back a result of (ORACLOB).
If I do
select to_char(entry_note)
from chartentries;
I get this error.
If I do
select dbms_lob.substr(entry_note,4000,1)
from chartentries
I get this (there’s more up to 32000 characters in a clob) and these weird squares which I think are CR (carriage returns) or LF (line feeds). I don’t want to see those characters and I would like to retrieve the entire CLOB in one swoop without doing data manipulations of substringing.
Using the same data in Oracle Report Builder, I want to select all the data in a CLOB column into a field in a Paper report layout but I keep getting errors, ora-6502, and I've found out that I am restricted to 4000 characters and in Report 9i it looks like the largest field you can have is 4000 characters. My CLOB information can be up to 32000 characters long or longer and I do not want to substring out 4000 characters at a time into separate fields. In Crystal reports there is no problem just selecting the clob in a simple query and it is there in one shot. I would have thought by now that Oracle would have changed its development tools to be able to handle Clobs simply without any manipulation. Does anyone know how to do this in Report builder? I just have a simple query:
select entry_datetime,
to_char(replace((entry_note),chr(13))) as entry_note
from chartentries
where patient_id = 49741
Another thing I want to do, is call this Oracle report from a PL/SQL block passing several parameters to the report and also call a Crystal report from a PL/SQL block passing several parameters to the report. Does anyone know what the commands are?What I had to do is create a query using query builder. This works fine; it's when trying to add the column to an existing query is where the data inconstancy error occurs. One thing you have to keep in mind is it will only work using the query builder in conjunction with the report wizard; I am not sure why. To incorporate the comments into an existing frame you will have to cut the frame created by the wizards and copy it into the existing frame. Otherwise the column name will not show in the source list of the property Inspector.
Good Luck -
How to use special characters in Report Builder
Hi everyone,
I wonder if you guys can help me. I'm trying to change our Invoice hearders from English to Portuguese. Eg, I've changed this English heading
("FOR ACCOUNT QUERIES CONTACT") to this Portuguese heading ("PARA CONSULTAS DE CONTA CONTACTE"). So when I'm done, my entire invoice will be in Portuguese. This works fine, until I get special characters in some of the Portuguese translations. I can copy and paste the translations with special characters into Report Builder. But when I print the invoice in Oracle Apps (with a PDF output), the special characters get replaced with a "?".
Here's an example:
< "Line No" should read "Linha nº" but it prints out as "Linha n?" > Does anybother know how I can resolve this? I'm using Report Builder: 10.1.2.3.0 on Oracle Apps: 11.5.10.2 and RDBMS : 10.2.0.4.0
Thank you in advanceHi,
You need to have Portuguese font installed on your machine, if you are running the report from your machine or else if you are running the same from report server then the font has to be there on the server font dir. -
Using DDE package in report builder 10g
Hi,
I use this code in form 10g to edit a ms word and its work properly:
DECLARE
APPID PLS_INTEGER;
CONVID PLS_INTEGER;
DOCID PLS_INTEGER;
SYS_DATE CHAR(8);
BEGIN
SELECT TO_CHAR(SYSDATE,'MM/DD/YY') INTO SYS_DATE FROM DUAL;
APPID := DDE.APP_BEGIN('C:\Program Files\Microsoft Office\Office12\WINWORD.EXE',
DDE.APP_MODE_MINIMIZED);
CONVID := DDE.INITIATE('WINWORD','SYSTEM');
DDE.EXECUTE(CONVID,'[FileOpen "c:\bin_test\exp.dotx"]', 10000);
DOCID := DDE.INITIATE('WINWORD','c:\bin_test\exp.dotx');
DDE.POKE(DOCID,'BOOKMARK1', SYS_DATE,DDE.CF_TEXT,10000);
DDE.EXECUTE(DOCID,'[FileSaveAs "c:\bin_test\output.doc"]', 10000);
DDE.TERMINATE(CONVID);
END;
when I put this code in the afterreport trigger in report builder 10g and call the report from form;
a blank document word is opened withoud any changes as well as the report result in pdf format.
what can i do to let this code work in report builder??
best regards,
AhmadI use this code in form 10g to edit a ms word and its work properlyI very much doubt that. Calling DDE from Forms this way would result in trying to open Word on the <b>server</b>.
the report result in pdf formatThe report result format is determined by how it is called. Looks like you call it with desformat=pdf. -
Using html in cf report builder and escaping the & ampersand character
Some of the data we collect is entered via a WYSIWYG editor. Therefore formatting such as bold, italic etc is translated into HTML.
The text could also contain special characters/accented characters, again these are translated into their html equivalents.
In CF Report Builder, I have set the XHTML Text formatting to TRUE. However the report won't render the text in these boxes. From what I can see it doesn't like the '&' character (ampersand).
I have read elsewhere that report builder is limited in the characters etc that it can read and that I should translate the values. I ended up doing this in the database to try and save some time.
CREATE OR REPLACE FUNCTION translatexhtmltoasci(var_text IN appendix3%TYPE)
RETURN clob
ISvar_translated_text clob;BEGIN
select replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(re place(replace(
replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(re place(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
(replace(replace(replace(replace(replace(replace(replace(replace(replace(
var_text , chr(38) || 'lt;', chr(60))
, chr(38) || 'gt;', chr(62))
, chr(38) || 'euro;', chr(49792))
, chr(38) || 'iexcl;', chr(49825))
, chr(38) || 'cent;', chr(49826))
, chr(38) || 'pound;', chr(49827))
, chr(38) || 'curren;', chr(49828))
, chr(38) || 'yen;', chr(49829))
, chr(38) || 'brvbar;', chr(49830))
, chr(38) || 'uml;', chr(49832))
, chr(38) || 'copy;', chr(49833))
, chr(38) || 'ordf;', chr(49834))
, chr(38) || 'laquo;', chr(49835))
, chr(38) || 'not;', chr(49836))
, chr(38) || 'shy;', chr(49837))
, chr(38) || 'reg;', chr(49838))
, chr(38) || 'macr;', chr(49839))
, chr(38) || 'deg;', chr(49840))
, chr(38) || 'plusmn;', chr(49841))
, chr(38) || 'sup2;', chr(49842))
, chr(38) || 'sup3;', chr(49843))
, chr(38) || 'acute;', chr(49844))
, chr(38) || 'micro;', chr(49845))
, chr(38) || 'para;', chr(49846))
, chr(38) || 'middot;', chr(49847))
, chr(38) || 'cedil;', chr(49848))
, chr(38) || 'sup1;', chr(49849))
, chr(38) || 'ordm;', chr(49850))
, chr(38) || 'raquo;', chr(49851))
, chr(38) || 'frac14;', chr(49852))
, chr(38) || 'frac12;', chr(49853))
, chr(38) || 'frac34;', chr(49854))
, chr(38) || 'iquest;', chr(49855))
, chr(38) || 'Agrave;', chr(50048))
, chr(38) || 'Aacute;', chr(50049))
, chr(38) || 'Acirc;', chr(50050))
, chr(38) || 'Atilde;', chr(50051))
, chr(38) || 'Auml;', chr(50052))
, chr(38) || 'Aring;', chr(50053))
, chr(38) || 'AElig;', chr(50054))
, chr(38) || 'Ccedil;', chr(50055))
, chr(38) || 'Egrave;', chr(50056))
, chr(38) || 'Eacute;', chr(50057))
, chr(38) || 'Ecirc;', chr(50058))
, chr(38) || 'Euml;', chr(50059))
, chr(38) || 'Igrave;', chr(50060))
, chr(38) || 'Iacute;', chr(50061))
, chr(38) || 'Icirc;', chr(50062))
, chr(38) || 'Iuml;', chr(50063))
, chr(38) || 'ETH;',I also stuck with this . Still no answer, no solution
-
Hello Experts,
i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
by using Following method
Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
Here is my existing CAML query.
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>Employees</ListName>
<ViewFields>
<FieldRef Name="Title" />
<FieldRef Name="FirstName" />
<FieldRef Name="LastName" />
<FieldRef Name="FullName" />
<FieldRef Name="UserName" />
<FieldRef Name="Company" />
</ViewFields>
<Query>
<Where>
<Eq>
<FieldRef Name="Title" />
<Value Type="Text">
<Parameter Name="EmployeeId"/>
</Value>
</Eq>
</Where>
</Query>
</RSSharePointList>
The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
Please suggest
Thank you
saroj
sarojYour problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
provides some examples,
http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
Dimitri Ayrapetov (MCSE: SharePoint) -
Can I create view or procedure in Report Builder? How?
thanks
You can create procedures and functions if i recall, it's been over 5 years since i've used it.
Any reason you can't just create the object in the database? That's typically the best place for stored code since it
1) gets backed up (i hope :D)
2) is accessible by multiple platforms (enhances code reuse)
3) identifies dependencies (if your package, view, whatever references a table, and that code is stored in the database, you know that by querying the data dictionary)
4) etc..... -
Comma separated output using report builder
Hi Experts,
I am working with EBS 11.5.10, database 9i, and report builder 6i. I have a XML Publisher report, with output type EXCEL, which is working fine. But if i get huge data like 1million, 2million, it's not able accommodate the output in EXCEL. Since it's EXCEL 2003, it can't handle data more than it's capacity(i think 60,000 rows).
So we thought, if we can generate the output in CSV file with comma separte, then we can open the file in EXCEL 2007. Could somebody help me how to generate the CSV output using report builder 6i.
or is there any work around to our problem, kindly help me, it's urgent.Hi,
Not sure if report builder can be made to generate csv output.
But you can create a PLSQL Report. Just use the query of Report Builder and write a Plsql procedure based on this query
-Idris -
How to use stored procedure in crystal report for eclipse
Hi;
I am working on crystal report for eclipse 2.0 and trying to use stored procedure in report .It is created from Oracle but it is not showing any dependencies
CREATE OR REPLACE procedure ACT_DB.getCostTransferDetails
p_In_Contract_ID varchar2 DEFAULT '*',
p_In_Status_ID varchar2 DEFAULT '*',
p_In_COST_TRAN_DATE varchar2 DEFAULT '*',
p_In_DEPT_ID varchar2 DEFAULT '*',
p_In_PROJECT_ID varchar2 DEFAULT '*',
p_In_EMPLOYEE_ID varchar2 DEFAULT '*',
p_Out_CostTransfer_Cusor OUT COST_TRANSFER_PACKAGE.COST_TRANSFER_TYPE
AS
BEGIN
OPEN p_Out_CostTransfer_Cusor FOR
SELECT
header.cost_tran_id,
header.cost_tran_date,
header.total_credit_amount,
header.total_debit_amount,
header.transfer_status,
header.updated_by,
header.added_by,
header.trf_over_ninety_days,
header.business_unit_id,
header.equip_approval,
header.batch_desc,
details.opr_unit_id,
status.status_id,
details.fund_code_id,
details.prgm_code_id,
details.class_id,
details.activity_id,
details.product_id,
details.status_id,
details.transaction_amount,
details.jrnl_date,
details.adjust_prcnt,
details.adjust_amnt,
details.details_equip_approval,
details.detail_desc,
details.account_id,
details.project_id,
details.dept_id,
details.contract_id,
details.reason_code_id,
details.jrnl_id,
employee.f_name,
employee.l_name,
employee.employee_id,
project.project_id,
project.project_status,
--header.transfer_status,
contracts.contract_desc
FROM header, details, status, employee, department, project, contracts
WHERE (header.cost_tran_id = details.cost_tran_id)
AND (header.cost_tran_date = details.cost_tran_date)
AND (header.transfer_status = status.status_id)
AND (department.dept_id = details.dept_id)
AND (department.dept_id = employee.dept_id)
AND (project.project_id = details.project_id)
AND (contracts.contract_id = details.contract_id)
AND (details.Contract_ID = p_In_Contract_ID OR p_In_Contract_ID ='*' )
AND (header.TRANSFER_STATUS = p_In_Status_ID OR p_In_Status_ID ='*' )
AND (TO_CHAR(details.COST_TRAN_DATE, 'MM/DD/YYYY') = p_In_COST_TRAN_DATE OR p_In_COST_TRAN_DATE ='*' )
AND (details.DEPT_ID = p_In_DEPT_ID OR p_In_DEPT_ID ='*' )
AND (details.PROJECT_ID = p_In_PROJECT_ID OR p_In_PROJECT_ID ='*' )
AND (header.ADDED_BY = p_In_EMPLOYEE_ID OR '*'=p_In_EMPLOYEE_ID )
Can any another way to make procedure
Thanx
Regards ,
AmolHi Amol,
Are you able to execute your stored procedure from oracle?.
- If "Yes" then use the Crystal Report XIR2 Designer to create the report.
- Import this report in the Crystal Report For Eclipse Workbench.
- The latest version for Crystal Report For Eclipse is SP1.
Please let me know the results.
Thanks,
Neeraj -
How to call a procedure designed in Report Builder?
Hi everyone,
The Problem?
I set up a procedure and would like to call this procedure in reports builder 6.0. I need to know how to call a procedure in reports builder.
Thanks
Tom GilmoreYou can call
procedures from a formula column's PL/SQL code.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Thomas Gilmore ([email protected]):
Hi everyone,
The Problem?
I set up a procedure and would like to call this procedure in reports builder 6.0. I need to know how to call a procedure in reports builder.
Thanks
Tom Gilmore<HR></BLOCKQUOTE>
null -
Having Problems with connections and access. I have spent the last 2 days reading various threads regarding SQL Reporting Services pertaining to access and connections.
First, let me explain what I have done to date.
1) I am using Windows 7 - Home Premium.
2) I downloaded and installed MS SQL Server 2008 R2 Express. This was successful.
3) I downloaded Report Server 3.0 - This was successful.
4) In IE, I tried logging onto http://servername/reports, but this failed. After logging into IE
via ' Run Administrator', I was able to access URL.
Next, I updated the security / trust sites as explained in the
threads
Next, I went to Folder Setting and added my user name and granted all roles (Browser,
Content Manager, My
Reports, Publisher and Report Builder).
5) Now, I can log into Http://servername/reports using my normal windows 7 user account.
6) Next, I opened Report Builder 3.0. However, I am having trouble connecting to report
server. I tried connecting with
http://servername/reports, but this failed.
However, If I change URL to http://servername/reportserver, it works. BUT NOW, I have
another problem. When I
execute the RUN button to create report, I get a permission
error. "PERMISSION GRANTED TO USER ARE
INSUFFICIENT FOR PERFORMING THIS OPERATION".
7) Finally, I can not save reports to http://servername/reportserver when I select "Recent
Site and Servers". ERROR
MESSAGE: UNABLE TO OPEN OR SAVE REPORT
8) In my Reporting Services Configuration Manager:
Web URL = http://servername:80/ReportServer
Report Manager URL = http://servername:80/reports.
What is strange, the Report Manager URL works for IE URL and WEB URL works for
Report Builder connect (Even though it really does not work).
THREE QUESTIONS:
1) What URL should I use to connect in Report Builder.
2) How do I update my normal Windows 7 user so I can run reports when I connect to report
builder.
3) How can I save my reports so they are displayed in IE Reporting services. Note: I was
able to save report to
documents folder and import into IE Reporting Services.
4) And finally, is it possible to add report builder 3.0 as a tab in my IE Reporting Services. I
save seen samples of Reporting Services screens where the instructor has Report Builder
tab.
Thanks
DanTo answer question 1... it should connect through /ReportServer
http://bretstateham.com/reporting-services-architecture-diagram%E2%80%A6/
Report Builder 3.0 is not a web application, it is a client side application can be used using the click-once or downloaded from Microsoft's website. If you are having issues, you might download and install it and try running it as an administrator. -
Dynamic Order By on Report Builder 10g
Hi,
How can I do a dynamic order by clause using user parameters on Report Builder 10g? I need to set dynamically the column and the direction on the clause.
Thanks.
Bruno Galletti
Brazil.Hi Bruno / Rainer,
I am implementing the same solution, and after adding the lexical parameter reference in the SQL statement and calling the report from Oracle Forms the report failed with the following error on the report server:
Terminated with error: <br>REP-300: missing expression select wcsr_no , wcsr_date , wcsr_rec_week_zone , wcsr_loc_house_num || ' ' || wcsr_loc_pre_dir || ' ' || wcsr_loc_street_name || ' ' || wcsr_loc_street_type || ' ' || wcsr_loc_post_dir || ' ' || wcsr_loc_unit || ' ' || wcsr_loc_city || ' ' || wcsr ==>
No change has been done to the SQL statement except adding the &p_orderby parameter at the end of the query.
Any suggestions? Are all parameters defined as "bind" parameters on the Repotr Object Navigator.?
Thanks
Gabriel Aguirre
[email protected] -
Report Builder Question - OA AR Aging - and a general question
I'm sure this is the wrong forum for this question, but I thought there might be someone here who might be using Oracle Applications and Report Builder who'd be kind enough to help me out.
We've recently implemented Oracle Applications 11.5.10 and I have to use report builder to change the Accounts Receiveable Aging (7 bucket) to a 5 bucket report. I've already made some changes to the seeded "ARXAGMW.rdf" report, but I'm not a big Oracle Reports guy. I've stumbled through making some changes in various other reports. But this one is just plain nasty! :)
I was thinking that I could simply add buckets 6 & 7 to bucket 5, then just hide or delete the 6 & 7 buckets. But I'm not sure where to even start. Any help with this would GUARANTEE a Christmas or other holiday card this year! :)
I really want to keep this simple as possible, so any help would be very....helpful. :)
Oh, my general question is: Are there any resouces/books for Oracle Reports (Report Builder)? I feel so lost trying to modify existing reports, let alone creating new ones.
Thanks again!
SteveHi Steve,
I am working on the 7-bucket aging report and i want to add a new field in data model.
As the query is build dynamically, i have modified the function BUILD_CUSTOMER_SELECT to meet my requirements.
But the problem is that in the data model, the field is not present in my Grouping. and if I try to add the field in the Data Model query (Q_ Customer) section,
i get the following error: ORA-01789: query block has incorrect number of result columns.
The query is as shown below:
select rpad('a',50,'-') short_cust_name,
0 cust_id,
rpad('a',30,'-') cust_no,
rpad('a',500,'-') sort_field1,
rpad('a',40,'-') sort_field2,
0 payment_sched_id,
rpad('a',32,'-') class,
sysdate due_date,
0 amt_due_remaining,
0 days_past_due ,
0 amount_adjusted,
0 amount_applied,
0 amount_credited,
sysdate gl_date,
'x' data_converted,
0 ps_exchange_rate,
0 b0,
0 b1,
0 b2,
0 b3,
0 b4,
0 b5,
0 b6,
rpad('a',25,'-') bal_segment_value,
rpad('a',500,'-') inv_tid,
rpad('a',32,'-') invoice_type
, 'y' parent_cust --I WANT A NEW FIELD HERE TO BE VIEWED ON THE REPORT LAYOUT LATER
from dual
where 1=2
UNION ALL
&common_query_cus
Did i missed somthing 4 me to be able to add the field here?
Maybe you are looking for
-
Can I set up another user id that my mother can use to download free books without using my personal apple id that I used to set up her ipad with originally?
-
Transferring music from 3GS to iPhone 5 without a PC
I have an iPhone 3gs with lots of downloaded and purchased music on it and want to transfer all this to an iPhone 5. The trouble is I don't have a PC at the moment so I cannot use the USB cable to sync etc in itunes. Is there another way to get all
-
My macbook can't find home wifi
My macbook air can't find the home wifi. It can, however, find the neighbours' wifis. The home wifi is working fine with my other laptop and iphone so the wlan router is working. I can't add the network by manually entering its name (says "no network
-
Apple mail not displaying properly
My first time in this forum. Hopefully, you can help. I am having a problem in Apple Mail in Mac OS X Lion 10.7.3. Some e-mails from the same sender appear fine with images and links properly displayed, yet other times I only see text with underlin
-
I have a T22 that works fine except the screen is VERY dim and can hardly be seen. It shows a very faint picture. Any ideas as to what may be the problem? I found some post mentioning a bad "inverter". I have an external LCD monitor connected and wor