RUN_PRODUCT REPORTS

HAS ANYONE BEEN ABLE GENERATE A REPORT USING RUN_PRODUCT IN THE
DEVELOPER 6/INTERNET ENVIRONMENT. IF YES, WHAT SERVER REGISTRY
SETTINGS MADE IT WORK.
I KNOW ABOUT SHOW_DOCUMENT AND WOULD LIKE TO AVOID USING IT.
null

REGISTRY : FORMS60_MAPPING = /myreports/ (i.e)
FORMS60_OUTPUT = C:\MyReports
FORMS60_REPFORMAT = (either HTML or PDF) For PDF,
install Acrobat Reader in every client machine.
REPORTS60_WEBLOC = /myreports/
REPORTS60_WEBLOC_TRANSLATED = C:\MyReports
LISTENER: create a virtual directory "/myreports/", physical
directory "C:\MyReports\" (don3t forget the trailing \ and / !!)
RUN_PRODUCT (REPORTS,'c:\Web60
\Test.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,lp_id,null);
Upon execution, a new browser instance should appear with your
listing.
I think that3s all. It works.
Good luck.
Juan.
null

Similar Messages

  • URGENT HELP: RUN_PRODUCT(Reports) on Web

    Hi,
    I have installed oracle 8.0.5, OAS 4.0.7 and Developer
    Server 6.0 (Forms, Reports & Graphics Cartridge).
    Our forms,reports & graphics cartridges
    works fine indivisualy but we are not able to run reports
    from web form with run_products it works fine under windows.
    1. Is anyone has tried reports on web from forms
    2. how to use reports cartridge from from other
    than using show_document package can be included
    in parameter as server=reportserver in run_products
    statement.
    3. Is there any registry/system variables required for
    this
    If anyone know about this, please let me know by e-mail
    or posting reply to this thread
    Thanks in advance
    Darshan Desai
    Tecnimont ICB Limited,
    Mumbai, India.
    [email protected]
    [email protected]
    null

    Hi Darshan,
    you must set the followings registry variables:
    FORMS60_MAPPING (virtual directory, must exist as a virtual
    directory in your web-server configuration)
    FORMS60_OUTPUT (physical directory of the virtual directory)
    FORMS60_REPFORMAT (html, pdf)
    Hope this help
    Darshan Desai (guest) wrote:
    : Hi,
    : I have installed oracle 8.0.5, OAS 4.0.7 and Developer
    : Server 6.0 (Forms, Reports & Graphics Cartridge).
    : Our forms,reports & graphics cartridges
    : works fine indivisualy but we are not able to run reports
    : from web form with run_products it works fine under windows.
    : 1. Is anyone has tried reports on web from forms
    : 2. how to use reports cartridge from from other
    : than using show_document package can be included
    : in parameter as server=reportserver in run_products
    : statement.
    : 3. Is there any registry/system variables required for
    : this
    : If anyone know about this, please let me know by e-mail
    : or posting reply to this thread
    : Thanks in advance
    : Darshan Desai
    : Tecnimont ICB Limited,
    : Mumbai, India.
    : [email protected]
    : [email protected]
    null

  • Print report directly to printer using RUN_PRODUCT in Forms6i

    Hi all,
    I would like to have information regarding print any .rdf directly to printer from form 6i using RUN_PRODUCT.
    I got help from Form Builder Help option and tried following coding in form
         DECLARE
         PL_ID                    PARAMLIST;
         printername          VARCHAR2(50);
         BEGIN
         PL_ID := GET_PARAMETER_LIST('WEIGHMENT');
              IF NOT ID_NULL(PL_ID) THEN
                   DESTROY_PARAMETER_LIST(PL_ID);
              END IF;
              PL_ID := CREATE_PARAMETER_LIST('WEIGHMENT');
              printername := '"'||'I.T Printer'||'"';
              Add_Parameter(pl_id, 'DESTYPE', TEXT_PARAMETER, PRINTER);
              Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, printername);
              Add_Parameter(pl_id, 'P_EQ_NBR', TEXT_PARAMETER, :weighment.eq_nbr);
              Add_Parameter(pl_id, 'P_WT_GKEY', TEXT_PARAMETER, :weighment.gkey);
              Run_Product(REPORTS, 'c:\wegt001r', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         EXCEPTION
              WHEN OTHERS THEN
              MESSAGE(SQLERRM);
         END;
    END IF;
    But report did not printed and following message received in Reports Background Engine
    Error submitting report [Thu May 07 18:49:23 2009] ...
    REP-0159: Syntax error on command line.
    Pls help.
    Thanks,
    Hassan

    Hi Heidi
    I have already tried printername := 'I.T Printer'; but result is same.
    This is also my default printer and I tried to add / remove the following coding
    Add_Parameter(pl_id, 'DESNAME', TEXT_PARAMETER, PRINTER);
    but in both cased I received the same error.
    I also tried to print thru HOST command as follows
    the_username := Get_Application_Property(USERNAME);
         the_password := Get_Application_Property(PASSWORD);
         the_connect := Get_Application_Property(CONNECT_STRING);
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid= '||the_username||'/'||the_password||'@'||the_connect||' DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306';
    Host( the_command );
    Host command displays correctly but no printing.
    I then change my command as follows
    the_command := 'rwrun60 report=c:\wegt001r.rdf userid=test/test@test DESTYPE=Printer BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log p_eq_nbr='''||'TESTMKI'''||' p_wt_gkey=118306'; and now report prints on printer.
    But I cannot hard coded the username, password and connect.
    Thanks,
    Hassan
    Edited by: Hassan Raza Khan Lodhi on May 7, 2009 6:55 PM

  • Help me in using RUN_PRODUCT to call a report from form

    Hi GURUs
    I am trying to call a report from a form.
    I enter hiredate as input parameter in the form and click the 'run report' button.
    The hiredate value will be sent to report via pl_id, TEXT_PARAMETER,:CTL.TXT_DT as shown below in when button pressed trigger
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'HRDATE',TEXT_PARAMETER,:CTL.TXT_DT);
    Run_Product(REPORTS, 'C:\empreport.RDF', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;
    Coming to report side its a simple query select * from emp where trunc(hiredate) > trunc(:hrdate);
    I created 'hrdate' user parameter in the report
    The problem is when I run the form it calls report and shows the report parameter form with the carried value. now I have to run report again.
    How do I supress this paramenter form because when I am sending value from form I dont have to see the parameter form at the report.
    I dont know how to use paramform = no with RUN_PRODUCT
    Please tell me what to do it....
    Thanks

    Looking at the Forms documentation it specifies, "To run a report from within a form, you must use the dedicated report integration built-in RUN_REPORT_OBJECT." The RUN_PRODUCT built-in is used to run the Graphics product. I suggest you give RUN_REPORT_OBJECT a try. This is how we call a report from a form.
    Hope this helps.
    Craig...

  • Use run_product call report from form failed.

    Hi Expert,
    I have a report in my application server and run report like below, it works fine.
    run_product(REPORTS,'/gr100/MILK/MILKdev/xxc/reports/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    Unfortunately, I save the report in DB and run like below, it doesn't work.
    run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    210.126.129.201 is the db server ip address.
    I change to run like
    run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,DB, pl_id,NULL);
    I still not work.
    Product version is Forms&Reports 9.0.4
    Will any expert give some advise on this? Or Do you have any idea to call the report from db?
    Thank you in advance!

    Hi Tony,
    Thank you for the update.
    If I use run_product to call a report from a remote server, what is the syntax of it.
    I use run_product(REPORTS,'210.126.129.201:/gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id,NULL);
    210.126.129.201 is the server ip address, and /gr100/MILK/MILKappl/xxc/11.5.0/reports/KO/XCPO5004 is the location of the report.
    If this is incorrect, which to be modified.
    Thank you,
    Helen

  • 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 Engine Crashed

    Form version is form 6.0.8.8.0
    Report version is 6.0.8.8.3.3
    I am facing two problems
    first is when i run a report and report engine is not already open report will run ok but whenever report engine already open report engine will crash down.
    Second prb is i am getting this error msg in few reports
    REP-1212: Object 'M_G_CLIENT_CODE_GRPFR' is not fully enclosed by its enclosing object ''.
    We are using the following procedue in our form builder files to call a report :
    Add_Parameter(pl_id,'FROM_DATE',TEXT_PARAMETER,to_char( :OP_LOG.FROM_DATE, 'dd/mm/yyyy'));
    Add_Parameter(pl_id,'TO_DATE',TEXT_PARAMETER,to_char( :OP_LOG.TO_DATE, 'dd/mm/yyyy'));
    Add_Parameter(pl_id,'SECURITY',TEXT_PARAMETER,:OP_LOG.ISIN_POPLIST);
    Add_Parameter(pl_id,'P_SECURITY_DESC',TEXT_PARAMETER,V_SECURITY_NAME);
    Add_Parameter(pl_id,'P_WHERE_CLAUSE',TEXT_PARAMETER,CLAUSE);
    --Launch the report
    Launch_Report('ANNOUNCEMENT_DETAIL', pl_id);
    --Launch_Report Method
    PROCEDURE Launch_Report(report_name varchar2, pl_id ParamList) IS
    BEGIN
    Run_Product(REPORTS, report_name, ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;

    I have applied patch 14. Now the error is being produced are
    Starting report Daily_Trade_List [Thu Jul 10 12:57:51 2003] ...
    REP-1401: 'f_company_sec2formattrigger': Fatal PL/SQL error occurred.
    ORA-06508: PL/SQL: could not find program unit being called
    REP-0594: No report output generated.
    End report Daily_Trade_List [Thu Jul 10 12:57:56 2003].

  • Calling reports through oracle 9i forms

    Please tell me how do i call the reports through forms9i. If was doing the same way by using find_report_object ('report4') and then run_report_object(reportid).But this not working....
    Please help... it is pretty urgent.
    thanks in advance
    savita rao

    declare
    pl_id paramlist;
    emp varchar2(100);
    begin
    go_block('control');
    first_record;
    if :control.empno is not null then
    loop
    emp:=cond||''''||:control.empno||''',';
    exit when :system.last_record='true';
    next_record;
    end loop;
    emp:=substr(cond,1,length(cond)-1);
    end if;
    :control.emp:='"('||cond||')"'; ----formating in “(‘7369’,’7499’)”
    ----calling the report and passing parameters to it---
    pl_id:=get_parameter_list('empno');
    if not id_null(pl_id) then
    destroy_parameter_list('empno');
    end if;
    pl_id:=create_parameter_list('empno');
    add_parameter(pl_id,'year',text_parameter,emp);
    add_parameter(pl_id,'paramform',text_parameter,'no');
    Run_Product(REPORTS, 'c:\emp.rep', SYNCHRONOUS, RUNTIME, FILEYSTEM, pl_id, NULL)
    end;

  • Calling Report from a Form

    Hi All,
    I tried to call a report from a form (using this form as a parameter form)but unfortunately it is not working out for me. I used the run_product built in.
    Could someone examine my code and tell me what is wrong?
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('OPEN');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('OPEN');
    Add_Parameter(pl_id,'P_BUNIT',TEXT_PARAMETER, :BLOCK3.BUNIT);
    Add_Parameter(pl_id,'P_AGRMT',TEXT_PARAMETER,:BLOCK3.AGRMT);
    add_parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'SCREEN');
    add_parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    run_product(REPORTS, 'APRIL11', SYNCHRONOUS,RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    null

    Olan,
    Your code looks good, and it should work.
    Maybe you should check your report to make sure it is under oralce report path, user-defined parameters in the report are same name, type,lengh as in the form parameters, and correct system parameters.
    good luck.
    Jingning

  • Problem with running bitmap report in Oracle 6i

    Hello,
    I am running a report from a form using run_product in client/server enviroment. And I use the same code in all forms that run reports. In test enviroment, everything works normally. But in customer enviroment there is weird behaviour. Some reports need a lot of time to be executed, and when they are finally finished, report previewer is not maximized as it is in test enviroment. And more important problem is that one report doesn't execute at all. Report background engine is started but report doesn't come out at all.
    Here is code which I use to run reports:
    declare
    izvestaj      varchar2(15);
    pListName varchar2(20) := 'parList';
    dt      varchar2(6) := 'Screen';
    pList      paramlist;
    BEGIN
    izvestaj := 'EBS12';
    begin
    pList := get_parameter_list(pListName);
    if not id_null(pList) then
    destroy_parameter_list(pList);
    end if;
    pList := create_parameter_list(pListName);
    if (not id_null(pList)) then
    add_parameter(pList, 'P_PREDUZECE', text_parameter, to_char(:kontrolni.preduzece_id));
    add_parameter(pList, 'P_PRENOS', text_parameter, to_char(:prenos.id));
    add_parameter(pList, 'P_RAD', text_parameter, :prenos.chk_radnik);
    add_parameter(pList, 'P_LOK', text_parameter, :prenos.chk_lokacija);
    add_parameter(pList, 'P_ZAR', text_parameter, :prenos.chk_isplata);
    add_parameter(pList, 'P_RAS', text_parameter, :prenos.chk_raspored);
    add_parameter(pList, 'P_NAL', text_parameter, :prenos.chk_nalet);
    add_parameter(pList, 'P_BEZ_RAS', text_parameter, :prenos.bez_rasporeda);
    add_parameter(pList, 'P_STATUS', text_parameter, to_char(:prenos.status));
    add_parameter(pList, 'P_RAD_ID', text_parameter, to_char(:prenos.radnik_id));
    add_parameter(pList, 'P_SORT', text_parameter, to_char(:prenos.redosled));
    add_parameter(pList, 'PARAMFORM', text_parameter,'NO');
    add_parameter(pList,'DESTYPE',text_parameter,dt);
    run_product(reports, izvestaj, synchronous, runtime, filesystem, pList, null);
    end if;
    exception
    when others then
    set_alert_property('cfg_error',alert_message_text,'Poziv izveštaja nije uspeo! '||sqlerrm);
    if (alert_button1=show_alert('cfg_error')) then null;
    end if;
    raise form_trigger_failure;           
    end;
    END;
    Is it maybe some enviroment settings problem and if yes, what should I pay attention on?
    Tnx in advance,
    Nati

    Hello,
    When you put a block on a "new stacked canvas" that canvas is generated as a popup canvas. If that popup overlaps with some other generated items (for instance: items in master block) Forms will not show it.
    You can try showing that popup canvas programatically with Show_View('canvas_name') in When-New-Form-Instance and see what happens.
    Dalibor
    P.S. Why do you have to put detail block on a popup canvas? Why don't you simply put it on a "same content canvas"?

  • Problem running a report in forms.

    Hello!
    I am having a problem with running a report in a form. I have installed on my computer Oracle developer suite 10g, weblogic, oracle database 11g. Now i have a main form in witch runs froms and reports. The forms and reports had run well on oracle 6i but now i am faceing with a issue, the forms are running but the reports do not. In oracle 6i the reports did run with run_product, now with REPORT_OBJECT. I don't understand what structure could i use. Do i have to install Application server ???? PLS explain what do i have to do, all the configuration necessery, other ipoduct installation if needed. thanks!!!!!
    This is the main form that runs other forms and reports:
    DECLARE
         nod varchar2(50);
         htree           ITEM;
         lis paramlist;
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(100);
    BEGIN
         nod:=ftree.get_tree_node_property('COP1',ftree.get_tree_selection('COP1',1),ftree.node_value);
         htree := Find_Item('FRONT.COP1');
         Ftree.Set_Tree_Selection(HTREE, :SYSTEM.TRIGGER_NODE, Ftree.SELECT_ON);
         --lis:=create_parameter_list('LISTA');
         :GLOBAL.PROJECT_PATH:= 'D:\Diploma\Last_version\rap\';
    -- forme     
         if lower(nod) = 'intretinere clienti' then
              open_form('D:\Diploma\Last_version\INTRETINERE_CLIENTI',ACTIVATE, SESSION);      
         ELSIF LOWER(nod) = 'produse clienti' then
              --add_parameter(lis,'USERU',TEXT_PARAMETER,:PAROLA.USERU);
              open_form('D:\Diploma\Last_version\PROD_CL_inch',ACTIVATE, NO_SESSION,lis);     
    -- rapoarte          
         elsif upper(nod)='CLIENT' then begin
              run_product(REPORTS,'D:\Diploma\Last_version\rap\CLIENT',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);          
         --v_rep := RUN_REPORT_OBJECT('D:\Diploma\Last_version\rap\CLIENT');
         end;
         elsif upper(nod)='PRODUSE BANCARE DESCHISE IN PERIOADA' then begin     
              run_product(REPORTS,'D:\Diploma\Last_version\rap\PRODUSE_PERIOADA',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',NULL);
         --repid := find_report_object('PRODUSE_PERIOADA');
         --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE, SYNCHRONOUS);
         --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    --rep_status := REPORT_OBJECT_STATUS(repid);
    --     v_rep := RUN_REPORT_OBJECT('D:\Diploma\Last_version\rap\PRODUSE_PERIOADA');
    --v_rep := RUN_REPORT_OBJECT(repid);
         end;
         elsif upper(nod)='DEPOZITE SCADENTE IN PERIOADA' then      
              run_product(REPORTS,'D:\Diploma\Last_version\rap\DEPOZITE_SCAD',SYNCHRONOUS,RUNTIME,FILESYSTEM,'',null);
    -- nomenclatoare     
         elsif upper(nod)='TIPURI PRODUSE' then
              open_form('D:\Diploma\Last_version\nom_prod',activate, NO_SESSION);     
         elsif upper(nod)='TIPURI DOBANZI' then
              open_form('D:\Diploma\Last_version\nom_dob',activate, NO_SESSION);          
    -- operatiuni     
         elsif upper(nod)='DEPUNERE NUMERAR' then
              lis:=create_parameter_list('LISTA');
              add_parameter(lis,'STARE',TEXT_PARAMETER,'D');
              open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);     
         elsif upper(nod)='ELIBERARE NUMERAR' then
              lis:=create_parameter_list('LISTA');
              add_parameter(lis,'STARE',TEXT_PARAMETER,'E');
              open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);     
         elsif upper(nod)='TRANSFER' then
              open_form('D:\Diploma\Last_version\TRANSFER',activate, NO_SESSION);
         elsif upper(nod)='SIMULARE DEPOZIT' then
              open_form('D:\Diploma\Last_version\SIMULARE_DEPOZIT',activate, NO_SESSION);
         elsif upper(nod)='RAMBURSARE CREDIT' then
              open_form('D:\Diploma\Last_version\RAMBURSARE_CREDIT',activate, NO_SESSION);
         elsif upper(nod)='RAMBURSARE RATA' then
              open_form('D:\Diploma\Last_version\RAMBURSARE_RATA',activate, NO_SESSION);
         elsif upper(nod)='TRECERE LA RESTANTA' then
              open_form('D:\Diploma\Last_version\RESTANTA_CREDIT',activate, NO_SESSION);
         elsif upper(nod)='TRAGERE CREDIT' then
              open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);
              /*elsif upper(nod)='TRAGERE CREDIT' then
              open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);*/
         end if;
         --destroy_parameter_list(lis);
    END;

    Ok, so I have installed on my computer Oracle developer suite 10g, weblogic, oracle database 11g just like i said in the previous post. If i installed weblogic and i can run forms it means that i have the weblogic server running, no? If not what do i have to install for it to run ? I did what you said about the reports path, but just to be clear , i put it in environment variables REPORT_PATH='D:\diploma\Last_version\Rap'. I don't know where to put it in fromsweb.cfg ! Now about the main from, it looks like this :
    DECLARE
         nod varchar2(50);
         htree           ITEM;
         lis paramlist;
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(100);
         report_job_id VARCHAR2(100);
    BEGIN
         nod:=ftree.get_tree_node_property('COP1',ftree.get_tree_selection('COP1',1),ftree.node_value);
         htree := Find_Item('FRONT.COP1');
         Ftree.Set_Tree_Selection(HTREE, :SYSTEM.TRIGGER_NODE, Ftree.SELECT_ON);
         --lis:=create_parameter_list('LISTA');
         --:GLOBAL.PROJECT_PATH:= 'D:\Diploma\Last_version\rap\';
    -- forme     
         if lower(nod) = 'intretinere clienti' then
              open_form('D:\Diploma\Last_version\INTRETINERE_CLIENTI',ACTIVATE, SESSION);      
         ELSIF LOWER(nod) = 'produse clienti' then
              --add_parameter(lis,'USERU',TEXT_PARAMETER,:PAROLA.USERU);
              open_form('D:\Diploma\Last_version\PROD_CL_inch',ACTIVATE, NO_SESSION,lis);     
    -- rapoarte          
    *     elsif upper(nod)='CLIENT' then begin     *
    *     v_rep := RUN_REPORT_OBJECT('CLIENT');*
    *     report_job_id := RUN_REPORT_OBJECT(repid);*
    *     end;*
    *     elsif upper(nod)='PRODUSE BANCARE DESCHISE IN PERIOADA' then begin*
    *          repid := find_report_object('PRODUSE_PERIOADA');*
    *          report_job_id := RUN_REPORT_OBJECT(repid);*
    *     end;*
    *     elsif upper(nod)='DEPOZITE SCADENTE IN PERIOADA' then      *
    *     repid := find_report_object('DEPOZITE_SCAD');*
    *     report_job_id := RUN_REPORT_OBJECT(repid);*
    -- nomenclatoare     
         elsif upper(nod)='TIPURI PRODUSE' then
              open_form('D:\Diploma\Last_version\nom_prod',activate, NO_SESSION);     
         elsif upper(nod)='TIPURI DOBANZI' then
              open_form('D:\Diploma\Last_version\nom_dob',activate, NO_SESSION);          
    -- operatiuni     
         elsif upper(nod)='DEPUNERE NUMERAR' then
              lis:=create_parameter_list('LISTA');
              add_parameter(lis,'STARE',TEXT_PARAMETER,'D');
              open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);     
         elsif upper(nod)='ELIBERARE NUMERAR' then
              lis:=create_parameter_list('LISTA');
              add_parameter(lis,'STARE',TEXT_PARAMETER,'E');
              open_form('D:\Diploma\Last_version\depunere_numerar',activate, NO_SESSION,lis);     
         elsif upper(nod)='TRANSFER' then
              open_form('D:\Diploma\Last_version\TRANSFER',activate, NO_SESSION);
         elsif upper(nod)='SIMULARE DEPOZIT' then
              open_form('D:\Diploma\Last_version\SIMULARE_DEPOZIT',activate, NO_SESSION);
         elsif upper(nod)='RAMBURSARE CREDIT' then
              open_form('D:\Diploma\Last_version\RAMBURSARE_CREDIT',activate, NO_SESSION);
         elsif upper(nod)='RAMBURSARE RATA' then
              open_form('D:\Diploma\Last_version\RAMBURSARE_RATA',activate, NO_SESSION);
         elsif upper(nod)='TRECERE LA RESTANTA' then
              open_form('D:\Diploma\Last_version\RESTANTA_CREDIT',activate, NO_SESSION);
         elsif upper(nod)='TRAGERE CREDIT' then
              open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);
              /*elsif upper(nod)='TRAGERE CREDIT' then
              open_form('D:\Diploma\Last_version\TRAGERE_CREDIT',activate, NO_SESSION);*/
         end if;
         --destroy_parameter_list(lis);
    END;
    Thanks, hope u can guide me :).

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    pl_id := Get_Parameter_List(’tmpdata’);
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the ’tmpdata’ parameter list afresh.
    pl_id := Create_Parameter_List(’tmpdata’);
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, ’PARAMFORM’, TEXT_PARAMETER, ’NO’);
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • How to run a report from a form?

    i created a report from reports 6i. now i want to design an interface in oracle forms and want to call all information from report according to paramaters which i designed in oracle forms.
    i found some information that i can do that using Procedure Run_Report or Run_report_object but i could not achieved it.
    Can anyone explain me that step by step? Or anybody made an example before so a connection from form to report and send to me as a muster. probably i can find a solution for me too..thanks a lot..

    Abdetu thanks for your quickly reply but i have to say that i could not understand it very clearly because i don't have any experience about Forms and Reports. Therefore i am trying to ask my question again with examples.
    I made a report and now i am trying to connect this report to my forms. My forms has 2 search item. Account_no and Date and i have a Run button.
    If i write date "Oct" and push button "Run" i want to see whole list of Oct from Report. Therefore i made a trigger "When-Button-Pressed" and i wrote this and now my question about the parameters.
    In Forms under menu parameters should i create 2 parameters parameter01 and parameter02. and now my questions:
    1) After i create parameters should i write as a Parameter Initial Value
    2) Should i extra add paramters to reports too?
    declare
    v_Report_Id Varchar2(20) := 'RAPOR_NAME';
    v_Parameter_List Varchar2(15) := 'FormParameter';
    v_Parameter_List_Id Paramlist;
    v_Return_Code Number;
    Begin
    v_Parameter_List_Id := Get_Parameter_List(v_Parameter_List);
    If Not id_null(v_Parameter_List_Id) Then
    Destroy_Parameter_List(v_Parameter_List_Id);
    End If;
    v_Parameter_List_Id := Create_Parameter_List(v_Parameter_List);
    Add_parameter(v_Parameter_List_Id, 'PAR_01', TEXT_PARAMETER,:Parameter01);
    Add_parameter(v_Parameter_List_Id, 'PAR_02', TEXT_PARAMETER,:Parameter02);
    Add_parameter(v_Parameter_List_Id, 'PARAMFORM', TEXT_PARAMETER,'NO');
    Add_parameter(v_Parameter_List_Id, 'DESTYPE', TEXT_PARAMETER,'SCREEN');
    Run_product(REPORTS,'v_Rerpot_Id',SYNCHRONOUS,RUNTIME,FILESYSTEM,v_Parameter_List_Id,null);
    End;

  • Report as PDF

    Dear all,
    I'm able to create a report as a PDF file, but I'm not able to open the PDF after creation. The host command is running but does not find the report because it is not yet created. Is there any way to make the host command running AFTER the PDF is created ?
    DECLARE
    pl_list paramlist;
    where_parameter VARCHAR2(500) := null;
    BEGIN
    pl_list := get_parameter_list('list');
    IF NOT id_null(pl_list) THEN
    destroy_parameter_list(pl_list);
    END IF;
    pl_list := create_parameter_list('list');
    where_parameter := WHERE ... ORDER BY ...
    add_parameter(pl_list, 'p_where', TEXT_PARAMETER, where_parameter);
    add_parameter(pl_list, 'DESTYPE', TEXT_PARAMETER, 'FILE');
    add_parameter(pl_list, 'DESNAME', TEXT_PARAMETER, 'report.pdf');
    add_parameter(pl_list, 'DESFORMAT', TEXT_PARAMETER, 'PDF');
    add_parameter(pl_list, 'paramform', TEXT_PARAMETER, 'no');
    run_product(REPORTS, 'report.rdf', ASYNCHRONOUS, RUNTIME, FILESYSTEM, pl_list, NULL);
    host('cmd /c report.pdf');
    END;

    Stijin,
    try run_product(REPORTS, 'report.rdf', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_list, NULL);
    This makes Forms wait for the Reports to finish. Be aware of that Run_Product() was replaced by Run_Report_Object() in Forms9i. So to prepare your apps for upgrade i woudl start writing Run_Reports_Object() code.
    See: http://otn.oracle.com/products/forms/pdf/277282.pdf
    Or for Forms 9i: http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank
    Frank

  • I want to run jasper Report as pdf to display arabic letter

    i want to run jasper Report as pdf to display arabic letter butv when i use
    byte[] bytes =JasperRunManager.runReportToPdf(report,parameters, conn); display ?????
    i hope anybody to help me
    thanks
    Edited by: Amr Ahmed on May 2, 2011 2:08 AM

    DECLARE
    vParamList PARAMLIST;
    BEGIN
    vParamList:=GET_PARAMETER_LIST('MyRep');
    IF NOT ID_NULL(vParamList) THEN
    DESTROY_PARAMETER_LIST(vParamList);
    END IF;
    vParamList:=CREATE_PARAMETER_LIST('MyRep');
    SET_REPORT_OBJECT_PROPERTY('report_path\emp_rep_def',REPORT_DESFORMAT,'PDF');
    RUN_PRODUCT(REPORTS,'report_path\emp_rep_def',ASYNCHRONOUS,RUNTIME,FILESYSTEM,vParamList,NULL);
    END;

Maybe you are looking for