REP-52005:密钥映射文件中不存在指定的密钥

问题描述 投票:0回答:1

这是用于在Web浏览器上调用报告的过程。

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
     ||  '&paramform=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中执行的条目

oracle oracle11g database-administration plsqldeveloper oraclereports
1个回答
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文件名相同)。

  • 服务器是报表服务器的名称。
  • Userid包含用于连接数据库的凭据。
  • %0%1%2等表示参数;你可以使用最多%9,这意味着总共10个参数
© www.soinside.com 2019 - 2024. All rights reserved.