|
Re: Getting calculation result from 2 form text boxes [message #498067 is a reply to message #498064] |
Tue, 08 March 2011 09:36 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
1) Can you please read and follow the orafaq forum guide - especially the part on how to format your post.
2) Since you don't need to query the DB to get this information you shouldn't be using a select statement. Instead you should be using a direct assignment:
:PL_PRODUCT_PROFIT := nvl(:PL_PRODUCT_SELL_PRICE, 0) - nvl(:PL_PRODUCT_ACT_PRICE, 0);
3) You should get into the habit of always prefixing item names with the corresponding datablock.
4) You should use when-validate-item instead of post-change.
|
|
|
|
|