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 |
What is the advantage of the library?
Is it possible to attach same library to more than one form?
what exactly u write in when_new_form_instance
What does the term panel refer to with regard to pages?
What is responsibility and how u attach How to create user and how u attach with responsibility.
What is the difference between bind and lexical parameter?
What ERASE package procedure does ?
What are display items?
What is an oracle report?
What is an anchoring object & what is its use?
How do u give the list of values in bind parameter
what is the difference between oracle reports 6i and oracle reports 10g? give atleast 10 differences? (plz give the answer vvvvvvvvvvv.urgent)