Report_other parameter in set_report_object_property

Hi everyone,
I am having trouble passing values from a form to a report. I need to pass a value to report for report_other parameter.
- p_func is a user parameter in the report.
- :control.func_name is the block and item name in the form.
The report works fine if I pass the value as a constant like this
v_param:='paramform=no p_func=' Air Service';
However, if I pass the value from an item in forms block... like this
v_param:='paramform=no p_func=' ||:control.func_name||' ';
I get this error from reports
"REP-0788: Warning: The value of restricted LOV parameter P_FUNC is not among the selectable values."
Thanks in advance for your help.

Try this,
v_param:='paramform=no p_func=' || AddQuote(:control.func_name);
FUNCTION AddQuote(cText VARCHAR2) RETURN VARCHAR2 IS
BEGIN
RETURN (CHR(39) || cText || CHR(39));
END;
Message was edited by:
Denis Demers

Similar Messages

  • Calling report from form with lexical parameter

    hi
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
         rep_status VARCHAR2(20);
    BEGIN
              repid := FIND_REPORT_OBJECT( 'REPORT34' );
              set_report_object_property(repid,report_other,'p_SEASON_YEAR='||:SALE_ORDER.SEASON_YEAR
              ||' &sort='||:sale_order.sort1);
              --set_report_object_property(repid,report_other,'p_g_id =20');
              v_rep := RUN_REPORT_OBJECT(repid);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    --Display report in the browser
    WEB.SHOW_DOCUMENT('http://127.0.0.1:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;i had made a lexical parameter in reports the reports code is
    SELECT s.season_year,sd.prod_id,P.PROD_NAME,sum(sd.total_qty)
    FROM sale_order s,sale_order_detail sd,PRODUCT P,CUSTOMER_MASTER cm,CUSTOMER_DETAIL cd
    where s.id=sd.id and P.PROD_ID=SD.PROD_ID AND s.season_year = :p_season_year
    AND CD.CUST_ID=CM.CUST_ID AND CD.CUST_ID=S.CUST_ID AND CD.COUNTRY NOT LIKE 'SPA%' AND Sd.PROD_ID LIKE  'CA%'
    group by s.season_year,sd.prod_id,P.PROD_NAME
    &sortthanks and regards
    vikas

    Vikas,
    So, is your code producing an error when your report is called? Also, it would be helpful to know your Forms and Reports versions. Is ":p_season_year" set up as a USER_PARAMETER (UP) in your report or is it a true lexical parameter (meaning you should reference it with '&' instead of ':')? If it is a UP, the typical way to pass a value to this UP from Forms is to use a ParamList object instead of the REPORT_OTHER parameter of the Set_Report_Object_Property built-in. For example:
    DECLARE
       pl_id    ParamList;
       pl_name  VARCHAR2(10) := 'REPORT34';
       v_rep VARCHAR2(1000);
       rep_status VARCHAR2(20);
    BEGIN
       pl_id := Get_Parameter_List(pl_name);
       IF id_null(pl_id) THEN
          pl_id := Create_Parameter_List(pl_name);
       END IF;
       Add_Parameter(pl_id, 'P_SEASON_YEAR', TEXT_PARAMETER, :SALE_ORDER.SEASON_YEAR);
       repid := FIND_REPORT_OBJECT( 'REPORT34' );
       v_rep := RUN_REPORT_OBJECT(repid, pl_id);
       ...  rest of your code here  ...
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem in Runinng a report with parameter form through Run_Report_object

    Hi,
    I am trying to run reports thought RUN_REPORT_OBJECT built-in. It works fine in following cases
    * Run a report without parameter Form
    * Run a report with parameter form by passing parameters through parameter
    List.
    But it did not o\work in following cases.
    * Run a report with parameter form by passing parameters through setting the
    REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.
    * Run a report with parameter form by using Reports own parameter form.
    In first case it says un able to run report and does not even submitt the job to the AS. In the second case its submits the job but when i show it with WEB.SHOW_DOCUMENT, it opens the parameter form and when i run the report after filling the parameters, it displays an error page.
    I am using 9iDS and 10g AS, and 10g Database. Please help me.
    Mohib.

    Mohib,
    Run a report with parameter form by passing parameters through setting the REPORT_OTHER option of SET_REPORT_OBJECT_PROPERTY built-in.[...] it says un able to run report and does not even submitt the job to the AS
    This sound like a user error to me and you want to check the parameters and maybe look at the Reports Queue Manager for the exact error message
    Run a report with parameter form by using Reports own parameter form.
    See:
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
    and
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.zip
    Frank

  • Error is calling callablestatement from spring with in parameter as date

    [5/14/07 20:01:29:554 IST] 40b3b5f0 WebGroup E SRVE0026E: [Servlet Error]-[CallableStatementCallback; SQL []; ORA-01858: a non-numeric character was found where a numeric was expected
    ; nested exception is java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
    ]: org.springframework.dao.DataIntegrityViolationException: CallableStatementCallback; SQL []; ORA-01858: a non-numeric character was found where a numeric was expected
    ; nested exception is java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
    java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
    i m trying to pass the date as the in papameter in stored procedure.
    the format is MM-dd-yy in database.
    but i m getting the error
    date passed is in the correct format i.e 05-14-07

    Vikas,
    So, is your code producing an error when your report is called? Also, it would be helpful to know your Forms and Reports versions. Is ":p_season_year" set up as a USER_PARAMETER (UP) in your report or is it a true lexical parameter (meaning you should reference it with '&' instead of ':')? If it is a UP, the typical way to pass a value to this UP from Forms is to use a ParamList object instead of the REPORT_OTHER parameter of the Set_Report_Object_Property built-in. For example:
    DECLARE
       pl_id    ParamList;
       pl_name  VARCHAR2(10) := 'REPORT34';
       v_rep VARCHAR2(1000);
       rep_status VARCHAR2(20);
    BEGIN
       pl_id := Get_Parameter_List(pl_name);
       IF id_null(pl_id) THEN
          pl_id := Create_Parameter_List(pl_name);
       END IF;
       Add_Parameter(pl_id, 'P_SEASON_YEAR', TEXT_PARAMETER, :SALE_ORDER.SEASON_YEAR);
       repid := FIND_REPORT_OBJECT( 'REPORT34' );
       v_rep := RUN_REPORT_OBJECT(repid, pl_id);
       ...  rest of your code here  ...
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • REP-0546 when displaying parameter form

    Hi,
    here is my issue:
    when i run the report from forms with paramform=no the report works fine and produces valid output.
    However when parameter paramform=yes the parameter form window comes up with error:
    REP-0546: The parameter value is invalid
    I am puzzled.
    Any suggestions?

    Hello,
    Reports are 11g, there are no before or after trigger. However there is validation trigger on the parameter. I am running the report from Oracle Forms 11g
    Here is a code snippet:
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_FILENAME);
    hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_DESTYPE);
    hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY (p_report_id,REPORT_DESFORMAT);
    -- hidden_action := hidden_action ||'&desname='||GET_REPORT_OBJECT_PROPERTY (p_report_id,REPORT_DESNAME);
    -- hidden_action := hidden_action ||'&copies=1';
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'
    ||get_application_property(password)||'@'||
    get_application_property(connect_string);
    c_old :='@';
    -- replace spaces with & sign for html page parameters format
    FOR i IN 1..LENGTH(p_report_otherparam) LOOP
    c_new:= substr(p_report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    -- hidden_action := hidden_action ||'&'||v_report_other;
    -- hidden_action := v_report_servlet||'?_hidden_server='||v_report_server||hidden_action;
    -- message('hidden_action = '||hidden_action);
    --message(' ');
    -- Build the string of user parameters dynamically
    -- if parameter list exists build string of parameters dynamically
    if NOT id_null(p_param_list) then
    begin
    FOR idx IN c_rep_params (GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_FILENAME)) LOOP
    if (idx.parameter_type = 'USER') then
         GET_PARAMETER_ATTR(p_param_list,idx.parameter_name,v_paramtype,v_value);
    if (v_other_params is NULL) then
    v_other_params := '&'||lower(idx.parameter_name)||'='||v_value;
    else
         v_other_params := v_other_params||'&'||lower(idx.parameter_name)||'='||v_value;
    end if;
    end if;
    END LOOP;
    -- message('parameters for the report: '||v_other_params);
    end;
    end if;
    message('Other params: '||v_other_params);
    hidden_action := hidden_action ||'&'||p_report_otherparam||v_other_params;
    hidden_action := v_report_servlet||'?_hidden_server='||v_report_server||hidden_action;
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action||v_other_params);
    --v_string1 := 'http://wdpra99a0227.wellsfargo.com:9003/reports/rwservlet?SERVER=rep_wls_reports_wdpra99a0227_asinst_1&destype=cache&desformat=pdf&userid=fur/devgang@oadev&report=cprofall.rdf&pf_assignment=CN132';
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id, REPORT_OTHER,'pfaction='||v_string1||' PARAMFORM=YES');
    SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action);
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||p_param_list);
    message('pfaction='||hidden_action);
    -- Based on the parameter list make the call to run report
    if NOT id_null(p_param_list) and (upper(p_report_otherparam) like '%PARAMFORM=NO%') then
         vc_report_job_id := RUN_REPORT_OBJECT(p_report_id,p_param_list);
    else
    vc_report_job_id:=RUN_REPORT_OBJECT(p_report_id);
    end if;
    message('Report job id = '||vc_report_job_id);
    /* The report output is not delivered automatically to the client, which is okay
    because the Web is a request model. Thus the next step is to check if the report finished.
    vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    vc_rep_status := report_object_status(vc_report_job_id);
    END LOOP;
    v_rep_job_id := substr(vc_report_job_id,length(v_report_server)+2,length(vc_report_job_id));
    --message(v_rep_job_id);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Report output to be displayed in a separate browser window. The URL
    for relative addressing is only valid when the Reports Server is on the same host
    as the Forms Server. For accessing a Remote Reports Server on a different
    machine, you must use the prefix http://hostname:port/
    --web.show_document ('/<virtual path>/<reports cgi or servlet name>/getjobid='||
    --vc_report_job_id ||'?server='|| '<ReportServerTnsName>','_blank');
    WEB.SHOW_DOCUMENT(v_report_servlet||'/getjobid'||v_rep_job_id||'?server='||v_report_server,' _blank');
    -- copy outputfile to provided destination
    if (v_rep_file_to is not null) and (v_rep_file_from is not null) then
    -- copy in windows
    v_host_string := 'cmd /c copy ' ||v_rep_file_from|| ' ' ||v_rep_file_to;
    message(v_host_string); message(' ');
    -- client_host(v_host_string);
    end if;
    ELSE
    message (SQLERRM);
    END IF;

  • Error in Desname parameter

    Hi, I'm using win97, forms y reports 6i.
    I'm trying to send a report within forms using DESNAME parameter like:
    SET_REPORT_OBJECT_PROPERTY(repid,
    REPORT_DESTYPE,
    PRINTER);
    SET_REPORT_OBJECT_PROPERTY(repid,
    REPORT_DESNAME,
    ':LPT1');
    --I'm also used the printer name 'OKIDATA'
    v_rep := RUN_REPORT_OBJECT(repid);
    But this cause a windows error in the module RWLIB60.DLL. And if i comment the DESNAME parameter this is ok.
    I need use the desname parameter, because my application can change this parameter at runtime
    I hope somebody help me
    null

    hello,
    i would check with oracle support services at http://metalink.oracle.com/ .
    regards,
    the oracle reports team --pw
    PS: there is no win97 ;-)

  • WEB.SHOW_DOCUMENT parameters trouble

    Hi everyone,
    I'm trying to run a report from a form by a submit button in the form. It does work, I mean, I can see the report after pressing the button, but it works as if there was no parameter, it ignores it completely. I don't really know how to use the RUN_REPORT_OBJECT and the WEB.SHOW_DOCUMENT. My parameter P_SOC is a number and I'm using 10g for the DB and also for forms and reports. Can anyone help me?
    Thanks in advance!
    DECLARE
    LIS_PARAM PARAMLIST;
    NOM_PARAM VARCHAR2(13):= 'P_SOC';
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
         LIS_PARAM:= GET_PARAMETER_LIST(NOM_PARAM);
         IF ID_NULL(LIS_PARAM) THEN
              LIS_PARAM := CREATE_PARAMETER_LIST(NOM_PARAM);
         ELSE
              DELETE_PARAMETER(LIS_PARAM,'P_SOC');
         END IF;
         ADD_PARAMETER(LIS_PARAM,'P_SOCIEDAD',TEXT_PARAMETER,:SOC.IDSOC);
         repid := FIND_REPORT_OBJECT('CT');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'P_SOC=:PARAMETER.P_SOC');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_nan');
         v_rep := RUN_REPORT_OBJECT(repid,LIS_PARAM);
         WEB.SHOW_DOCUMENT('http://nan:8889/reports/rwservlet/getjobid'|| substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_nan','_blank');
    END;

    Hi,
    You can use RUN_REPORT_OBJECT or WEB.SHOW_DOCUMENT.
    Run reportobject is basically similar to run_product in the old version of forms and requires that the reports file is listed within the form (under reports).
    Web.show_document is different. With this you can just take the URL and run the report outside your application (should you wish). This does require an entry into the cgicmd.dat file on the app server (under reports/conf).
    Check out the help in Forms for details of these commands.
    HTHs
    L :-)

  • Run Report from Oracle Forms9i

    Hi how are u all.......i am shahzad and i have little problem....i am working on developer 6i with oracle 9i database..........now i upgrade into developer 9i.....now the problem is that when i call the report from form then error is generated that is like'you cannot use reun run_product here use run_report_object'
    Any one plz tell me how to run report from forms 9i also how to pass parameter too...means check the parameter from forms and give me the reports
    guys its urgent
    Thanks in advance :)
    Thanks you

    fot this u have to use standard code as follows
    parameter list is as it was in 6i
    v_report_id := FIND_REPORT_OBJECT('report name');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'dflt');
    Set_Report_Object_Property(v_report_id,REPORT_OTHER,'ENVID="NFA"');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,ls_file_path||'\'||to_char(sysdate,'dd')||
         --     to_char(sysdate,'mm')||to_char(sysdate,'yyyy')||'.doc');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,OUTFILE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, reportserver);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'paramform=no');
    vc_report_job_id:=RUN_REPORT_OBJECT(v_report_id,pl_id);
    v_jobID := substr(vc_report_job_id,length(reportserver)+2,length(vc_report_job_id));
    if      vc_report_job_id is not null then
    vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
    while vc_rep_status in ('RUNNING', 'OPENING_REPORT','ENQUEUED') LOOP
    vc_rep_status := report_object_status(     vc_report_job_id);
    end loop;          
    IF vc_rep_status<>'FINISHED' THEN
         message ('Report failed with error message '|| vc_rep_status);
              END IF;
         end if;

  • Help Modifying run_report_object to work in Oracle 11g

    I need help with my code.  I'm running the Weblogic 10.3.6 and Oracle 11gR2 Forms/Reports.  My original Forms/Reports was working in Oracle 10g Forms/Reports, but now i can't figure out how to modify the code to run in 11g with "in-process" report server.  I know you can omit the server name in the web.show_document, but not sure how to modify this code. Help Please...
    Procedure ReportXXX is
         ro_report_id                    REPORT_OBJECT;
         str_report_server_job     varchar2(100);
         str_job_id                         varchar2(100);
         str_url                              varchar2(100);
         PL_ID                              PARAMLIST;
    Begin
         PL_ID := Get_parameter_list('TEMPDATA');
    if not ID_NULL(PL_ID) then
         DESTROY_PARAMETER_LIST(PL_ID);
    END IF;
    PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
    RO_Report_ID := FIND_REPORT_OBJECT('NAME OF REPORT IN OBJECT NAVIGATOR');
    ADD_PARAMETER(PL_ID, 'V_PROJ_CD', TEXT_PARAMETER, 'C7I');
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'actual location of the report to run');
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_OTHER, 'paramform=no;);
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
    SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'REP1');  --with Oracle 11g using "in-process" so how to reference?
    Str_Report_Server_Job := RUN_REPORT_OBJECT (RO_Report_ID, PL_ID);
    Str_Job_ID := substr(str_report_server_job, length('REP1') + 2, length(str_report_server_job));
    str_URL  := '/reports/rwservlet/getjobid' || str_job_id || '?server=REP1';
    WEB.SHOW_DOCUMENT(STR_URL, '_SELF');
    DESTROY_PARAMETER_LIST(PL_ID);
    end;
    thank you,
    steven

    If we want to execute form in A server to run report that reside in B server, we can use web.show_document with B server host name / port and report servlet parameter.
    But is it possible if we use run_report_object ? (No share admin , no cluster)
    Yes.
    We have your same configuration (two independent FMW Linux machines), and we use run_report_object to run all our reports. Some time ago, for reasons that I don't detail here, we had to stop one of the reports servers, and we used the other one, with no problems at all.
    The reports server name is unique within the network, and you can use any reports server that is visible by
    rwdiag.sh -findAll

  • Run a report in Forms 9i after migration from Forms 6i

    Hi,
    I face the following problem:
    We do have to migrate from Forms 6i to 9i. In our "old" application, reports where called by using RUN_PRODUCT (in different forms and menues). But to start a report in 9i environment, RUN_REPORT_OBJECT must be used. Does the report has to be an object in the calling form or is it possble to start it as we used to directly from the file system ?
    Regards,
    Markus

    hi
    you need to create a report object in the object navigator.
    and follow these
         declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    pl_id paramlist;
    d date;
         BEGIN
              /* for passing parameters
              PL_ID:=GET_PARAMETER_LIST('P1');
              IF(ID_NULL(PL_ID)) THEN
                   PL_ID:=CREATE_PARAMETER_LIST('P1');
              ELSE
                   DESTROY_PARAMETER_LIST('p1');
                   PL_ID:=CREATE_PARAMETER_LIST('P1');
              end if;
              select to_char(max(start_date),'dd-mon-yyyy') into d from work_schedule_detail;
         add_parameter(pl_id,'MACHINE',text_parameter,'C');
    --     add_parameter(pl_id,'S245',text_parameter,'HI FROM FORM');
    repid := find_report_object(:report_list);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
    --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
    use only if u r using reports parameter form
    need some coding in reports before parameter form trigger
    IF(:report_list NOT IN ('monthly_exp')) THEN
    --     SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'MACHINE=C');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,
    'paramform=yes P_USER_CONNECT=PAYROLL/PAYROLL@PINNACLE
    P_SERVER_NAME=rep_devserver P_ACTION=http://devserver:7778/reports/rwservlet?');
              v_rep := RUN_REPORT_OBJECT(repid);
    else
    for reports with out any parameters
    v_rep := RUN_REPORT_OBJECT(repid);
    end if;
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://devserver:7778/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

  • To close the Reports backgorund engine

    Hi All,
    I am calling report from form and it works fine.
    But reports background engine is open all time
    could anyone check the following code and help me whats wrong in this
    DECLARE
    rg_id RecordGroup := find_group('RG_PROJ_ID_IN');
    rpt_id REPORT_OBJECT := find_report_object('GENERIC');
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    errcode number;
    REP_PROP VARCHAR2(20);
    BEGIN
    --if :TB.DISPLAY = 'm2rpt015'
    if :tb.display is not null
         then
    alertme('caution','run report '||:tb.display||' ?');
    -- SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_FILENAME,:tb.display||'.rep');
    SET_REPORT_OBJECT_PROPERTY(rpt_id, REPORT_OTHER, 'p_project_id=M');
    SET_REPORT_OBJECT_PROPERTY(rpt_id, REPORT_OTHER, 'ORACLE_SHUTDOWN=YES');
    SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_FILENAME,'c:/module6.rep');
    v_rep := RUN_REPORT_OBJECT(rpt_id);
    do_key('clear_form');
    end if;
    EXCEPTION
    when form_trigger_failure then null;
    END;
    Thanks

    from Note:1019164.6 on metalink :
    NOTE: The argument 'Yes' is case sensitive and must be upper case 'Y' followed by lower case 'es'.
    NOTE: The Oracle_Shutdown parameter must be passed as the FIRST parameter in the list.
    regards,
    philipp

  • FRM 41215: CAN NOT FIND REPORT - Please help

    Hi,
    I am new to oracle 9i. I am trying to convert the forms in 8i to 9i. While i am doing i have many forms calling reports thru run_product. Now i am changing those into run_report_object. Even though i am getting errors like FRM 41215: CAN NOT FIND REPORT , INVALID REPORT ID.
    declare
    repid report_object;
    v_rep varchar2(100);
    begin
    repid := find_report_object('mrnr0028');
    v_rep := RUN_REPORT_OBJECT(repid);
    end;
    This is the command i have used. Is there anything wrong, or is there any necessity to specify any particular path for report files.
    Pls help me asap.
    Thanks

    I HAVE CREATE THIS PROGRAM UNIT(WITH LOT OF HARD WORK) FOR CHARACTRE AS WELL AS DEFAULT REPORT
    RUNING ON WEB
    -----------------FOR CHARACTER REPORT
    procedure web_report_c ( type varchar2,parameter varchar2) is
    report_id Report_Object;
    report_job_id VARCHAR2(100);
    report_status varchar2(100);
    FILE_NAME VARCHAR2(100);
    web_name varchar2(300);
    user_name varchar2(30);
    BEGIN
    user_name:=get_application_property(username);
    if type='PRINTER' THEN
    report_id:= find_report_object('REPORTNODE');
         file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.RRPT'; --use  in case of character mode report
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report TEMPRARY
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing parameter to report
    report_job_id:=run_report_object(report_id);
         report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop --checking report status
                        report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   end loop;
                   IF report_status='FINISHED' THEN --if report is finished then make call to report
              --          web_name:='HTTP://logi/'||file_name;
                   WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
                   else
                        MESSAGE('Report has failed. '||'status is -'||report_status);
                   end if;
    ELSIF type='SCREEN' THEN
         report_id:= find_report_object('REPORTNODE');
         file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.txt'; --use txt in case of character mode report
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report TEMPRARY
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing report parameter
    report_job_id:=run_report_object(report_id);
         report_status:=REPORT_OBJECT_STATUS(report_JOB_id); --checking of report status
                   while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop
                        report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   end loop;
                   IF report_status='FINISHED' THEN --if report status is finished then make  call to report
                        --web_name:='HTTP://ORACORP/logi/'||file_name;
                   WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
                   else
                        MESSAGE('Report has failed. '||'status is -'||report_status);
                   end if;
    end if;
    end;
    ------------FOR DEFAULT REPORT
    procedure web_report_c ( type varchar2,parameter varchar2) is
    report_id Report_Object;
    report_job_id VARCHAR2(100);
    report_status varchar2(100);
    FILE_NAME VARCHAR2(100);
    web_name varchar2(300);
    user_name varchar2(30);
    BEGIN
    user_name:=get_application_property(username);
    if type='PRINTER' THEN
    report_id:= find_report_object('REPORTNODE');
         file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.RRPT'; --use  in case of character mode report
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing parameter to report
    report_job_id:=run_report_object(report_id);
         report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop --checking report status
                        report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   end loop;
                   IF report_status='FINISHED' THEN --if report is finished then make call to report
              --          web_name:='HTTP://logi/'||file_name;
                   WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
                   else
                        MESSAGE('Report has failed. '||'status is -'||report_status);
                   end if;
    ELSIF type='SCREEN' THEN
         report_id:= find_report_object('REPORTNODE');
         file_name:=user_name||to_char(sysdate,'-ddmmyy_hh24miss')||'.txt'; --use txt in case of character mode report
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'c:\logiWWW\temp\'||file_name); --where u want to save report
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPSERVER'); --report server name
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,parameter); --passing report parameter
    report_job_id:=run_report_object(report_id);
         report_status:=REPORT_OBJECT_STATUS(report_JOB_id); --checking of report status
                   while report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') loop
                        report_status:=REPORT_OBJECT_STATUS(report_JOB_id);
                   end loop;
                   IF report_status='FINISHED' THEN --if report status is finished then make  call to report
                        --web_name:='HTTP://ORACORP/logi/'||file_name;
                   WEB.SHOW_DOCUMENT('/logi/'||file_name,'_BLANK');
                   else
                        MESSAGE('Report has failed. '||'status is -'||report_status);
                   end if;
    end if;
    end;

  • FRM-41217

    When running in Developer 6i, the code below works fine. Now we are upgrading to IDS Release 2, the code below is having an errorr: FRM-41217 Unable to get Report Job Status. Forms are runnning on web.
    Code:
    Declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(20);
    rep_status varchar2(30);
    tmp varchar2(2000);
    v_parm1 Varchar2(1000);
    v_parm2 Varchar2(1000);
    BEGIN
    v_parm1 := 'P_WHERE_CLS='''||nvl(:PARAMETER.p_where,'X')||'''';
    v_parm2 := 'P_SHOW_DOC='''||nvl(:REPORT.show_doc,'X')||'''';     
    repid := find_report_object('REPORT1');
    Set_report_object_property(repid,REPORT_OTHER,'PARAMFORM=NO');
    Set_report_object_property(repid,REPORT_OTHER,v_parm2||' '||v_parm1);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, 'REPORTSRVR');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    if rep_status in ( null, 'FINISHED', '' ) then
         MESSAGE('Report Completed ');
    else
    MESSAGE('Error when running report.');
    Raise FORM_TRIGGER_FAILURE;
    end if;
    *********************************************** This part of code is the only different
    /* For IDS 9i Release 2 */
    tmp := '/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||
    '?server='||:dummy.REP_SERVER||'&authid=orcladmin/workflow1';
    /* For Developer 6i */
    tmp := '/dev60cgi/rwcgi60.exe/getjobid='||substr(v_rep,instr(v_rep,'_'))||'?
    server='||:global.report_Server;
    Web.show_document(tmp, '_blank');
    exception
    when others then
         Message(sqlerrm);
    END;

    Most administrators turn the ability to check the status off because of security concerns. I know I do.
    We make Form Developers call a URL rather than using the built in to run a report and loop to check the status.

  • Pass User Parameters between Forms and Reports...?

    Hi,
    I have been trying to pass user parameters from forms to reports using
    RUN_REPORT_OBJECT. I am able to run the report from the form, but still don't know how to pass user_parameters. Does anyone know how to do this?
    Thanks,
    AB

    You can use SET_REPORT_OBJECT_PROPERTY with the "REPORT_OTHER" parameter
    The following example passes 3 parameters to the report:
    SET_REPORT_OBJECT_PROPERTY(pt_report_object_id, REPORT_OTHER, 'paramform=no p_param_1='||pc_param_1||' p_param_2='||pc_param_2);

  • Code lines which generate FRM-41213

    Hi all,
    Here is a portion of code which generate an FRM-41213's Errors:
    BEGIN
              V_rid:=FIND_REPORT_OBJECT(Rep_Obj);          
              -- setting Reports runtime parameters
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_FILENAME,'RD_DF1.rep');
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_SERVER,'myrserv');
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_DESTYPE,CACHE);
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_DESFORMAT,'PDF');
                             V_Other_Param:='userid=scott/tiger@db P_Num_Act=6212 P_Typ_Cod=O';
              SET_REPORT_OBJECT_PROPERTY(V_rid,REPORT_OTHER,V_Other_Param);
              V_rmessage     := RUN_REPORT_OBJECT(V_rid);
              V_rstatus      := REPORT_OBJECT_STATUS(V_rmessage);          
    END;
    When debugging is see that it's the last line which generate this error.I'm usind IAS/LINUX and the standalone report is installed on the server(rwserver).This report server works fine using showjobs or running a report by enter the full adress in the browser.
    Are There errors in my code?What's the problem
    plz help, it's very important.

    Hi,
    first of all, you don't need to pass username and password as REPORT_OTHER parameter. These values are passed implicit.
    The error message means "unable to communicate with Reports Server". You need to find out why the Reports Server cannopt be accessed from Forms (wrong name?). Ifthe Reports Server is on another server, does the Forms process have access to the network?
    If you run Forms and Reports 6i then teh Reports Server must be configured as an tnsnames entry in the Forms home.
    Frank

Maybe you are looking for

  • Download error when trying to download and save on Adobe XI

    Since Jan. 26th I have tried to download PDF files and save them and keep getting download error. I have removed and reinstalled Adobe XI several times still having "error" when downloading or saving. This has happened with previous Adobe.

  • SWF files not running from some lab computers

    Hello, Our Flash lab is experiencing strangeness on 8 of its 28 computers. When students create an animation and export it as an SWF file, the animation will not run. They can play the animation from within Flash itself (Enter cmd... watch the timeli

  • How do I get a helper.exe file that works so I can uninstall Firefox?

    I am trying to uninstall Firefox. The Uninstall function in the Control Panel does nothing. The helper.exe file in the Firefox Uninstall folder does nothing, even when I "run as administrator".

  • No default applications

    I keep getting an error message and cannot open backups that I've created and also windows media player which I downloaded. the error message states "there is no default application specified to open document". I never know where to go from there whe

  • Import p.o

    Hi all,   my requirement is for imports po item category sub contract(l) is possible or not regards, sasi