How to build a report in webi XIr2 using stored procedure
Post Author: vijay123
CA Forum: WebIntelligence Reporting
hi,
Is anybody can help me out how to creat a report using stored procedure in webiXir2
thanks
vijay
Post Author: amr_foci
CA Forum: WebIntelligence Reporting
this has been posted twice.. i think
Similar Messages
-
How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000
Post Author: ltkin
CA Forum: WebIntelligence Reporting
Hi,
How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000 ?
Regards,Hi ltkin,
Unfortunately, it is not possible in Xir2 to create Webi reports from stored procedures.
Webi reports can only be created from Universe. So in Business Objects XIR3 we can create a special universe that enables Web Intelligence user's to access stored procedures residing in the database. This is the only way that Web Intelligence user's can access stored procedures.
Please let me know if the above information helps.
Regards,
Pavan -
Crystal report XI - problem to use stored procedure
When I add a stored procedure in my new report I can't see my argument (parameter). I don't know if I forget something.
I use an Oracle database and My procedure is :
CREATE OR REPLACE PROCEDURE Rech_Objet_Dans_Vue (pNomVue VARCHAR2, pTexteVueContient VARCHAR2) AS
--Date de création: 6 mars 2008
--Utilisateur: turgema01
--Procédure créée dans le but de faire une recherche dans le texte d'une vue qui est de type LONG. Comme il n'est pas possible d'effectuer
-- une fonction sur un champ de type long, nous utilisons cette procédure pour sortir les noms des vues contenant notre critère de recherche
-- Exemple d'utilisation : EXECUTE Rech_Objet_Dans_Vue('DEC%', '%GAC_PROJ_LOGIC%')
-- Nous donnera le nom des vues dont le nom de la vue est comme ''dec% et dont le texte de la vue contient '%gac_proj_logic%'
TYPE TYP_REF_CUR IS REF CURSOR ;
CVUE TYP_REF_CUR ;
-- Variables de réception du contenu de la requête
TEXTlongTOchar VARCHAR2(32767);
NomVue ALL_VIEWS.view_name%TYPE ;
BEGIN
OPEN CVUE FOR 'Select view_name, TEXT From all_views WHERE OWNER = ''FMDTEST'' AND view_name LIKE '''|| pNomVue ||'''';
LOOP
FETCH CVUE INTO NomVue,TEXTlongTOchar ;
--TEXTlongTOchar := SUBSTR(TEXTlongTOchar, 1, 254); Inutile d'afficher le code de la vue puisque qu'on ne peut afficher plus de 254 caractères
IF TEXTlongTOchar LIKE pTexteVueContient THEN
DBMS_OUTPUT.PUT_LINE (NomVue);
END IF;
EXIT WHEN CVUE%NOTFOUND;
END LOOP;
CLOSE CVUE;
END;It's been a while since I've looked at Oracle stored procedures, but I recall specifying a cursor in the first argument, from which Crystal retrieves the data.
Subsequent parameters are used to pass data into the stored proc, and should be exposed in the designer.
Example that I have:
CREATE OR REPLACE PACKAGE vantech IS
TYPE cursor_weak IS REF CURSOR;
TYPE cursor_strong IS REF CURSOR RETURN tueda2%ROWTYPE;
END vantech;
CREATE OR REPLACE PROCEDURE tueda2_sp_strong (
tueda2_cursor IN OUT vantech.cursor_strong,
tueda2_id IN tueda2.id%TYPE ) AS
BEGIN
OPEN tueda2_cursor FOR
SELECT *
FROM tueda2
WHERE tueda2.id >= tueda2_id;
END tueda2_sp_strong;
CREATE OR REPLACE PROCEDURE tueda2_sp_weak (
tueda2_cursor IN OUT vantech.cursor_weak,
tueda2_id IN tueda2.id%TYPE ) AS
BEGIN
OPEN tueda2_cursor FOR
SELECT *
FROM tueda2
WHERE tueda2.id >= tueda2_id;
END tueda2_sp_weak;
Sincerely,
Ted Ueda -
How to create a report with a PL/SQL Stored Procedure method
Hi,
We are working in oracle applications 11i on oracle database 9i.
I have a custom procedure that is used to send Payslip SMS messages to staff.
I am thinking about creating a request for that procedure so the HR user can run it himself at the end of every month from the HR responsibility.
any hints , guidelines or references will be appreciated...
thanks...See the example in MOS Doc 73492.1 (Creating a PL/SQL Concurrent Program in Oracle Applications)
More details in the Developer Guide - http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf - Chapters 16 and 17
Srini -
How to update all the rows of table using stored procedures
Hi,
I want to update all the rows of a table of a specific column
sp_a male
sp_b female
sp_c male
sp_d female
in above table
gender of all the columns has to be interchanged.Sir table is like this detail(name varchar(10),gender varchar(10))
Where Details are like this
Name Gender
sp_a
male
sp_b
female
sp_c
male
sp_d
female
I want to create a stored procedure which automtically updates gender from male to female and female to male
for all the rows . i.e., all the rows are updated for column gender by just running a stored procedure.
So after execution of stored proc the above table looks
Name Gender
sp_a
female
sp_b
male
sp_c
female
sp_d
male -
Sub report using Stored Procedure returns incorrect data
Post Author: rikleo2001
CA Forum: Data Connectivity and SQL
Guys,
I am using CR 9 in ASP.net application.
One simple report and one Sub report, sub report is basically linked with Stored procedure accepting one parameter and returns a select query.
Main report is linked with that sub report using that parameter field.
Sub report is on demand sub report.
Now when I execute that main report and click on on demand sub report I am getting Wrong order information.
Here is out put on main report
Order 1 on demandDetail
Order 2 on demandDetail
Order 3 on demandDetail
NOW If I click on Order 3 (On demanddetail link, it displays rondom order details, some time correct on too), I am really stuck and don't know where I am going wrong.
Please help me to solve this issues.
Many ThanksPost Author: rikleo2001
CA Forum: Data Connectivity and SQL
Hi Yangster,
Thank you so much for your reply.
On DEMAND Sub report is located in main report, IN DETAIL SECTION
I am passing Order ID from main report linked to {?morderid} in subreport under command object, and if I run it in design mode, it works perfectly alright, so problem is isolated to ASP.NET and Crystal report post back method on Crystal report.
The example I give to you this is a simple example to identify issues in my real application and report.
My main report contains summary of data base on unique identifier. that summary have 4 differant types of details which has to be on the same report (as Crystal report doesn't provide Nested subreport), so I decided to use 4 subreports on main report and all subreport using Stored procedure command object.(Sub report has it own complex processing requirement to fulfill).
Please help me with any further ideas? for the sample which I presented to you this is only using one SP on main report with a simple processing.
Many Thanks -
How to build a Oracle style Web site
Dear All,
(Not sure whether this question should be this sub-site or not.)
My question is how to build a Oracle style Web site, what technology should be use.
Example Site: [http://www.orapub.net/ebs/index.htm|http://www.orapub.net/ebs/index.htm]
This web site style is like Oracle Enterprise Manager.
Thanks a lot
PanYou can use Oracle Webcenter or just Oracle ADF to build a Oracle Enterprise Manager kind of Website.
See details here -
http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm
http://www.youtube.com/watch?v=iE2zTNhlvy8 -
Creating a report in Web dynpro using OOPS concept
Hi all,
Iam new to web Dynpro, i need to create a report in Web Dynpro using oops concept. can any one guide me regarding it.
Regads,
EasterHi,
Please refer to these links -
DEMO_COMMON_ASSISTANCE1 -Example for standard component
http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
Regards,
Lekha. -
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 use dynamic parameter when a report is created using Stored Procedures
Hi all,
any one have the idea of how to use dynamic parameter in crystal report XI R2
when report is created using Stored Procedure.
Regards
shashi kant chauhanHi
You can create an SQL command in Database Expert > Expand your datasource > Add command
Then enter the SQL query that will create the list of values to supply to the user
eg select field1,field2 from table
Then edit the parameter of the report. These will be the SP parameters adn can be seen in field explorer.
Change the parameter type to Dynamic
Under the word Value click on Click here to add item
Scroll down to your Command and select one of the values that you want to appear in the list
e.g field1
Then click on the Parameters field - this is essential to create the param
You can edit other options as required
That should do it for you.
I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
Best of luck -
How to build ear files for ADF application using Ant task
How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
Any help is highly appreciated.
Thanks
ShivaHi Timo
Thanks for your reply.
I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
error :
weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
Please advise how to handle this.
As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
Appreciate your help.
Thanks
Shiva -
Is i possible to base a report on a pl/sql stored procedure
Is i possible to base a report on a pl/sql stored procedure?
If Yes please give directions on how to do it.
/mortenHello Morten,
In Reports 9i, with new feature JDBCPDS its possiable to create a report against a existing stored procedure.
Using JDBCPDS, user can access any JDBC-enabled data source. You can access database like Oracle, DB2, Sybase, ODBC Data Sources, etc using supporting
JDBC Drivers. User can also connect ODBC Data Sources like SQL Server, MS-Access, Excel etc.
User can create a JDBC Query angainst a SQL Query or Stored Procedure in any of mentioned dataSource.
Following is the syntax of the Oracle Stored Procedure, which can be used as Data Source with JDBCPDS.
Steps to create a JDBCPDS Report through Report Builder : http://otn.oracle.com:8877/reports/help/ - > JDBCPDS- > How To
//----------Package definition for Ref cursor ----------/
package test_Procedure as
type empcurProcedure5 is ref cursor;
end test_tryProcedure5;
// -----------Procedure definition ---------//
test_Procedure(p_emp_cv out test_tryProcedure5.empcurProcedure5,
p1 in NUMBER) is
begin
update emp set sal=sal + 50 where deptno > P1
open p_emp_cv for select * from emp where deptno > P1;
end test_Procedure;
Procedure first parameter will be Ref Cursor and will be used to return the resultSet to JDBC Query.
User should create first this procedure in Database. Then in JDBC Query Dialog, user can call this stored procedure by specifying procedure name.
test_Procedure(40)
Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more Connection and
JDBC-Driver information.
With Regards
Reports Team -
Why Dynamic Parameter is not working, when i create report using stored procedure ?
Post Author: Shashi Kant
CA Forum: General
Hi all
Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
is not shown to me when i referesh the report for viewing the results.
I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
============================================================================================
1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
Dynamic Parameters in Action
My question is that whether dynamic parameter is working with storedprocedure or not.
When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
Please reply soon , it's urgent
Regards
shashi kantHi Kishore,
I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
=lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
As to the second issue, please try to use the following expression:
=Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl file with all the size properties to us by the following E-mail address? It is benefit for us to do further analysis.
E-mail: [email protected]
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to use Stored Procedures in form 6i Blocks
Dear Friends,
I would like to know how to use Stored Procedures while creating blocks in Data Block Wizard in forms 6i application.
Please send me sample code of stored procedure.
Regards,
Khader.The Data Block Wizard is not for creating stored procedures. It will allow you to use a stored procedure in your form. See the help documentation for how to use the wizard.
Here's an example of a simple procedure. If you search the database forum or the web, you will find many examples.
CREATE OR REPLACE PROCEDURE procedure_name (value OUT NUMBER ) AS
BEGIN
SELECT COUNT(*) INTO value
FROM your_table;
END;
Message was edited by:
Mark Roberts -
Using Stored Procedure Universe in Reports
Hi Friends,
I got some issues using SP's in Universe and WebI Report.
Case #1:
Can we execute dynamic SQL using stored procedure universe..?
I use SQL server as the DB for my reports.I created a SP which will execute on getting a input value from the user.This input value will frame the SQL dynamically in the SP.for executing the dynamic SQL i use sp_executesql inside the SP.The SP wexecutes successfuly in the DB but when i try executing it in the Universe i get a error message as follows: "Exception : DBD,[Microsoft][SQL SErver Native Client 10.0][SQL Server]Incorrect syntax nesr 'FROM'.State:42000"
The script i used for creating SP for your reference:
CREATE PROCEDURE P_S_GetCodeValueList
@s_table nvarchar(75)
as
begin
declare @s_sqlCommand nvarchar(1000)
declare @s_tablename nvarchar(75)
declare @s_code nvarchar(75)
set @s_tablename=@s_table
set @s_code = '*'
set @s_sqlCommand= 'SELECT ' + @s_code + ' FROM ' + @s_tablename
exec sp_executesql @s_sqlCommand
end
Case #2:
AIl also tried creating reports using the SP Universe which needs to get the parameter when the user refesh the report.
But every time the report is refreshed the report fetches the data which was produced when the SP is executed in the Universe for the first time.
I need to get the prompt in the report , to which the user could give a value and the SP gets executed for that value.
Is there any option in BO to do this?
It will be very helpful if you could give me some work arounds on this.
Regards,
SugumarHi Sugumar,
I can answer you for your 2nd question:
When you create the Stored procedure in the Universe and test it on retreiving data by inserting variable input you can check if the user could insert new value for the SP parameters.
Hope this helps!
Regards
Giuseppe
Maybe you are looking for
-
Album Art Not Syncing Correctly!!!!
Howdy! I really need help with my brand new iPod Touch! The album art doesnt sync correctly!!! What do I do to fix it?!?!?!?!?!?!1
-
How can i remove the adware "adk2" from my mac?
since a few hours i really have problems with annoying popups in browser. they come from adk2.com, but I can't remove them from my computer. I tried everything I could think off. Downloaded several adware detection programs, but none of the removed t
-
JClient: Different tables with same ViewObject
I am using two tables the user can see at the same time as different JInternalFrames which show the data of the same ViewObject. I have two questions concerning this: 1. When I have opened the first table and have done a executeQuery() for the ViewOb
-
Memory leak? Not sure what's going on..
I've been using Cinema4D for months, and this is the first time I've looked in Activity monitor during a render. *Note: I've tried rendering a tiny scene vs. a gigantic scene, and it's the same result. Eventually my entire computer crashes and I get
-
I have MAC OS X version 10.5.8 and want to update
How do I go about updating my version of MAC OS X Version 10.5.8, so I can start using itunes. Help!!!