这是用于在网络浏览器上调用报告的过程。
PROCEDURE proc_call IS
rep_url VARCHAR2(2000);
to_date1 VARCHAR2(12);
destype1 VARCHAR2(15);
desformat1 VARCHAR2(15);
copies NUMBER(3);
desname1 VARCHAR2(25);
userid1 VARCHAR2(5);
the_username VARCHAR2(25);
the_password VARCHAR2(25);
the_connect VARCHAR2(25);
BEGIN
the_username := get_application_property(username);
the_password := get_application_property(password);
the_connect := get_application_property(connect_string);
to_date1 :=:fertrake_receipt.select_month
|| :fertrake_receipt.select_year;
destype1 :=:fertrake_receipt.destype;
desformat1 :=:fertrake_receipt.desformat;
copies :=:fertrake_receipt.copies;
userid1 :=:fertrake_receipt.userid;
rep_url := '/reports/rwservlet?&userid&report=details_outstanding_private_trade.jsp&destype='
|| destype1
|| '&desformat='
|| desformat1
|| '&copies='
|| copies
|| '&MONTH_YY='
|| to_date1
|| '&userid1='
|| userid1
|| '¶mform=no';
web.show_document(rep_url,'_blank');
END;
以下代码是在按钮上按下触发按钮时以及以下代码中使用的上述程序上写的。
DECLARE
al_id alert;
al_button NUMBER;
BEGIN
IF :fertrake_receipt.select_month IS NULL THEN
al_id := find_alert('Alert_message');
set_alert_property(al_id,alert_message_text,'Enter A Valid MONTH');
al_button := show_alert(al_id);
RAISE form_trigger_failure;
go_item(:fertrake_receipt.select_month);
END IF;
proc_call;
END;
但是当我按下按钮执行报告时 它给出了错误 REP-52005:密钥映射文件中不存在指定的密钥。
我在google上搜索了如何在CGICMD文件中指定密钥请帮助我在cgicmd中执行的条目
答案 0 :(得分:0)
报告的CGICMD行应如下所示:
my_report: server=rep_ias report=my_report.rdf userid=username/password@ora11g destype=cache desformat=PDF %0 %1 %2 %3 %4 %5
在调用报告时,您只需提及错误消息中提到的“别名”或“密钥”(它是该行中的第一个单词“my_report”;虽然您可以按照您想要的任何方式命名,它更容易保持与.RDF文件名相同)。