基于LOV的Apex动态报告

时间:2015-08-10 11:35:18

标签: oracle oracle-apex

我希望根据值列表创建多个报告 - 但是我想使用' LOV.value'返回动态改变sql运行。因此,不要有报告列表,例如

report1
report2
report3

我希望底层的sql符合以下内容:

select * from reportview where reportname = 'LOV.value';

转换为:

select * from reportview where reportname = 'report1'; /
select * from reportview where reportname = 'report2'; / 
select * from reportview where reportname = 'report3';

取决于选择的选项。

这可能吗?如果是这样我怎么能这样做?

注意:是的,sql始终有效。

1 个答案:

答案 0 :(得分:1)

您可以在查询中使用具有LOV的项目:

select * from reportview where reportname = :P123_REPORT_NAME;

此处P123_REPORT_NAME是页面项的名称,例如一个选择列表,它具有返回与之关联的report1-3的LOV。如果愿意,您可以使用项目设置使APEX在更改值时提交页面。

对于弹出式LOV,没有“值更改时提交”设置。相反,您可以创建一个动态操作,在项目更改时触发并提交页面。

相关问题