Hi All,
I created a stored procedure with parameters in package, i used that stored procedure in crystal Reports XI..till now its working fine.
Now i need to retrieve a report based on Parameter range values..
My question is:
Is it possible to assign Ranges to Parameters? Bydefault Ranges should be NULL. I have to enter Range values from webpage.
This is my stroed Procedure which i used without Range values:
I need Range values for Begin_Date Parameter.
procedure Select_Budget(p _PK_Budget_Head er_Id IN BUDGET_HEADER.P K_BUDGET_HEADER _ID%TYPE,
P_BEGIN_DATE IN BUDGET_HEADER.B EGIN_DATE%TYPE DEFAULT NULL,
RETURN_CURSOR OUT type_pkg.ref_cu rsor_typ) is
begin
OPEN RETURN_CURSOR FOR
SELECT
BH.PK_BUDGET_HE ADER_ID,
BH.FK_BUDGET_MA STER_ID,
BH.BEGIN_DATE,
BH.END_DATE,
BH.COMMENTS
FROM BUDGET_HEADER BH
WHERE BH.PK_BUDGET_HE ADER_ID = nvl(p_PK_Budget _Header_Id, BH.PK_BUDGET_HE ADER_ID)
AND BH.BEGIN_DATE = nvl(p_BEGIN_DAT E, BH.BEGIN_DATE);
end Select_Budget;
I think this is clear for you, if not i am ready to give you clear idea..
Thanks in Advance
I created a stored procedure with parameters in package, i used that stored procedure in crystal Reports XI..till now its working fine.
Now i need to retrieve a report based on Parameter range values..
My question is:
Is it possible to assign Ranges to Parameters? Bydefault Ranges should be NULL. I have to enter Range values from webpage.
This is my stroed Procedure which i used without Range values:
I need Range values for Begin_Date Parameter.
procedure Select_Budget(p _PK_Budget_Head er_Id IN BUDGET_HEADER.P K_BUDGET_HEADER _ID%TYPE,
P_BEGIN_DATE IN BUDGET_HEADER.B EGIN_DATE%TYPE DEFAULT NULL,
RETURN_CURSOR OUT type_pkg.ref_cu rsor_typ) is
begin
OPEN RETURN_CURSOR FOR
SELECT
BH.PK_BUDGET_HE ADER_ID,
BH.FK_BUDGET_MA STER_ID,
BH.BEGIN_DATE,
BH.END_DATE,
BH.COMMENTS
FROM BUDGET_HEADER BH
WHERE BH.PK_BUDGET_HE ADER_ID = nvl(p_PK_Budget _Header_Id, BH.PK_BUDGET_HE ADER_ID)
AND BH.BEGIN_DATE = nvl(p_BEGIN_DAT E, BH.BEGIN_DATE);
end Select_Budget;
I think this is clear for you, if not i am ready to give you clear idea..
Thanks in Advance
Comment