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 a property clause itself be based on a property clause?
What are the difference between lov & list item?
i am having a report Jan to Dec are the columns if the present month is Mar only Mar to Dec columns should appear in report output
What is relation between the window and canvas views?
What is the difference between flex mode and confined mode?
what are the oracle forms services components include?
What is an implicit anchor and how is it a different form explicit anchor in a report builder?
Name the two files that are created when you generate the form give the filex extension ?
How many number of columns a record group can have?
Explain about horizontal, Vertical tool bar canvas views?
how to send sms to mobile phone from oracle forms.
How do u give the list of values in bind parameter