oracle apex 20 - 值的级联列表不起作用,例如复选框组
oracle apex 20 - cascading list of values does not work e.g. checkbox groups
- 我向静态内容区域添加了 2 个复选框组(:P1_G1、:P1_G2)
- 我指定了值列表 SQL查询
select r, d 来自 parent 为 null 的代码
select r, d from code where instr (',' || parent || ',', ',' ||:P1_G1 || ',')> 0
- 我设置了Cascading List of Values Parent Items(s)
:P1_G2 -> :P1_G1
如果更改:P1_G1,则:P1_G2不会更改。
:P1_G2中的List of Values没有看到:P1_G1的值,因为在服务器端还没有更新
我只能通过添加一个新项目 (:P1_G1_ACT) 来解决问题,我通过动态操作为其添加了一个值,并且 运行 一个“虚拟”pl / sql code (x:=1;) 然后 :P1_G2 List of Values in select in query replace :P1_G1 to :P1_G1_ACT.
有没有人有更好的解决方案,想法?
谢谢
在级联值列表中,您需要在“要提交的项目”字段中指定 SQL 中使用的项目。
这意味着如果父项发生变化,所有必要项的值都会发送到服务器端
- 我向静态内容区域添加了 2 个复选框组(:P1_G1、:P1_G2)
- 我指定了值列表 SQL查询 select r, d 来自 parent 为 null 的代码 select r, d from code where instr (',' || parent || ',', ',' ||:P1_G1 || ',')> 0
- 我设置了Cascading List of Values Parent Items(s) :P1_G2 -> :P1_G1
如果更改:P1_G1,则:P1_G2不会更改。 :P1_G2中的List of Values没有看到:P1_G1的值,因为在服务器端还没有更新
我只能通过添加一个新项目 (:P1_G1_ACT) 来解决问题,我通过动态操作为其添加了一个值,并且 运行 一个“虚拟”pl / sql code (x:=1;) 然后 :P1_G2 List of Values in select in query replace :P1_G1 to :P1_G1_ACT.
有没有人有更好的解决方案,想法?
谢谢
在级联值列表中,您需要在“要提交的项目”字段中指定 SQL 中使用的项目。
这意味着如果父项发生变化,所有必要项的值都会发送到服务器端