Is there Java API to call Reports

Can an external J2EE application call Oracle Reports through some Java API ?

Try using Runtime.
String hostString = runtimePath + " REPORT=" + report +
               " userid=" + userid +
               " paramform=" + paramform +
               " desformat=" + desformat +
               " desname=" + desname +
               " destype=" + destype +
               " " + paramlist;
          System.out.println(hostString);
          try
          {                                                                      Runtime rt = Runtime.getRuntime();
          Process child = rt.exec(hostString);
          child.waitFor();
               catch(Exception e)
                    success = 1;
                    System.err.println(e);
I use this successfully. My only problem is that I cannot tell if the report actually ran successfuly.

Similar Messages

  • Is there Java API available for third-party integrations with SCCM 2012? I went through the "Developer's Survival Guide", and it seems that SCCM 2012 SDKs only support C# and PowerShell

    Hi All,<o:p></o:p>
    My team and I are developing a software using java that works closely with IT management software such as SCCM. Our software will be highly dependent on data stored in SCCM. Basically
    our software will talk to SCCM to get information about a system managed by SCCM. To be able to do that, our software needs to use a java API that talks to SCCM. Is there a java API for SCCM 2012 that we can use? If there is not, what is the work around to
    this issue (integrate a java project with SCCM SDKs)? Any help is appreciated! Thanks!<o:p></o:p>

    Hi,
    As you mentioned, it seems that there is no available Java API for SCCM .
    Just curious, what's information you want to get from SCCM.
    Based on my experience, you could query the SCCM site database to get almost all the information.
    Otherwise, your question seems to be related to SCCM 2012. You may also choose to post there to get more effictive help.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is there any API to read report(.rpt) file to BO ?

    The SDK example just copy an existing report to another folder. now I have report on the server (same as BO), How i can add the new report to BO?
    Thanks,
    Forest

    I find the solution.
    <%
    * This Java Server Pages (JSP) sample demonstrates how to publish
    * a report and overwrite the si_files.  Instances of the original
    * report are unchanged.
    * Created by: TU
    %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*,
                     com.crystaldecisions.sdk.framework.*,
                     com.crystaldecisions.sdk.exception.*,
                     com.crystaldecisions.sdk.occa.security.*,
                     com.crystaldecisions.sdk.plugin.desktop.report.*"
    %><%
    * BusinessObjects Enterprise Logon Credentials.
    String boCMSName  = request.getParameter("cmsName");
    String boAuthType = request.getParameter("authType");
    String boUsername = request.getParameter("userName");
    String boPassword = request.getParameter("password");
    //Name of the published report
    String boReportName = request.getParameter("reportName");
    //Location and name of the report to update the published report with
    String boNewReportFile = request.getParameter("updateReport");
    * Point to installation path of Enterprise.  This is used to invoke the
    * ReportAdd binary executable in the folder
    * <BEXI_HOME>\<OS TYPE>\plugins\desktop\CrystalEnterprise.Report
    final String BEXI_HOME  = "C:\\Program Files\\Business Objects\\BusinessObjects Enterprise 11.5";
    * InfoStore Query for the Crystal Report to be updated.
    String boQuery = "Select TOP 1 * From CI_INFOOBJECTS "
                   + " Where SI_KIND='CrystalReport' "
                   + " And SI_INSTANCE = 0 "
                   + " And SI_NAME = '" + boReportName + "'";
    // Set before getSessionMgr
    System.setProperty(CeEnterpriseContext.BOBJ_ENTERPRISE_HOME, BEXI_HOME);
    IEnterpriseSession boSession = null;
    try{
        // Logon and create EnterpriseSession
         boSession = CrystalEnterprise.getSessionMgr()
                .logon(boUsername, boPassword, boCMSName, boAuthType);
        IInfoStore boInfoStore = (IInfoStore) boSession.getService("", "InfoStore");
        // Perform a query for the report
        IInfoObjects boInfoObjects = boInfoStore.query(boQuery);
        if ((boInfoObjects == null) || (boInfoObjects.isEmpty())) {
               out.print("Report not found.");
               return;  
        IReport boReport = (IReport) boInfoObjects.get(0);
        // Update the published report's SI_FILES with the contents of the
        // new report.
        IFiles boReportFiles = boReport.getFiles();
        IRemoteFile boReportFile = (IRemoteFile) boReportFiles.get(0);
        boReportFile.overwrite(boNewReportFile);
        boReportFile.commit();
        boInfoStore.commit(boInfoObjects);
        // Refreshes the properties of the report
        boReport.refreshProperties();
        // Put any further changes you'd like to make to the report here.
        // Commit changes to the CMS
        boInfoStore.commit(boInfoObjects);
        out.println("Refreshed report " + boReportName + ".");
    } catch (Exception ex) {
         out.print(ex.getMessage());
    } finally {
        if(boSession != null)
            boSession.logoff();
    %>
    Edited by: Forest lin on Dec 4, 2008 12:04 PM

  • SQL Loader, Java  API

    Hi,
    Is there Java API for SQL loader? I know we can call SQL Loader from the java by "system.exec()" Command line, but is there a JAVA API for it, that would make the call more elegant.
    Thanks

    I've never heard of one. However, if you'll switch to using "external tables" you don't need one.
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10743/schema.htm#sthref767

  • Read "Qualified Range Key Generation" with Java API.

    Hi guru,
    I use MDM 5.5 SP6.
    In MDM Console I read Qualified Range Key Generation it in "ADMIN -> Remote Systems -> Qualified Range".
    I have to get "Qualified Range Key Generation" with Java API.
    It's possible?

    Hi Rocco,
    I am also thinking  of same scenario.I thought it is possible in Java Apis by calling the webservices for MDM.there is a service of "get key mapping" where we can pass this "Qualified key range" as  parameter.In MDM we have to define a look up table for that key ranges .We will access that table through JAVA API and then link it with the key mapping service .
    If u find any solution to apply this ,please share.
    thanks and regards
    Ank

  • Calling Report From Oracle Forms

    Hi
    I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
    Thanks.

    As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
    Adi

  • Calling Report from Menu (Oracle Forms 11g)

    I'm trying to call a report from a menu item in a menu (that is attached to a form) in Oracle Forms 11g directly and I'm having some difficulty. I know how to call a report from a form and everything works perfectly.
    But since in a menu there is no item called "Report" to attach like there is in Forms, I followed on route which is to attach the "rp2rro" PL/SQL library on the menu file (mmb) and I also even did it on the form itself. Then when you convert a menu using the Forms Migration Assistant, it will comment out statements like "ADD_PARAMETER" and replace with calls to packaged procedures/functions from the package "rp2rro". I set all the parameters
    RP2RRO.SETOTHERS('PARAMFORM=YES');
    RP2RRO.SETDESTYPE('CACHE');
    RP2RRO.SETDESFORMAT('PDF');
    RP2RRO.SETCOMMUNICATIONMODE(SYNCHRONOUS);
    then made the call to the report:
    RP2RRO.RUN_PRODUCT(REPORTS, 'MYREPORT', SYNCHRONOUS, RUNTIME, FILESYSTEM, param_list_id, NULL);
    but all i get is the error "FRM-41219: Cannot find report: invalid ID."
    The Oracle documentation for integration reports in forms is for when you execute the report within a form not a menu item (that is attached to a form). Any clues?
    My environment is:
    Oracle (Database, Fusion Middleware) 11g - Red Hat Enterprise Linux 5
    Web Browser - Internet Explorer 7 on Windows XP Professional
    Thanks,

    Francois Degrelle wrote:
    Hello,
    One option is to use the Web.Show_Document() built-in, with the complete Report Server URL inside. Of course, you can hide some information (connection string for instance) by calling a section of the /reports/conf/cgicmd.dat configuration file.
    FrancoisI tried it using the code below
    DECLARE
    c_relative_path CONSTANT VARCHAR2(50) := '/reports/rwservlet/?server=';
    c_rep_srv_name CONSTANT VARCHAR2(50) := 'rep_wls_reports_calgf3_asinst_1';
    c_rep_name CONSTANT VARCHAR2(30) := 'copy_detail.rdf';
    c_desformat CONSTANT VARCHAR2(10) := 'htmlcss';
    c_destype CONSTANT VARCHAR2(10) := 'cache';
    v_username VARCHAR2(100);
    v_password VARCHAR2(100);
    v_db_instance VARCHAR2(40);
    v_connect_string VARCHAR2(300);
    v_rep_srv_params VARCHAR2(200);
    v_rep_url VARCHAR2(400);
    BEGIN
    v_username := LOWER(get_application_property(username));
    v_password := LOWER(get_application_property(password));
    v_db_instance := LOWER(get_application_property(connect_string));
    v_connect_string := v_username || '/' || v_password || '@' || v_db_instance;
    v_rep_srv_params := '&report=' || c_rep_name ||
    '&desformat=' || c_desformat ||
    '&destype=' || c_destype ||
    '&userid=' || v_connect_string ||
    '&paramform=yes';
    v_rep_url := c_relative_path || c_rep_srv_name || v_rep_srv_params;
    web.show_document(v_rep_url, '_blank');
    END;
    and I get a new tab in the browser opening up (which is good at least) with the Oracle Reports Services page saying:
    Error
    No such Web command ().
    Now I've tried putting a URL of a Oracle's website (http://www.oracle.com) and that works perfectly. Another question is, where would the default directory be if I wanted to say call an HTML file? Would it be in the directory of FORMS_PATH where all my fmb, fmx, rdf, pll, etc...files are stored?
    Thanks,

  • Using the Java APIs

    I am attempting to use the java api in my reporting solution. The application that we are developing is using JSF and java. I wanted to keep the same look and feel for my reports.
    First, I created a very simple rtf template in Microsoft word using BI Publisher Desktop. This simple template is just a table layout of data. No groupings. I created my datatemplate and ran the DataProcessor, the RTFProcessor, and FOprocessor objects. This worked correctly.
    I next created another rtf template. This rtf template contains a grouping on Po_Number. I also modified my data template to group by Po_number. The DataProcessor and the RTFProcessor works fine. However, the FO Processor gives me the following message:
    XDOException <Line 43, Column 93>: XSL-1015: (Error) Function 'current-group' not found.
    However, I can successfully preview this template (with data) in Microsoft Word. Any ideas what may cause this.

    It's either a template issue or your missing some jar files (probably jar files).
    I would highly recommend you download the BIPublisherIDE. All this code and framework is already written and it's free!
    http://bipublisher.blogspot.com/2008/03/bi-publisher-bipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com

  • APIS for Monitoring Reports

    Hi,
    There some API for monitoring reports? Like standard reports (request, request by user, ...)?
    I need to do some reports with different filters that is different from standard reports.
    Thanks,

    Please, anyone can help-me?

  • Java API docs

    Hi,
    through the search on otn, I found this url:
    http://otn.oracle.com/products/reports/htdocs/getstart/docs/Javadocs/index.html
    for the Java API docs for Reports. However, the frames in that page are empty. Has the documentation been relocated?
    Greetings,
    Ivo

    I noticed that Java API docs have appeared here. I'm not sure if this is a recent addition or not....
    http://download-west.oracle.com/docs/cd/B28527_01/doc/nav/portal_booklist.htm
    Rgds
    Ben

  • SUP JAVA APIS FOR MBOs for consumption from java client

    Hello,
    I am trying to develop an android application using SUP,since SUP does not support android code generation.is there java apis provided by SUP so that android can connect to SUP,is there any documentation for these apis as well.
    regards
    kaushik

    Hi Kaushik,
    I thought Sybase will provide support for Android devices from SUP 2.0. But from the documentation, it looks like they still dont provide any support for android devices. Please check the link below.
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01283.0200/doc/html/asc1229701492397.html
    The links explains about genearting object api code for various platforms but Android is not included in that. But since Android and Blackberry are both Java based, I still feel you should be able to select blackberry as platform when trying to generate code and work with Android environment. Since both are eclipse based, try and it should work.
    Best Regards,
    Siva.

  • Is there a JAVA API to generate out reports yet?

    I've read all the forum information regarding a java api not being available yet. They are dated back in 2004. Is there still not one available? I need to be able to generate reports that were created with Oracle reports, but do it from a Java Application. I need some way to be able to access these reports. Is there a solution out there yet?

    You can execute reports through the reports server through a database package called SRW which is nothing more than a HTTP request.
    If you have a java program which can make a HTTP call you are in business.
    Look at the event driven API called SRW.
    Marcos

  • Exception when connecting to Reporting and Analysis services from Java API

    Hello,
    I'm trying to connect to Hyperion Reporting and Analysis services from Java API using [Developer's guide|http://www.bidw.in/docs/hs_developer.pdf] .
    I get this error:
    com.sqribe.rm.ReportMartException: com/hyperion/css/CSSException
         at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
         at com.sqribe.rm.AASessionImpl.open(Unknown Source)
         at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
         at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
         at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
         ...My code:
    String user = "user";
    String pwd = "password";
    String host = "my.hyperion.server";
    int port = 6800;
    try {
         Session theSession = SessionFactory.getInstance(user, pwd, host, port);
         Repository theRepository = theSession.getRepository();
    } catch (UserValidationException e) {
         e.printStackTrace();
    } catch (UnknownReportMartException e) {
         e.printStackTrace();
    } catch (ReportMartException e) {
         e.printStackTrace();
    }I have tried to look at my services running, and it all looks OK. I've checked user/passowrd/port for GSM. What can be wrong?
    I also tried to run samples from \BIPlus\SDK\samples\java, e.g. Login.java:
    #> java Login user password my.hyperion.server 6800with this effect
    com.sqribe.rm.ReportMartException: SystemExceptionError
            at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
            at com.sqribe.rm.AASessionImpl.open(Unknown Source)
            at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
            at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
            at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
            at Login.<init>(Login.java:36)
            at Login.main(Login.java:69)I'm sure that I'm connecting to the server because when put wrong passowrd or user as input to Login class I get this:
    com.sqribe.rm.ReportMartException: AUTHEN_CSSLoginFailed
            at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
            at com.sqribe.rm.AASessionImpl.open(Unknown Source)
            at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
            at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
            at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
            at Login.<init>(Login.java:36)
            at Login.main(Login.java:69)so it is there but something is wrong later. Any idea what?
    Please help.
    regards,
    Pawel
    Edited by: Paoro on 2010-09-27 02:02

    HI,
    I am getting the same error while running the Login file, Did any one resolve this issue?
    Please share the solution.
    Thanks.

  • How to call Java API from BSP?

    I have a requirement to call Java API from BSP application.
    I have checked the forum and found that it is possible by using some ABAP codes.
    However there is no pointer on how this is done.
    Can someone explain the details on how to call Java API from BSP is done?
    I found class CL_EJB_JAVA_OBJECT_METHODS to call a method in EJB but can't find function or SAP class to call Java API.
    Actually is there any BSP extention which can used to call Java API?
    Thanks,
    Hendri

    check out these weblogs, it should give you an idea how to go about it.
    /people/ignacio.hernndez/blog/2006/12/04/speech-synthesis-listen-the-application-server-is-talking-to-you
    /people/puru.govind/blog/2006/12/20/let-abap-speak
    Regards
    Raja

  • Call a Java API inside a java mapping

    Hi,
    I have a web service in SAP PI 7.0 that recives a PDF coded in base64. I need to call an external Java API provided by a partner for extract its digital signature and return it as Web Service Response. It's possible to do the call to a Java API inside a Java mapping for doing this? What is necessari for doing this call?
    I think that I Need to install the Java libraries in SAP J2EE stack and import its inside the java mapping. Need I something else?
    can you show me any exemple?
    thanks.

    Hi,
    Put your jar files on your servers java path. Doing so you can have direct access into an udf for your libraries.
    Another option (for testing purposes is a good idea) is to attach to the scenario your jar file. Go to mapping objects, imported archives, and import your jar file there. By this way it will be visible only on the context of the software component and namespace where you put the file.
    Regards.
    roberti

Maybe you are looking for

  • Error  while configuring SSO between Portal 7.0 and Operating System.

    Dear all, I am having an issue,i need to configure SSO between the Portal 7.0 and operating System.I have followed both the Kerberos as well as spNego wizard methods,but i am not able to configure UME settings as we are using datasourceConfiguration_

  • Unable to Access Remote LAN over IPSec VPN

    I have a Cisco ASA 5540 setup with Remote Access VPN for users. Suddenly no one can access the remote LAN over VPN. Below is my config: ASA Version 7.0(8) hostname DC2ASA domain-name yorktel.com enable password d2XdVlFOzleWlH1j encrypted passwd 2KFQn

  • Error ID 30252 when trying to purchase apps (both paypal and credit card)

    On PlayBook AppWorld, when trying to purchase an app, I get the following error: "There is a problem with your credit card authorization. Please try again or visit BlackBerry World Support for more information. (Error Id: 30252)" I'm 200% sure my cre

  • Need Help w/Labview

    I need urgent help on a program that I am suppossed to design using labview(5.1), in conjuction with circuit boards designed by national instruments. The program calls for controlling Eurotherm 818 temperature controller and National Instruments ER-8

  • Where is the forum for Windows Server 2008 R2?

    Where is the forum for Windows Server 2008 R2? Thanks