从 APEX 页面项查询值

Query value from APEX page item

我正在查询两个 table 以在第二页上以表格形式显示值,基于在第一页上选择的行,(第二页上的数据是 editable,与第一页的列相关。)我在第二页创建了一个隐藏项来保存第一页的唯一标识符。但是,我在查询末尾的 "where" 子句中获取值时遇到了问题。如何在 Oracle APEX 中查询页面项值?

select g.GROUP_ID as GROUP_ID,
c.COMPONENT as COMPONENT,
c.DESCRIPTION as DESCRIPTION,
c.MANUFACTURER as MANUFACTURER,
c.MODEL as MODEL,
c.VALIDATED as VALIDATED,
'' as updated_group_id,
g.OBJECT_TYPE as OBJECT_TYPE,
g.Q_LEVEL as QUALITY_CLASS,
g.ASME as ASME 
from tbl_group g
left join tbl_component c on c.group_id = g.group_id
where g.group_id = p2_x

P2_X 是我的隐藏页面项,group_id 是从第一页传递的唯一标识符,两者都来自同一个 table。

只需添加一个冒号:

where g.group_id = :p2_x