Is it possible to open a report or form from a package on the DB?

Please help..
Marty

Wrong forum. You probably won't get the best answers here.
Please help..Why you would want a Database server to be the client participant in a Form is beyond my understanding. You might want to restate what you are trying to accomplish.
For a report, you have some options, something like this could be pulled off inside a stored procedure
SELECT utl_http.request( 'http://your_report_server?args_that_output_to_file_not_cache' )
INTO buffer
FROM DUAL;
Where you don't care about buffer, since the report has been initiated.

Similar Messages

  • Possible solution: Open Crystal Reports Print Layout from UDO form

    Hi all,
    I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which so far works great. I post it here for anybody else needing this kind of workaround, or in case somebody has a better solution, pick that up.
    Here it is:
    1) Create your Crystal Report file and import using the Reports and Layouts screen in SAP Business One. Give it a meaningful name and location in the menu. Have at least one parameter to take the DocNum or DocEntry, or whatever your primary key is. (Note: I know the import can be done by SDK, but as far as I can see there's no way to place it in the menu structure just yet.)
    2) In your Add-On in the event ID 520 (print), call the following function with the Document Number grabbed from the open form:
    public static bool printUDO(string strDocNum)
                // get menu UID of report
                Recordset oRS = (Recordset)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
                oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = 'ReportName' AND Type = 'C'");
                if (oRS.RecordCount == 0)
                    B1Connections.theAppl.MessageBox("Report layout 'ReportName' not found.", 0, "OK", null, null);
                    return false;
                // execute menu and enter document number
                B1Connections.theAppl.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString());
                Form form = B1Connections.theAppl.Forms.ActiveForm;
                ((EditText)form.Items.Item("1000003").Specific).String = strDocNum;
                form.Items.Item("1").Click(BoCellClickType.ct_Regular); // abrir reporte
                return true;
    I know it's kind of a dirty solution, but it works, and if you have any suggestions, I'd be happy to hear them.
    Thanks!
    Joerg.

    Hi Joerg,
    It's not a dirty solution... I like it and i'm using it
    Thanks!
    Best regards,
    Ana Silva

  • On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."

    On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."  It's on my laptop but when I play it there, it 'jerks' every couple of seconds.  How can I fix both these issues?  Thanks!!

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • Importing Reports and Forms from Oracle to Portals

    Hi,
    I have read somewhere that it is possible to import all ready created reports and forms from Oracle and view them as a Portlet in Portals. Is this actually possible and if so where do I begin??
    Could there be an issue with rights, this is all new to our DBA and we have only just got permission to publish forms created in Portals to the repository. Any ideas??

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • On my Mac, when I attempt to open a form from a web site, the Reader does not open. It used to.

    On my Mac os 10.6.8, when I attempt to open a form from a web site, the Reader (10.1.2) does not automatically open as it used to.  What can I do to correct this problem?

    It sounds like your file associations are messed up and Reader is trying to open your .jpg files. Is this correct?
    If so, you just need to change the associations to choose what application opens them. Here's how: Change File Associations in Mac OS X

  • How to open an Oracle 6i Form from a button

    Hi,
    I have a button on an order form that im trying to open the customer form from i am using the code:
    begin
    call_form('Customer',no_hide,do_replace);
    end;
    i get the following error msg:
    FRM-40010: cannot read form Customer.
    Any help would be greatly appreciated.
    Also i am going to develop a log on screen that will validate a user name and password but cannot find any info on this. Any links or tips would be great!
    Thanks!

    Please ask your logon question in a separate thread.
    The "cannot read form" message means Forms cannot find the file named Customer.fmx in the path where it expects to find the form. If you are running on a unix system, the file name must match upper or lower-case exactly, as well.

  • 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"');

  • Can't open a Report in Forms

    hi everybody
    I hope all of you are fine.
    Actually I'm now on training of learning Oracle Forms & Reports and I made an application and I put in the Forms a report to get the medicines info so after starting the Forms it loaded to Firefox Browser and after pressing on Report I get an error that tells "FRM-41214: Unable to run report" and I can't load the report.
    actually I started the server and it's in Ready so it works fine and I can see the reports working from Reports Builders through a browser but the Forms can't see the report and it gave me that error "FRM-41214: Unable to run report". Other thing the OC4J is working.
    The system that I'm working on:
    - Windows Vista ultimate edition.
    - Oracle 10g 2R, DB, Forms, Reports.
    The default browser for Forms Builder is Firefox and the default browser for Reports Builder is IE.
    Any help please to solve my problems I'll be appreciated

    Hi
    First of all please tell us with which bulitin are you calling the report.post the whole code you use to call the report.
    Thanks
    --Ajay Sharma
    Edited by: Ajay Sharma on May 30, 2009 5:35 AM

  • Is it possible to create a report combining data from 2 reports?

    Post Author: swalker
    CA Forum: General
    We are upgrading the application, ServiceCenter.  We have reports that show our Response and Resolution Metrics.  I have 2 set of reports, one for the old version and one for the new version.  I need to combine the results of both reports into 1 and do calculations on the data from both.  Can this be done with 2 sub reports in the main report that does the calculations?  Can 1 report connect to 2 separate databases?  I am using Crystal Reports v8.5. Is there any documentation on this or sample reports?  Can any one please give me some guidance?  Thanks

    Post Author: swalker
    CA Forum: General
    yangster thanks for the quick reply.  I am not really sure about combining reports, so I looked into what you said.  I tried to create a shared variable on the field that I need to share but that field is a running total and I get an error when I try to run the report "This field cannot be used becaus eit must be evaluated later."    So I am not sure what to do now.  Is there a work around for this?  Thanks for any help.

  • Generate report with data from database package

    Hi
    Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself?
    If yes, how is it done?
    Appreciate any help. Thx.

    Hi,
    You can use REF CURSORs to generate reports from a database package.
    For information about REF CURSORs, please see Chapter 40 'Building a Paper Report with REF CURSORs' of the Oracle Reports Building Reports manual.
    This chapter is at:
    http://download-uk.oracle.com/docs/html/B13895_01/orbr_refcur.htm#i1011693
    Hope this helps.
    Regards,
    Panna

  • Opening & pre-populating a form from another form

    I am designing a form with Designer 7.0 whereby the user enters data into repeating subforms. This data is used to populate another form which repeats according to the number of instances created in the first form. I am wanting to create a button on the first form which the user can click so that the second form is opened and already populated with the data from the first form (which remains open). I am unsure how to go about this. Can anyone suggest some script which would get me started?

    You could also use OPEN_FORM(form_name,ACTIVATE,SESSION). This opens the second form in an independent session which will allow you to toggle between forms and commit on a single form only.
    Creating independent sessions is usually appropriate for forms that access different tables and independent logical transactions.
    The Oracle Forms Runform must be running with the Session option turned on when you use the session parameter in the OPEN_FORM call.
    Dpending upon your requirement, you may use OPEN_FORM or as Bogdan suggested use the RUN_PRODUCT with ASYNCHRONOUS option.

  • Is it possible to open several tabs at once (with certain websites on the tabs) by just using one icon?

    I'd like to make several groups of website tabs that would each open up by double clicking on a single shortcut.
    For example: when I am going to do my online banking I would like to open a single shortcut, and then that would open all of my banking websites, each on a different tab.

    Do you mean starting via a desktop shortcut?
    You can add all URLs to the command line separated by a space.<br />
    If the list gets too long then you need to use a firefox.cmd file to start Firefox with all the websites.
    * http://kb.mozillazine.org/Command_line_arguments

  • Is it possible to open a csv into larger columns that display all the data that you need?

    Is there a way to get a csv file to open into larger columns without having to increase the column size by hand.  Maybe by opening a downloaded csv into a custom template,  or to have it open so you can see all the text/numbers in the columns?

    RM,
    Maybe with a script you could do it in fewer steps, but there is a pretty simple way to get what you want.
    If you create a template with a properly sized table for your data it's no bother to paste the standard table that the csv file opens into into a custom table.
    Just open the CSV file in Numbers and open a custom template that you have prepared in advance. Select and Copy the table from the CSV file, Select cell A! in the Template, and Edit > Paste and Match Style. It is important when selecting Cell A1 in the custom template's table that you only click once on Cell A1 so that you don't inadvertently drill into the text layer.
    That's it.
    If you have any difficulty, let me know.
    Jerry

  • Possible to open original media file directly from subclip?

    One thing I don't like about subclips is that there are occasionally times when I wish I subclipped a different part of the media file. Is there any way (some kind of menu option or shortcut) to select/view a subclip, and from there view/open it's media file?

    FCP's biggest falldown has always been its media management. find clip/bin subclips etc have always been flaky (yes ,people,most of them on this forum, have found work arounds bless them!)
    Why does apple not figure this out? is it some copyright thing with avid? who knows, and to probably 99.9% of apples FCP market who cares? in the meantime though , film editors will just chug along . dreaming of the perfect cutaway (if only I could remember where it was, I'm sure it was on roll078, just match frame to that shot...oh...well lets look in clip properties to find the bin....(5 minutes later producer asks "what are you doing?"...editor says "???

  • Not able to open pdf file ( smart form from webdynpro )

    Dear friends,
    while trying to download pdf file from webdynpro i am getting the following error ( pls check the screen shot and also my  code )
    could any one please let me know what's the issue
    Thanks
    Vijaya
    data    v_bin_filesize           TYPE i,
               st_job_output_info       TYPE ssfcrescl,
                bin_pdfx TYPE xstring,
    data  : it_docs     TYPE STANDARD TABLE OF docs,
              it_lines    TYPE STANDARD TABLE OF tline.
    data : lv_file_name type string.
              lv_file_name = 'PDFSMARTFORM.PDF'.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    * EXPORTING
    *   USE_OTF_MC_CMD               = 'X'
    *   ARCHIVE_INDEX                =
         IMPORTING
           bin_filesize           = v_bin_filesize
         TABLES
           otf                    = st_job_output_info-otfdata
           doctab_archive         = it_docs
           lines                  = it_lines
         EXCEPTIONS
           err_conv_not_possible  = 1
           err_otf_mc_noendmarker = 2
           OTHERS                 = 3.
       cl_wd_runtime_services=>attach_file_to_response(
       i_filename = lv_file_name
       i_content = bin_pdfx
       i_mime_type = 'application/pdf'
       i_in_new_window = abap_false
       i_inplace       = abap_false ).

    Hi,
    I think the binary file conversion was not done properly( you haven't filled bin_pdfx, its the otf_data ). OR, Use CONVERT_OTF FM and pass format as PDF. Check this document for reference: Opening a Smartform in Web Dynpro ABAP
    Hope this helps u,
    Regards,
    Kiran

Maybe you are looking for

  • ITunes 10.6 won't let me burn CDs

    I get a message saying "Registry settings used by the iTunes drivers for importing and burning CDs are missing. This can happen as a result of installing other CD burning software. Please reinstall iTunes." I reinstalled but still get the same messag

  • External Hard Drive is read only?? how do i change this?

    ive just gotten a new external hard drive which i use a giant usb pretty much, only problem is when i drag files into it to copy it tells me that "untitled" cant be modified.. also when i check its info im told that it is read only... how do figure o

  • Steps in upgrading HDD to SSD on Macbook Pro 13 Mid 2009

    I need help in upgrading the RAM and Storage in my MacBook Pro 13" Mid 2009. I have bought 8GB Memory and 512 GB SSD from Crucial.com. I have watched a lot of Youtube Videos on how to install them but I am afraid I am still missing some things I need

  • HT201335 How do I get airplay to display more networks?

    I'm in my corporate office and there are 30 or so airplay networks.  I need to connect to a network that is not in the default list that appears.  How do I get airplay to display more networks?

  • How much is to change a iphone 3gs battery?

    HI I JUST WANTED TO KNOW HOW MUCH WOULD IT BE TO CHANGE THE BATTERY ON MY 3GS PHONE IS COMPLETED DEAD AND JUST WANTED TO KNOW HOW MUCH WOULD APPLE CHARGE THANKS