[英]Oracle Apex 20.1 Cascading LOV not working correctly
I am using apex 20.1 and try to implement the new cascading lovs option.我正在使用 apex 20.1 并尝试实施新的 cascading lovs 选项。 However it is not working as per expectation.
但是,它没有按预期工作。
Can you suggest where am I going wrong.你能建议我哪里出错了。
I have 2 items in my region:我所在地区有 2 件商品:
:P5_ASSIGNED_DEPT
- Assigned department for each employee :P5_ASSIGNED_DEPT
- 为每个员工分配的部门:P5_PERSON_NAME
- Name of employee :P5_PERSON_NAME
- 员工姓名I want the name of employees to populate as per assigned dept in table.我希望根据表中分配的部门填充员工的姓名。 If
assigned_Dept
is FINANCE, only employees with assigned dept as finance should populate in :P5_PERSON_NAME
.如果 assignment_Dept 是 FINANCE,则只有将部门
assigned_Dept
为财务的员工才应填充到:P5_PERSON_NAME
中。
I made these changes:我做了这些改变:
But despite selecting finance, i am getting names of all employess irrespective of dept.
但是,尽管选择了财务,我还是得到了所有雇员的名字,而不管部门如何。
What more changes are needed?还需要哪些改变?
I presume that query you used for P5_PERSON_NAME
doesn't contain P5_ASSIGNED_DEPT
.我认为您用于
P5_PERSON_NAME
的查询不包含P5_ASSIGNED_DEPT
。 Apex can't automagically add WHERE
clause to your query, you have to do it yourself. Apex 无法自动将
WHERE
子句添加到您的查询中,您必须自己完成。
So: P5_PERSON_NAME
's LoV query should look like this:所以:
P5_PERSON_NAME
的 LoV 查询应该如下所示:
select e.ename as display_value,
e.id as return_value
from emp e
where e.dept_id = :P5_ASSIGNED_DEPT
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.