我正在编写 Oracle Reports Builder 中的报告,但我的 AFTERPFORM 触发器有问题。查看报告时,似乎年份正在正确处理,而期间和子期间正在使用它们的初始值。我很困惑,因为它们是完全相同的选择语句,但没有按预期工作。任何帮助将不胜感激!
function AfterPForm return boolean is
v_subpdenddt_user date;
v_subpdenddt_max date;
v_rowcount integer;
begin
select value into year from wos_report_param where parameter = 'year' and sequence_num = :sequencenum;
select value into period from wos_report_param where parameter = 'period' and sequence_num = :sequencenum;
select value into user_subpd from wos_report_param where parameter = 'subpd' and sequence_num = :sequencenum;