|
|
Re: Running Oracle Report Through Form6i and validating between two dates [message #443564 is a reply to message #443557] |
Tue, 16 February 2010 05:10 |
m_khaleeq2006
Messages: 24 Registered: February 2010 Location: Pakistan
|
Junior Member |
|
|
I developed a parametric form like:
Select Starting Date: =============(x.y.z)
Select Ending Date: =============(x.y.z)
Select Course Date: =============(x.y.z)
============
PRINT REPORT
============
Now I want to send parameters to report. 1 for course and 2nd for date, in which the report should be display between starting and ending dates.
Please Help
Thanks
|
|
|
|
|
|
Re: Running Oracle Report Through Form6i and validating between two dates [message #443570 is a reply to message #443566] |
Tue, 16 February 2010 05:18 |
m_khaleeq2006
Messages: 24 Registered: February 2010 Location: Pakistan
|
Junior Member |
|
|
DECLARE
PL_ID PARAMLIST;
P_EXP DATE;
V_ALT NUMBER;
STR VARCHAR2(1000):='';
BEGIN
STR := STR || ' WHERE CASH_MEMO_DETAIL.SUBMIT_DATE BETWEEN ' ||:MAIN_BLOCK.START_DATE ||' AND '|| :MAIN_BLOCK.END_DATE ;
PL_ID := GET_PARAMETER_LIST('PLIST');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST('PLIST');
END IF;
PL_ID := CREATE_PARAMETER_LIST('PLIST');
IF NOT ID_NULL(PL_ID) THEN
ADD_PARAMETER(PL_ID,'P_EXP',TEXT_PARAMETER,str);
ADD_PARAMETER(PL_ID,'PARAMFORM',TEXT_PARAMETER,'YES');
ADD_PARAMETER(PL_ID,'MAXIMIZE',TEXT_PARAMETER,'YES');
END IF;
RUN_PRODUCT(REPORTS,'.\REPORTS\FEE_SLIP.REP',ASYNCHRONOUS, RUNTIME,FILESYSTEM, PL_ID,NULL);
END;
|
|
|
|
|
|
|
|
|
|
|
|
Re: Running Oracle Report Through Form6i and validating between two dates [message #447884 is a reply to message #447609] |
Thu, 18 March 2010 05:52 |
m_khaleeq2006
Messages: 24 Registered: February 2010 Location: Pakistan
|
Junior Member |
|
|
Respectful Sir!
I have a table named "Student" having following attributes:
STD_ID
STD_NAME
STD_FNAME
...
...
...
...
and
POF_NPOF
The "POF_NPOF" attribute, I have set data type "CHAR(1)" in which I stores only "P" or "N".
NOTE:-(Remember that I want to display it on report as "P" for "POF Student" and "N" for "Non POF Student")
Now in report builder, I have created a formula function named "STATUS" and attached the following code:
=============================================================
function STATUSFormula return varchar2(20) is
STD_STATUS CHAR(20);
begin
IF :POF_NPOF = 'P' OR :POF_NPOF = 'p' THEN
STD_STATUS:='POF';
ELSE
STD_STATUS := 'Non POF';
END IF;
RETURN STD_STATUS;
end;
==============================================================
I have set the source property of my required report textbox to "STATUS" but,
The above code is not working properly and no value is returned by this function.
If you have an idea then please help.
Thanks:
Muhammad Khaleeq
|
|
|
|
Re: Running Oracle Report Through Form6i and validating between two dates [message #447910 is a reply to message #447893] |
Thu, 18 March 2010 07:28 |
m_khaleeq2006
Messages: 24 Registered: February 2010 Location: Pakistan
|
Junior Member |
|
|
The "POF_NPOF" column contains only "P" or "N" in database.
Before applying your code, No output was displayed.
Now, I have apply your suggested code but it only displays "Non POF" for all records.
Column contains "N" for "Non POF" and some records "P" for "POF".
I want to display if:
Column contains "P" then it should display "POF" and if column contains "N" then it should display "Non POF"
|
|
|
|
|
|
|
|
|
|
|