计算 Oracle Apex 表格字段的总和
在我的 oracle apex 表格中有一个 column
作为 Price
。我需要计算此列下所有字段的总和并将其分配给主表单中的隐藏字段以进行验证。 实际上,主表单中有一个名为 Total_Price
的字段。此Total_Price
字段的值必须等于详细表单中Price
的总和。 但我不知道如何以 oracle apex 表格形式计算 Price
column
的 sum
。我怎样才能做到这一点?
There is a column
as Price
in my oracle apex tabular form. I need to calculate sum
of all fields under this column and assign it to hidden field in Master form for validation.
Actually there is a filed as Total_Price
in master form. Value of this Total_Price
field must be equals to sum of Price
in detail form.
but i don't know how to calculate sum
of Price
column
in my oracle apex tabular form. how could i do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您希望在按下“应用更改”按钮时执行这些操作,因此您可以在页面进程中执行此操作。
您需要确定哪个 Apex 数组保存该表格形式列中的数据 - 例如 apex_application.g_f01、apex_application.g_f02,...一种方法是在运行页面时查看页面源并查找组成该列的元素。如果它们具有属性
name="f01"
,那么您需要的数组是 apex_application.g_f01,依此类推。然后只需在页面进程中编写此代码(我假设所需的数组是g_f01):
Since you want to do these when the Apply Changes button has been pressed, you can do it in a page process.
You need to identify which Apex array holds the data from that tabular form column - e.g. apex_application.g_f01, apex_application.g_f02, ... One way is to view the page source when running the page and look for the elements that make up the column. If they have the attribute
name="f01"
then the array you need is apex_application.g_f01, and so on.Then simply write this code in the page process (I have assumed the array required is g_f01):