Please tell me what is wrong in the below query:
(Very Urgent)
=================================================
function BeforePForm return boolean is
begin
if :from_invoice_date is null OR :to_invoice_date is
null then
aiv.PERIOD_NMAE:=:gl_period
elsif :gl_period is null then
aiv.INVOICE_DATE between :from_invoice_date
and :to_invoice_date
end if;
return (TRUE);
end;
Answers were Sorted based on User's Feedback
Answer / sudipta santra
The function will be like that:-
function BeforePForm return boolean is
begin
if :from_invoice_date is null OR :to_invoice_date is null
then
aiv.PERIOD_NMAE:=:gl_period
elsif :gl_period is null or aiv.INVOICE_DATE between
:from_invoice_date and :to_invoice_date then
aiv.PERIOD_NMAE:=<insert value>
end if;
return (TRUE);
end;
Like that way it will be solved. In else part the assigned
value should be fixed how it would between two range of date?
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use GO-BLOCK package in a pre-field trigger ?
what is the diffrence between before parameter form triger & formate trigger
Explain how one can iterate through items and records in a specified block?
What are the ways to monitor the performance of the report?
HI Friends I m new dev(forms & report). can anyone tell me how we upload a document on form 11g.??
did u received a single file or multiple files
difference between repeating frame and frame
List the different types of columns in oracle reports.
how i build a report
What is a difference between pre-select and pre-query?
What is an oracle report?
How can you format a character field in a report Layout editor ?