级联 LOVS - 默认值

Cascading LOVS - default values

我有两个级联 LOV。在第二个 LOV 中更改我的第一个 LOV 的值后,将填充适当的值。


第一个爱: 姓名 - P2_DEPTNO

select dname, deptno  
from dept  
order by 1;  

第二个爱: 姓名 - P2_EMPNO

select ename, empno  
from emp  
where deptno = :P2_DEPTNO;  

级联 LOV 父级 - P2_DEPTNO

更改第一个 LOV 值后,我应该添加什么来设置第二个 LOV(查询的第一行)的默认值?

确保将“显示空值”设置为“否”,并且它应该使用列表中的第一个值。 (虽然我不确定它会用 Popup LOV 做什么)。

终于在Oracle社区论坛上得到了正确答案

This is possible in only one case, because I'm more familiar with this type of issue in my project. We need to change the second item type i,e "Empno" item type from Pop-up LOV to Select-List. Also make null setting changes as per given below :

On DEMO works proper.

Please note that this will CAN NOT be achieved with item type as POP-UP LOV directly using simple step. To make this work using you need to work on POP-UP LOV we need so much custom changes, like DYnamic Actions , JS Code, Asynchronous calls to DB.

来源 - https://community.oracle.com/thread/4048009
作者 - EnigmaCoder