我有一个包含 2 列的交互式报告。报告来源
SELECT APEX_ITEM.CHECKBOX2(1,a.USR_CODIGO,DECODE(NVL((SELECT 1 FROM PROYECTOS_ROLES_USUARIOS pru WHERE pru.USR_CODIGO = a.USR_CODIGO AND pru.PRY_ID = :P92_PRY_ID),0),0,'UNCHECKED',1,'CHECKED')) as Incluir,
a.USR_CODIGO as Usuario FROM USUARIOS a;
我想添加第三列,一个动态的值列表,应该由这段代码填充
SELECT ROL_DESCRIPCION AS display_value, ROL_CODIGO as return_value FROM ROLES WHERE EXISTS (SELECT 1
FROM ROLES_USUARIOS
WHERE ROL_CODIGO = ROLES.ROL_CODIGO
AND USR_CODIGO = a.USR_CODIGO)) as Rol
a.USR_CODIGO 应该是报告每一行的pk。
有没有办法做到这一点?