Home » Developer & Programmer » Forms » how to use global?
how to use global? [message #86084] Sun, 29 August 2004 18:49 Go to next message
agnes
Messages: 13
Registered: February 2004
Junior Member
how to use global variable?

example:

in my year_allocation form i hv

year_id,payment_(id),allocation_amount,balance_amount

so in order to get balance_amount,i have to deduct allocation_amount - payment_amount(in form payment)which is outside the year_allocation form. so how can i use formula to call the payment_amount in other form using global?

could u help me...plz..

thnks

regard from agnes

 
Re: how to use global? [message #86086 is a reply to message #86084] Sun, 29 August 2004 20:53 Go to previous message
Sunil
Messages: 132
Registered: September 1999
Senior Member
What ever value is calculated in your PAYMENT form just assign it to any global variable, e.g

:GLOBAL.PAYMENT_AMT := YOUR CALCULATED VALUE;

You don't need to declare the global Variable.

Once this is done, you can directly access it in any other form. In you case you could use,

balance_amount:= allocation_amount - :GLOBAL.PAYMENT_AMT ;
HTH
Sunil
Previous Topic: disabling save option in custom designed form in oracle applications
Next Topic: Shut Down Windows2000 from forms6i
Goto Forum:
  


Current Time: Sun May 19 11:21:28 CDT 2024