gpt4 book ai didi

javascript - 动态更改 APEX_ITEM。 Oracle 顶点中的 TEXT 值

转载 作者:行者123 更新时间:2023-11-29 10:36:11 25 4
gpt4 key购买 nike

我有一个创建经典报告的应用程序。它有 4 列。

SELECT KEY,  
APEX_ITEM.TEXT(6,attribute3,10) attribute3,
APEX_ITEM.HIDDEN(3,KEY) ||
APEX_ITEM.TEXT(4,attribute1, 10) attribute1,
APEX_ITEM.TEXT(5,attribute2, 10) attribute2
FROM table1 ;

我想根据 attribute1 动态更改 attribute2 的值。

attribute2 = attribute3*attribute1,其中 attribute3 将被预取,而 attribute1 将由用户输入

我想根据 attribute1 的变化动态(动态)计算 attribute3。

版本:4.2.1

最佳答案

您可以使用(中等复杂的)动态操作执行此操作,如下所示。

  1. 当用户更改名称为“f06”的任何元素(即您使用 p_idx=>6 定义的属性 3)时,将触发操作。

enter image description here

  1. 采取的行动是运行一些 Javascript,在同一行中找到另外两个名为“f04”和“f05”的元素,获取“f04”和“f06”元素的值,将它们相乘并存储结果在“f05”元素中。

enter image description here

关于javascript - 动态更改 APEX_ITEM。 Oracle 顶点中的 TEXT 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36003828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com