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

how do u place it in required folder

1910


What is the difference between BPA AND Contract What are documents and test cases u followed

2365


what is the difference between call_form, new_form and open_form?

1279


suppose u have been seven tables based on that u have to create a report u don't have access to db. then how do u find the relation between tables

2009


how to use buttons,check boxes in paper layout,paper design and paper parameter form in oracle report developer 10g

1956


In what sequence do triggers get fired by oracle forms?

937


Explain how one can iterate through items and records in a specified block?

1090


What is the difference between bind and lexical parameter?

1053


in user parameter property we have list of values.can we write select query for binding? for example:: select empno from emp where deptno=:deptnum :deptnum is first parameter it displays distinct dept nos. if i do like this it is giving error:: bind variables are not allowed in the select statement

1662


In workflow how can we send a notification to the Supplier giving the Corresponding report Details.

1882


what is a package n what r the packages availbla in report

2074


what is difference between group above and group left report

3801


Explain the different levels at which oracle form services interact.

1029


Can you convert a bit-mapped report to ASCII (character-mode) Report ? How ?

2267


if u want to delete all these detail block etc what will happen in form

1967