calculate sum in a form [message #282830] |
Fri, 23 November 2007 23:28 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
white_phoenix
Messages: 19 Registered: November 2007
|
Junior Member |
|
|
hi, i am a newbie. how do w calculate sum in a form? for example in datablock sale, I have few rows of data,
i want to calculate the total of product purchased (column totitem) and , sum of the customer have to pay. (totalprice). And i was hoping to do the calculation in a program unit
hoping for immediate repiles.
[Updated on: Fri, 23 November 2007 23:33] Report message to a moderator
|
|
|
Re: calculate sum in a form [message #282843 is a reply to message #282830] |
Sat, 24 November 2007 02:02 ![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) |
akramrabaya
Messages: 41 Registered: November 2007
|
Member |
|
|
hi, i am a newbie. how do w calculate sum in a form? for example in datablock sale, I have few rows of data,
i want to calculate the total of product purchased (column totitem) and , sum of the customer have to pay. (totalprice). And i was hoping to do the calculation in a program unit
hoping for immediate repiles.
[Updated on: Fri, 23 November 2007 23:33]
--create a new disply items on the same block
---for example name it purchase_total
--go to teh properties of this item
--go to the calculation section nad put the following values
calculation mode >>>>>> summary
summary function >>>>>> sum
summarized block >>>>>> ( block name ) in your case as u
mentioned it is "sale"
summarized item >>>>>> ( col. name ) in your case as u
mentioned it is ( the col. which represent product
purchased
note : you have also to make sure that in ur block properties to make query all records property as "yes"
akram
|
|
|
|
|
|
|
Re: calculate sum in a form [message #282889 is a reply to message #282888] |
Sat, 24 November 2007 12:39 ![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) |
white_phoenix
Messages: 19 Registered: November 2007
|
Junior Member |
|
|
because when i did it using built in function, the text item or text field i created will display 10 rows of text item or text field to be displayed. For the data block to be calculated I set the property to display 10rows. But for total I only want 1 row
|
|
|
|
|
|
|
Re: calculate sum in a form [message #334445 is a reply to message #282830] |
Wed, 16 July 2008 09:27 ![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) |
alquarles
Messages: 2 Registered: May 2008 Location: New York
|
Junior Member |
|
|
How would you calculate the sum of this if a user wants to see the information of person A or information of person B. For example, items belonging to only person A or items belonging to only person B?
|
|
|
|
|