SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,cadena);

hi
i have a form that call a report, i send parameters to the report with these SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,cadena);, but when cadena is more than 1800 characters, can not run the report,
can anybody tell me why?
Oracle reports team help me
Thanks

Hi herbe
If you are Reports 6i, you need to apply the sqlnet patches to resolve this issue. The patch details are:
1. Sqlnet One-off 8.0.6.3 1554201 available on Solaris
2. Sqlnet one-off 8.0.6.3 1554201 for Sun SPARC Solaris
On Metalink, you can find the one-off for other platforms for this respective fix.
Thanks
The Oracle Reports team

Similar Messages

  • Run_report_object is not working

    Hi everyone
    I am trying to convert my 6i reports into 9i.
    I have added into a report object node in my form all necessary objects. In procedure i call run_report_object and got error 'REP-0503 You did not specify the name of the report' .
    Here is my code(obviousely i am missing something)
    report_id Report_Object;
    report_job_id VARCHAR2(100);
    BEGIN
    v_report_module := v_report_path || v_report_file_name;
    report_id := find_report_object(v_report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,PREVIEW);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,v_report_file_name);
    set_report_object_property(report_id, report_other, 'paramform=no');
    report_job_id := RUN_REPORT_OBJECT
    (report_id, pl_id) ;
    END;
    Thanks everyone in advance

    You have to specify a report object name in your Forms module and you pass in that name as a parameter to find_report_object function call.
    HTH,
    Tamas Szecsy

  • Print html report

    Hi ,
    In oracle forms 11g, I have a text field that includes html tags.
    I crate a report in report builder 11g, selecting html text from database.
    When I run the report using the
         set_report_object_property(report_id, REPORT_DESTYPE, CACHE);
         set_report_object_property(report_id, REPORT_DESFORMAT,'html');
    WEB.SHOW_DOCUMENT ........
    It gives me the html page ok.
    When I send the report to printer it prints also the html tags e.g. <body> <b>my text ..........<b> </body>.
         set_report_object_property(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
         set_report_object_property(report_id, REPORT_DESTYPE, PRINTER);
         set_report_object_property(report_id, REPORT_DESFORMAT,'HTML');
         set_report_object_property(report_id, REPORT_DESNAME,myprintername);
         set_report_object_property(report_id, REPORT_SERVER,servername);
    Set_Report_Object_Property(report_id, REPORT_OTHER, 'paramform=no');
    v_rep := RUN_REPORT_OBJECT(report_id);
    Can anyone help ?
    Thanks
    Edited by: user1424905 on 21-Jul-2011 04:16

    Hello,
    I think that you need to configure your browser, can you take a look a this article:
    http://www.maxi-pedia.com/scripts+are+usually+safe​+do+you+want+to+allow+scripts+to+run
    Regards,
    Nacer M. | Certified LabVIEW Architecte

  • Can you open a report in Excel/Word desktop instead of the web pugin?

    using run_report_object( and web.show_document,
    how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
    I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
    Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
    as this is the only way i have found out how to open the reports in word/excel.
    I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
    Does anyone have any suggestions, or where I should look.
    Below I listed my code from a procedure.
    the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
    PACKAGE BODY pmc_lib IS
    -- Procedure to run the report.
    procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
    v_commode in number default synchronous, -- commode
    v_execmode in number default runtime, -- execute mode
    v_file_sys in number default filesystem, -- dummy
    v_param_list in paramlist, -- parameter list
    v_show_modes in varchar2 default null) is -- used for testing,
    -- if set to anthing but null, the report properties will display
    -- on the screen through an alert prior to printing.
    v_errorcode number;
    v_errortext varchar2(600);
    v_initialized boolean := false;
    v_prop_reportserver varchar2(200);
    v_report_path varchar2(200);
    v_user varchar2(100);
    v_user_sessionid number;
    v_forms_version varchar2(100);
    v_default_report_server varchar2(200);
    v_default_server_domain_path varchar2(200);
    v_connect_string varchar2(3) := get_application_property(connect_string);
    v_user_name varchar2(35) := get_application_property(username);
    report_id report_object;
    reportserverjob varchar2(100);
    v_jobid varchar2(100);
    rep_status varchar2(100);
    v_url varchar2(500);
    v_url2 varchar2(500);
    v_parameter_value varchar2(100);
    v_destype_param_value varchar2(100) := null;
    v_desformat_param_value varchar2(100) := null;
    v_desname_param_value varchar2(100) := null;
    v_value_n number := 0;
    v_param_type number := text_parameter;
    v_prop_execmode number;
    v_prop_commode number;
    v_prop_destype number;
    v_prop_filename varchar2(200);
    v_prop_source_block varchar2(200) := null;
    v_prop_query_name varchar2(200) := null;
    v_prop_desname varchar2(200) := null;
    v_prop_desformat varchar2(200) := null;
    v_prop_reportserver varchar2(200) := null;
    v_prop_other varchar2(200) := null;
    v_mimetype varchar2(200) := null;
    v_selected_mimetype varchar2(200) := null;
    report_not_generated exception;
    report_id_not_found exception;
    BEGIN
    v_forms_version := get_application_property(version);
    v_prop_reportserver := get_report_object_property('report1', report_server);
    v_report_path := null;
    v_user := v_user_name || '/' ||
    get_application_property(password) || '@' ||
    v_connect_string;
    if v_connect_string = 'NNN' then
    v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
    v_default_report_server := 'rep_pmcoracapp01_frhome1';
    else
    v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
    v_default_report_server := 'rep_oradevsrv_frhome1';
    end if;
    v_initialized := true;
    -- Check to see what version of forms is running.
    if substr(v_forms_version, 1, 1) <> '6' then
    -- Check to see if WEB version is running
    -- This may be an unnecessary check.
    if (get_application_property(user_interface) = 'WEB') then
    report_id := find_report_object('report1');
    -- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
    -- if id_null(report_id) then
    -- raise report_id_not_found;
    -- end if;
    -- Because of Convertions from old system the following are needed.
    -- 1) If 'execmode' is runtime, then change it to batch.
    if v_execmode = runtime then
         v_prop_execmode := batch;
    else
         v_prop_execmode := v_execmode;
    end if;
    -- 2) If Report name has an attached path, then remove it.
    v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
    if v_value_n = 0 then
         v_prop_filename := v_report_name;
    else
         v_prop_filename := substr(v_report_name, v_value_n + 11);
    end if;
    -- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
    -- It is either 'preview' or 'file'.
    -- This is here for the converstion from Forms 6 to 10g.
    -- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
    -- saying the parameter does not exists.
    begin
    -- 3) If 'destype' is one of the following, then change it to cache.
    get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
    if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
    v_prop_destype := cache;
    -- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
    if lower(nvl(v_destype_param_value, 'null')) = 'file' then
    -- 3b) Get 'desformat' value
    get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
    -- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
    if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
         v_desformat_param_value := 'delimiteddata';
    end if;
    -- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
    if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
    v_prop_desformat := 'pdf';
    else
    v_prop_desformat := lower(v_desformat_param_value);
    end if;
    -- 4) Get 'desname' property.
    get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
    v_prop_desname := lower(v_desname_param_value);
    end if;
    else
    v_prop_destype := lower(v_destype_param_value);
    end if;
    exception
    when others then
    null;
    end;
    -- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
    if lower(v_prop_desformat) = 'rtf' then
    v_mimetype := '&mimetype=application/msword';
    elsif lower(v_prop_desformat) = 'xml' then
    v_mimetype := '&mimetype=application/vnd.ms-excel';
    elsif lower(v_prop_desformat) = 'delimiteddata' then
    v_mimetype := '&mimetype=application/vnd.ms-excel';
    end if;
    -- 6) If the Following are not set within the Report Object then
    -- set them to the following defaults.
    -- These are al required to be set for the Report Object to Function.
    -- These are the defaults for AAPMC.
    v_prop_execmode := nvl(v_prop_execmode, batch);
    v_prop_commode := nvl(v_prop_commode, synchronous);
    v_prop_destype := nvl(v_prop_destype, cache);
    v_prop_desformat := nvl(v_prop_desformat, 'pdf');
    v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
    -- Set All Report_Object Properties
    set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
    set_report_object_property(report_id, report_comm_mode, v_commode);
    set_report_object_property(report_id, report_destype, v_prop_destype);
    set_report_object_property(report_id, report_filename, v_prop_filename);
    set_report_object_property(report_id, report_source_block, v_prop_source_block);
    set_report_object_property(report_id, report_query_name, v_prop_query_name);
    set_report_object_property(report_id, report_desname, v_prop_desname);
    set_report_object_property(report_id, report_desformat, v_prop_desformat);
    set_report_object_property(report_id, report_server, v_prop_reportserver);
    set_report_object_property(report_id, report_other, v_prop_other);
    -- Run Report_Object
    reportserverjob := run_report_object(report_id, v_param_list);
    v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
    -- If Report Status is not 'FINISHED', then loop till it is.
    if reportserverjob is not null then
    rep_status := report_object_status(reportserverjob);
    while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
    rep_status := report_object_status(reportserverjob);
    end loop;
    if rep_status <> 'FINISHED' then
    raise report_not_generated;
    end if;
    -- Create 1st part of url.
    v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
    -- Check for mimetype.
    if v_mimetype is not null then
    v_url := v_url || v_mimetype;
    end if;
    -- Final part of url.
    v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
    -- This is the built-in that calls a new browser window
    web.show_document(v_url2,'_blank');
    else
    raise report_not_generated;
    end if;
    end if;
    -- Destroy the parameter list.
    destroy_parameter_list(v_param_list);
    else
    -- This section if for Client Server, Version 6 of forms.
    -- It will do the same as before the conversion.
    -- It is only used before the complete conversion.
    if v_report_name is null then
    return;
    end if;
    v_value_n := instr(v_report_name, 'k:\pmc\new\');
    if v_value_n = 0 then
         v_prop_filename := 'k:\pmc\new\' || v_report_name;
    else
    v_prop_filename := v_report_name;
    end if;
    run_product(reports,
    v_prop_filename,
    v_commode,
    v_execmode,
    filesystem,
    v_param_list,
    null);
    end if;      
    -- create history record of the report being run
    insert into pmc_report_history values(
    s_pmc_report_history.nextval,
    v_prop_filename,
    v_user_name,
    sysdate,
    v_forms_version,
    v_jobid,
    v_destype_param_value,
    v_desformat_param_value,
    v_desname_param_value,
    v_prop_destype,
    v_prop_desformat,
    v_prop_desname,
    v_mimetype,
    v_window_open_params);
    commit;
    exception
    when report_id_not_found then
    show_user_alert('ERROR: Cannot Find Report Object!', null);
    when report_not_generated then
    show_user_alert('ERROR: Report Not Generated!', null);
    when others then
    v_errorcode := SQLCODE;
    v_errortext := SQLERRM;
    show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
    end;
    end;

    What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
    CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"');

  • Report Deployment Details steps

    Dear All,
    I have Oracle Developer 9i.
    Ealier i am using Oracle Developer 6i in that we can create a menu and menu will call reports through run_products but now its not supported in 9i.
    Can please send me details steps to follow to deploy i had read all threds in this message groups but can't get success.
    I had try using run_report_objects but its fail.
    Please mention how to set the path to call report i don't want to fixed the path it self in the forms.
    Also how to call parameter forms.
    Regards,
    Nikunj.
    Message was edited by:
    nikunjthaker

    Thanks Frank,
    I like the white paper base on that i am able to run report as below.
    declare
    report_id Report_Object;
    ReportServerJob VARCHAR2(100);
    BEGIN
    report_id:= find_report_object('REPORT3');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,'C:\APPLICATION\employeerep.rdf');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_execution_MODE,runtime);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REPORTSERVER');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESformat,'htmlcss');
    ReportServerJob:=run_report_object(report_id);
    END;
    But the output is generating inside cache directory.
    In the white paper its mentioning that if you want to see output before it print then use DESTTYPE= cache and Dest Format= htmlcss as u can see that i had metion the same still i am not able to get the result on screen why ? and how can i do that ?
    again i had read in white paper its saying that if you want paramform before report then metion paramform=yes in other parameter i had did that as below
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'paramform=yes');
    but after this i am geting parameterform as a output in cache.
    Please help me on this.
    Regards,
    Nikunj

  • RUN_REPORT_OBJECT does not return  a value

    I am using Reports 6i (via web browser) on an Oracle 8 database.
    We have just recreated our entire development database. When running a report from a form, the web browser pops up with a blank screen. No changes has been done to the code. None of the reports now work on our dev environment.
    However, I have now found that RUN_REPORT_OBJECT is not retirning a value. What would cause RUN_REPORT_OBJECT not to return a value?
    My code behind the button on the form that calls the report is as follows:
              report_id := find_report_object('nl4689');
              f_file_name := :illprint.report_number||'.lis';
              html_file_name := :illprint.report_number||'.html';
              set_report_object_property(report_id,report_execution_mode,batch);
              set_report_object_property(report_id,report_comm_mode,synchronous);
              set_report_object_property(report_id,report_destype,file);
              set_report_object_property(report_id,report_desname,:global.user_home_dir||f_file_name);
              set_report_object_property(report_id, report_other,
              'p_branch='||:b1.branch_code||
              ' p_class='||:b1.p_class);
         report_job_id := RUN_REPORT_OBJECT(report_id);
              host('txt2htmlhpux '||:global.user_home_dir||f_file_name||' > '||:global.user_home_dir||html_file_name);
              web.show_document(:global.user_home_dir||html_file_name,'_BLANK');
    Thanks

    That is set correctly. All these applications were working fine. We only have this issue after re-building our development environment.
    I have personally run the application and noticed that there are error messages as well.
    When getting the report id from RUN_REPORT_OBJECT, the following error appears
    REP-0004: Warning: Unable to open user preference file.
    Immeditely followed by:
    REP-3002: Error initializing printer. Please make sure a printer is installed.
    Edited by: Rick777 on 20-Jan-2010 03:34
    Edited by: Rick777 on 20-Jan-2010 03:39

  • 10g report form Forms and 11gDB

    I am using 10g Forms and 11g DB.
    I am not able to run report from Forms. The browser hangs.
    Report server is working. I can see the status in report server againtst the Job ID Status: "Opening the report".
    I enabled the trace log.
    2009/12/9 6:5:41:986] Debug 50103 (JobManager:runJobInEngine): Send job 161 to engine rwEng-0
    [2009/12/9 6:5:41:986] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 3
    [2009/12/9 6:5:41:986] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Running
    [2009/12/9 6:5:51:439] (ConnectionImpl:getServerRunningInfo) enter...
    [2009/12/9 6:5:51:455] (ConnectionImpl:getServerRunningInfo) ...exit
    [2009/12/9 6:5:51:455] Info 56013 (ConnectionManager:release): Connection 1 is released
    [2009/12/9 6:5:55:658] Info 56013 (ConnectionManager:release): Connection 2 is released
    [2009/12/9 6:8:54:286] Info 56013 (ConnectionManager:release): Connection 3 is released
    Below is my code in the button.
    report_id:= find_report_object('REP1');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,vc_runformat);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,vc_reportserver);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_NO_FROM='||:control.SRQ_NO||' paramform=YES');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_NO_TO='||:control.SRQ_NO||' paramform=YES');
    ReportServerJob := RUN_REPORT_OBJECT(report_id);
    vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    vjob_id :=substr(ReportServerJob,length(vc_reportserver)+2,length(ReportServerJob));
    IF vc_rep_status='FINISHED' THEN
         WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||',_blank');
    ELSE
         message ('Report failed with error message '||vc_rep_status);
    END IF;
    Please help, i am struggling for almost 1 month. Report server works fine.
    The code work up to the line ReportServerJob := RUN_REPORT_OBJECT(report_id) and then it hangs.

    there seems error in your statement
    change this
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||',_blank');to
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver,'_blank');

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(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 := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

  • Calling a report from forms with a paramter form

    Hello,
    How do you call a report from forms and get it to display the parameter form. Where you can then call the report using this parameter form. I have been using paramform=yes. but it simply runs the form.
    I saw on a a thread ages ago that this was a sample of this available for download. Is this true?
    thanks

    Here is my code sorry about posting twice. Please note that the parameter list has been created as described.
    report_id := find_report_object('MENU_REPORT_NODE');
    Tool_Env.Getvar('ReportsServer', reports_server);
    Tool_Env.Getvar('ReportsFolder', reports_folder);
    dest_file := reports_folder || :global.username || '\' || rep_name || '.pdf';
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_FILENAME, rep_name);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, reports_server);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS); -- wait for the report to finish
    -- SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESNAME, dest_file);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, cache);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'PDF');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_OTHER, 'paramform=yes' || ' ' || 'mode=bitmap');
    report_job := run_report_object(report_id);

  • CMDKEY Key Mapping Parameter Problem - Please HELP !!!

    Hello !
    I try to call a Report from Forms by using a keymap File ! I use IAS Forms and Report 10.1.2 and the Oracle Developer 10.1.2)
    My Keymap settings are correct
    The activated Parameters in rwservlet.properties are
    RELOAD_KEYMAP=YES
    KEYMAPFILE=CGICMD.DAT
    OID_ENTITY=%REPORTS_OID_ENTITY%
    SERVER=rep_asmic3
    The CGICMD.dat file includes the keymap
    telefon: server=rep_asmic3 destype=cache desformat=pdf desname=CGICMD userid=test/test@db102 %*
    The WHEN-BUTTON-PRESSED Trigger contains following code:
    declare
    vjob_id VARCHAR2(100);      
    rep_status varchar2(40);
    report_id Report_Object;
    ReportServerJob varchar(100);
    begin
         report_id:= find_report_object('telefonliste');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'paramform=no cmdkey=telefon');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'REP_asmic3');
    ReportServerJob := run_report_object(report_id);
    rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    if rep_status = 'FINISHED' then
    vjob_id := substr(ReportServerJob,length(report_server)+8,length(ReportServerJob));
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id,'_blank');
    end if
    end;
    If I try to run the report from a form I get a FRM-41214 Error. It seems, that the keymap file is not loaded ! How come ?
    If I call the Report with the Keymap File directly from a Browser everything works fine:
    http://<hostname>.<domain>.local:7778/reports/rwservlet?telefon&report=telefonliste.rdf&userid=test/test@db102
    Please help ! Do you have a clue ?
    Thanks
    Katharina

    Hello,
    The parameter CMDKEY can be used only with the Reports Servlet or when executing a Reports as a JSP page :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_cmdkey.htm?tp=true
    Regards

  • FRM-41213 When calling report from a form using RUN_REPORT_OBJECT

    Hi,
    I get an error frm-41214:unable to connect to the report server when i am trying to call a report from a form using RUN_REPORT_OBJECT.
    My code is as follows:
    I have created a simple report using employee table such tht when i give the department number as parameter it should get the corresponding details along with that i also have highlited the system parameters:
    DESFORMAT
    DESNAME
    DESTYPE
    also other user parameters as
    p_action
    p_servername
    p_user_connect
    and in the before parameter form trigger the following code:
    function BeforePForm return boolean is
    vc_parameter_form VARCHAR2(4000);
    vc_hidden_runtime_values VARCHAR2(1000);
    vc_report_name VARCHAR2(100);
    begin
    IF (:P_ACTION = '_action_') THEN
         vc_hidden_runtime_values := '_hidden_';
    ELSE
         srw.get_report_name(vc_report_name);
              vc_hidden_runtime_values:='report='||vc_report_name||'&destype='||:destype||'&desformat='
    ||:desformat||'&userid='||:p_user_connect||'&server='||:p_servername;
    END IF;
    vc_parameter_form:='<html><body bgcolor="#ffffff"><form method=post action="'
    ||:P_ACTION||'">'||'<input name="hidden_run_parameters" type=hidden value="'
    ||vc_hidden_runtime_values||'">'||'<center><p><table border=0 cellspacing=0 cellpadding=0><tr><td>'
    ||'<input type=submit></td><td width=15><td><input type=reset></td>'||'</tr></table><p><hr><p>';
                        srw.set_before_form_html(srw.text_escape,vc_parameter_form);
    return (TRUE);
    end;
    After this i created a form with department table as my datablock:
    I created a report object in the form with name REPORT6.
    -Created a procedure in the form with the following code
    PROCEDURE RUN_REPORT_OBJECT_PROC(report_id REPORT_OBJECT,reportserver VARCHAR2,runformat VARCHAR2) IS
    report_message VARCHAR2(100);
    rep_status VARCHAR2(100);
    vc_user_name VARCHAR2(100);
    vc_user_password VARCHAR2(100);
    vc_user_connect VARCHAR2(100);
    vc_connect VARCHAR2(300);
    BEGIN
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    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,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,runformat);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,reportserver);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'p_deptno='
    ||:Dept.Deptno
    ||' paramform=yes P_USER_CONNECT='
    ||vc_connect||' P_SERVERNAME='||reportserver
    ||' P_ACTION=http://iitv-1:8888/reports/rwservlet?');
    report_message:=run_report_object(report_id);
    rep_status := report_object_status(report_message);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    rep_status := report_object_status(report_message);
    END LOOP /* Wait for Report to be finished */;
    IF rep_status='FINISHED' then
    web.show_document('http://iitv-1:8888/reports/rwservlet/getjobid'||
    substr(report_message,instr(report_message,'_',-1)+1)||'?server'
    ||reportserver,'_blank');
    ELSE
    message (rep_status||' Report output aborted');
    END IF;
    END;
    I created a press button and in the when_button_pressed trigger i added the following code:
    declare
         repid REPORT_OBJECT;
         repserver VARCHAR2(100);
         runformat VARCHAR2(10);
    BEGIN
         repid := find_report_object('REPORT6');
         repserver := 'rep_iitv-1';
         runformat := 'HTML';
         run_report_object_proc(repid,repserver,runformat);
         END;
    Then tried to run the form but i got this error frm-41213 unable to connect to the report server.
    Any one please help me.

    Run_report_object can't work with forms9i
    Regards
    Vikas Singhal

  • Running report from forms

    hi,
    I am having problems in running report from form.
    I am using oracle 9i on windows 2000 server and no 9iAS at the moment. On client side, i have windows xp and 9iDS installed. I want to run report from forms in 9iDS testing environment.
    my forms are running ok but now i need to run report. so what i have done is that i have created a report object in form and following are enteries present in it at the moment.
    Name REPORT7
    FileName D:\Projects\IBMR\forms\soil_water_quality_data.rdf
    Execution Mode Batch
    Communication Mode Synchronous
    Destination Type Cache
    Report Server 9irep
    and in when_button_pressed trigger
    DECLARE
    Report_Id REPORT_OBJECT;
    Report_Job_Id VARCHAR2(20);
    Report_Status VARCHAR2(80);
    Report_Svr VARCHAR2(20);
    BEGIN
    Report_Id := FIND_REPORT_OBJECT('REPORT7');
    Report_Svr := '9irep';
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '\projects\ibmr\forms\soil_water_quality_data.rdf');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'paramform=no');
    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
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    END LOOP;
    IF Report_Status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(Report_job_id,instr(Report_Job_Id,'_',-1)+1)||'?'||'server=9irep','_blank');
    else
         message ('report server failed with error message '||report_status);
    END IF;
    END;
    i have installed report server with following command
    rwserver -install 9irep
    i have changed entry in rwservlet.properties like
    SINGLESIGNON=NO and i have removed the following entire block of 9irep.conf, which i have read from some documentation
    <!--security id="rwSec" class="oracle.reports.server.RWSecurity">
    <property name="securityUserid" value="%PORTAL_DB_USERNAME%/%PORTAL_DB_PASSWORD%@%PORTAL_DB_TNSNAME%" confidential="yes" encrypted="no"/>
    </security-->
    i get the following error message when i run my form
    frm-41214 Unable to run report
    and then next message is
    frm-41217 unable to get report job status
    i debugged the report id and it is
    9irep_0
    returned by Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    When I checked the Report Queue Manager
    it is showing status like
    (9irep)Terminated with error
    and detail it shows is
    Unable to connect to the specified database.
    Now I am wondering what to do next.
    any suggestions???????

    Hello,
    From your description, it seems like the report is faling due to a database authentication problem. When you run your report from Forms, Forms internally passes the its database connection information to Reports automatically. So ensure that you are connected to a valid database in Forms, before the report is called.
    Please verify whether a simple report which does not require a database connection, for example, a report containing only a boilerplate text object, is running correctly. Also, in the trigger code that you have specified, you should add the following:
    SET_REPORT_OBJECT_PROPERTY(Report_Id, REPORT_DESTYPE, CACHE);
    so that the report output gets generated to the server cache, and can be retrieved using rwservlet/getjobid.
    Thanks,
    The Oracle Reports Team.

  • REP-300 Error while running report using App Server

    Hi,
    I am currently trying to run a report using the Application Server.
    This report is being called from a form.
    I am able to connect to the report server and all configurations seems to be correct.
    But when I execute the report from the form, I am getting error "Unable to run report"
    When I look at the error message in the Report Server queue, I find
    "REP-300 Table or View does not exist.."
    But that table does exist in the database.
    What could be be the problem ?
    Please help.
    The code in the form that calls the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    SET_REPORT_OBJECT_PROPERTY(report_id ,REPORT_OTHER, 'paramform=yes     p_user_connect='||vc_connect ||' p_servername=repsrv'||' p_action=<host>/reports/rwservlet?' );
    v_rep := RUN_REPORT_OBJECT(report_id, parmlist_id);

    The report is working perfectly fine when I run it from the Report Builder. I get the correct output.
    I am getting this error when I try to run the report through a Report server.
    I run the form from the Forms 10g builder. This form has a button "Run Report". When I click on the button the report is run using the Report server.
    This is when I get the error.
    There are other forms that are also called via the same form. Those work fine. The only difference between those forms and this one is that this one has user parameters passed to it. This one also has an attached library attached to it.
    The code in the Form to call the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'pdf');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, 'rep-vena01-xp');
    v_rep      := RUN_REPORT_OBJECT(report_id, parmlist_id );
    v_jobid := substr( v_rep, length( v_reportserver) + 2, length(v_rep) );
    v_repstatus := REPORT_OBJECT_STATUS( v_rep );
    IF ( v_repstatus = 'FINISHED' ) THEN
    v_url := '/reports/rwservlet/getjobid' || v_jobid || '?server=' || v_reportserver ;
    web.show_document( v_url, '_BLANK' );
    END IF;

  • FRM-41214

    Hi all,
    When calling a report from a form through the RUN_REPORT_OBJECT built in, the report does not run and the error 'FRM-41214 - Unable to run report' is being shown. Also, the return value for the RUN_REPORT_OBJECT command is <reportservername)_-2. When will this value be returned by the RUN_REPORT_OBJECT command. Should some report server setting be changed to correct this error.
    Other details: Using Oracle Reports 6i; The Report has a Parameter list which is also passed to the above command along with the Report ID.
    I've attached the code for the same herewith:
    report_id := find_report_object(RepNm);
    IF error_code = '41219' THEN
    Message('Unable to execute : '|| RepNm);
    Raise FORM_TRIGGER_FAILURE;
    END IF;
    End;
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_FILENAME, RepNm);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, Init.Appl_RepServer);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT,'PDF');
    IF UPPER(PDESTYPE) = 'P' THEN
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESNAME,Init.Appl_Printer);
    ELSE
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE,CACHE);
    END IF;
    IF UPPER(pOrientation) = 'L' THEN
    set_report_object_property(report_id, REPORT_OTHER,'ORIENTATION='||'LANDSCAPE');                         
    ELSIF UPPER(pOrientation) = 'P' THEN
    set_report_object_property(report_id, REPORT_OTHER,'ORIENTATION='||'PORTRAIT');                                                  
    END IF;
    Begin
    v_rep := RUN_REPORT_OBJECT(report_id,pparameter);      
    Exception
    When Others Then
    Message('Error While executing running reports ::'||error_code);
    End;
    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 UPPER(pDESTYPE) != 'P' THEN
    Web.show_document('http://'||Init.Appl_Server||'/dev60cgi/rwcgi60/getjobid'||substr(v_rep,length(Init.Appl_RepServer))||'?server='||Init.Appl_RepServer);
    END IF;
    Any help would be appreciated.
    Thanks,
    Vidya.

    Hi
    1)
    >>
    "getjobid'||substr(v_rep,length(Init.Appl_RepServer))||'?server='||Init.Appl_RepServer"
    <<
    This is for 9i
    For 6i
    Web.show_document (’/dev60cgi/rwcgi60.exe/getjobid=’||v_rep||'?server=’vc_reportserver,'_blank');
    (Where v_rep is the return status from RUN_REPORT_OBJECT() call )
    2) Refer Forms reports integration paper for 6i
    http://otn.oracle.com/products/forms/pdf/277282.pdf
    (See page 20)
    You can see this document to see if you have missed anything else.
    Other suggestions
    This error can occur in following cases
    2) DESFORMAT or DESNAME or both of these parameters are empty.
    Looks like for your case it is fine (But just confirm yourself)
    3) DESTYPE is specified as SCREEN or PREVIEW
    Looks like for your case it is fine (But just confirm yourself)
    4) A parameter passed contains a space
    If parameter contains space(s), enclose parameter in single quotes
    (A) Ensure that your reports server is running
    (B) Run report using 6i client (rwcli60) and ensure that it runs fine.(That way we can see if the issue is with report itself or Forms-Reports integration code
    Thanks
    Ratheesh
    [    All Docs     ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Calling a report

    Dear all,
    good morning,
    i am calling a report from a form and getting error like numeric value error.
    any one can help. form is running individuallu fine and also report as well.
    when i am trying to call form form in application only the problem is coming.
    in the form the code is like for calling..
    ELSIF :AZBJ_REPORT.REPORT_NAME ='REWT' AND :AZBJ_INPUT.CHK_XLS = 'Y' THEN ---RE WISE TELE CALLING REPORT $$$$$$$$$$$$$$$$$$$
              vRepName := 'RPT_RC_RUNNER_COLLECTION_HO2';
                        --AZBJ_MESSAGE('W',1.2)                 PRINT_WEB_REPORT(vRepName,'CSV','CSV','Delimited',v_param);     
         :AZBJ_INPUT.CHK_XLS := NULL;          
                        --AZBJ_MESSAGE('W',1.3);
    and the procedure print_web_report is
    PROCEDURE print_web_report (pRepName in varchar2, pDesType in VarChar2, pFileExt in varchar2,
    pDesFormat in varchar2, pRepParam in varchar2 ) IS
    report_id report_object;
    report_timer timer;
    report_file varchar2(50);
    output_file varchar2(1255);
    output_format varchar2(12);
    file_exten varchar2(5);
    report_handle varchar2(255);
    report_status varchar2(20);
    vrep varchar2(100);
    al_btn number ;
    print_output varchar2(100);
    vRepServer varchar2(100);
    vRepDesName varchar2(255);
    vVirtualPath varchar2(255);
    vBranch varchar2(5);
    BEGIN
    -- Set printer output format
    -- Format Extension Output Extension Notes
    -- PostScript use null rrpp Printed directly by orarrp.exe
    -- PCL PCL rrpp Printed directly by orarrp.exe
    -- Delimited - rrpt Printed directly by orarrp.exe
    -- Plain Text TXT rrpt Printed directly by orarrp.exe
    -- PDF PDF rrpa Passed to Acrobat to print
    -- RTF RTF rrpr Passed to word processor to print
    -- NOTE: HTML, HTMLCSS, HTMLCSSIE and XML formats not supported by orarrp
         --azbj_message('W','PRINTING');
    output_format := pDesType;
    if output_format = 'PCL' then
    file_exten := '.rrpp';
    elsif output_format = 'PDF' then
    file_exten := '.pdf';
    elsif output_format = 'RTF' then
    file_exten := '.rrpr';
    else
    file_exten := '.'|| pFileExt;-- .xls ; .csv ; .txt
    end if;
    output_file := get_application_property(USERNAME) || to_char(sysdate, 'YYYYMMDDHHMISS');
    output_file := output_file || file_exten;
    report_id := find_report_object('Report');
    report_file := lower(pRepName) ;
    vBranch := upper(substr(get_application_property(USERNAME),1,3));
    vRepServer := 'Rep90Orarep'; --Azbj_Pk0_Reports.getRepServer  (upper(pRepName),vBranch );
    vRepDesName := 'D:\reportstemp\'; --Azbj_Pk0_Reports.getRepDesName (upper(pRepName),vBranch );
    vVirtualPath := '/rep90temp/'; --Azbj_Pk0_Reports.getVirtualPath(upper(pRepName),vBranch );
    set_report_object_property(report_id, REPORT_FILENAME, report_file);
    set_report_object_property(report_id, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    set_report_object_property(report_id, REPORT_DESTYPE, FILE);
    set_report_object_property(report_id, REPORT_DESFORMAT, pDesFormat);
    set_report_object_property(report_id, REPORT_SERVER, vRepServer);
    set_report_object_property(report_id, REPORT_DESNAME, vRepDesName||output_file);
    set_report_object_property(report_id, REPORT_OTHER, 'paramform=NO '||pRepParam);
    set_application_property(CURSOR_STYLE,'BUSY');
    report_handle := run_report_object(report_id);
    print_output := output_file;
    report_status := report_object_status(report_handle);
    while report_status in ('RUNNING','OPENING_REPORT','ENQUEUED') loop
    report_status := report_object_status(report_handle);
    end loop ;
    if report_status = 'FINISHED' then
    -- Return report output file to browser for printing
    set_application_property(CURSOR_STYLE,'DEFAULT');
    web.show_document(vVirtualPath||print_output, '_BLANK');
    else
    -- Report has not worked for some reason, inform the user
    cancel_report_object(pRepName);
    set_application_property(CURSOR_STYLE,'DEFAULT');
    --azbj_message('W',print_output||' Result is :: '||report_status);
    end if;
    END;
    upto here is fine. i traced every thing upto form is ok no problem. report is also working fine indvidually.
    only the error is coming in application when i am calling the report from form.
    any can suggest where the problem is coming exactly.
    suggestion would be great.
    thanks in advance

    it was solved thanks.
    the problem is in the application we havent given the proper name when we are calling.

Maybe you are looking for

  • Macbook PRO can't find ANY Wifi network - only at home

    Hi, i have a very strange problem with my *Macbook Pro*. I have 3 apple computers at home and one pc. On all machines Wifi works fine, except my new alu Macbook Pro. Important note is, when im with my macbook on other place, office, caffe, *Wifi work

  • I'm up to date on mac updates

    I'm trying to get web up and running created in muse and have saved to adobe business catalyst  would like to take live it seem that I've keep going in circles  and need to set up hyperlinks to set up email and social media. lost!

  • Check Box Line Width

    Hi. Is it possible to reduce the weight of check boxes? With some small boxes the default width seems heavy. Is there a way to change the width of the check box lines?

  • Cannot open pdfs  with adobe. receive message "adobe reader cannot open fild because it's either not

    message states "adobe reader cannot open "resume, ;wps because it's either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)

  • Convert NEF"s to psd's and in save as.

    Just installed CS6 Extended, I cannot convert my NEF files and save them to psd. I get a message that says "cannot save because write access was not granted" I am using my new Mac. I never had this problem with my Windows CS5 extended. Please help.Ge