动态更改APEX_ITEM。 Oracle顶点中的TEXT值 [英] dynamically changing the APEX_ITEM. TEXT value in Oracle apex

查看:193
本文介绍了动态更改APEX_ITEM。 Oracle顶点中的TEXT值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an application where I have created classic report. it has 4 columns.

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的值。

I want to dynamically change the value for attribute2 based on attribute1.

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

attribute2 = attribute3*attribute1, where attribute3 will be pre-fetched and attribute1 will be entered by user.

我想根据attribute1的变化动态计算属性3。

I want to calculate attribute3 on-fly(dynamically), based on changes in attribute1.

版本:4.2.1

推荐答案

你可以用一个(中等复杂的) )动态操作如下。

You can do this with a (moderately complex) dynamic action as follows.


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


  1. 所采取的行动是运行一些Javascript,在同一行中找到名为f04和f05的其他2个元素,得到 f04和f06元素,将它们相乘并将结果存储在f05元素中。

这篇关于动态更改APEX_ITEM。 Oracle顶点中的TEXT值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆