Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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;

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we invoke one form from another in a multi-forms application?

1088


In what sequence do triggers get fired by oracle forms?

916


where do u put the report file

2048


What do we mean by record group in oracle forms?

1031


how do u compile a form i.e .fmb file in Unix or in dos

4518


how do u place it in required folder

1875


Name the different triggers supported by oracle reports and their firing order.

1032


What is an implicit anchor and how is it a different form explicit anchor in a report builder?

1108


what are bind variables?

1026


what are the oracle forms services components include?

971


a text item is there what r the different types of triggers associated with it

1953


What do you understand by lov and how can it be used?

1025


What is a user exit program in oracle reports?

982


hiding item in report how like that properly,thats manually but at runtime i want to do

3162


What is an oracle report?

999