【发布时间】:2018-09-26 08:42:25
【问题描述】:
我有一组开关项(是,否),应该在点击时生成修改后的报告。
简化设置:Button1,动态报告
来自动态报告的 PL/SQL 查询
declare
q_query varchar2(500);
q_select varchar2(500);
q_where varchar2(500);
begin
q_select := 'select Kat1, Kat2, Kat3 from TBL ';
IF :Button1 = '1' THEN
q_where := 'where Kat3=KatXYZ';
END IF;
q_query := q_select||q_where;
return q_query;
end;
仅供参考
- Kat3 包含字符串
- KatXYZ 是要搜索的字符串
- 查询(select ... from ... when Kat3='KatXYZ';)在以下情况下有效 更改为 SQL 而不是 PL/SQL
- 为 Button1 创建动态事件以刷新更改报告
- q_where := '其中 Kat3="KatXYZ"';不工作
- Button1 自定义设置 On 值:1 - Off 值:0
问题:单击开关项“是”时没有任何反应。有什么想法吗?
【问题讨论】:
标签: sql plsql oracle-apex