Please, help me with with Report Engine SDK!

I am using Report Engine SDK. This is my code:
<%@ page import="com.crystaldecisions.sdk.framework.*"%>
<%@ page import="com.crystaldecisions.sdk.exception.SDKException"%>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore"%>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoObject"%>
<%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*"%>
<%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
                 com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
                 com.crystaldecisions.sdk.occa.report.application.ReportClientDocument,
                 com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat,
                 java.io.ByteArrayInputStream"
%>
<%@ page import="java.util.Iterator"%>
<%
     // Reference to the Report Engine:
%>
<%@ page import="com.businessobjects.rebean.wi.*"%>
<%!IInfoObjects getList(IInfoStore iStore) {
          IInfoObjects list = null;
          String query = "SELECT SI_ID, SI_NAME, SI_PARENTID," + " SI_KIND, SI_INSTANCE, SI_DESCRIPTION FROM"
                    + " CI_INFOOBJECTS";
          try {
               list = iStore.query(query);
          } catch (SDKException sdke) {
               list = null;
          return list;
     }%>
<%!     void see_all_objects(IInfoStore iStore){          
          IInfoObjects webiDocs = getList(iStore);
          Iterator infoObjectsIter = webiDocs.iterator();
          while (infoObjectsIter.hasNext()) {
               IInfoObject folder = (IInfoObject) infoObjectsIter.next();
               System.out.println(folder.getID());
               System.out.println(folder.getTitle());
               System.out.println(folder.getDescription());
     %>
<%
     String CMS = request.getParameter("cms");
     String userID = request.getParameter("user");
     String password = request.getParameter("password");
     String auth = request.getParameter("auth");
     if (CMS == null)
          CMS = "";
     if (userID == null)
          userID = "";
     if (password == null)
          password = "";
     if (auth == null)
          auth = "";
     IEnterpriseSession enterpriseSession;
     try {
          ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
          enterpriseSession = mySessionMgr.logon(userID, password, CMS, auth);
          if (enterpriseSession != null) {//Create and store useful objects for the session.
               session.setAttribute("EnterpriseSession", enterpriseSession);
               IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
               session.setAttribute("InfoStore", iStore);
               //see_all_objects(iStore);
               //String folderQuery = "SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME='4.rpt'";
                    String folderQuery = "SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME='5.rpt'";
               IInfoObjects folders = iStore.query(folderQuery);
               IInfoObject folder = (IInfoObject)folders.get(0);
               //Instantiation of a Report Engine:
               ILogonTokenMgr iLManager = enterpriseSession.getLogonTokenMgr();
               ReportEngines repEngines = (ReportEngines) enterpriseSession.getService("ReportEngines");
               ReportEngine widocRepEngine = (ReportEngine) repEngines
                         .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);//WI allows editing and creation
               session.setAttribute("widReportEngine", widocRepEngine);
               ReportEngine fcdocRepEngine = (ReportEngine) repEngines
                         .getService(ReportEngines.ReportEngineType.FC_REPORT_ENGINE); //FC just viewing
               session.setAttribute("fcdReportEngine", fcdocRepEngine);
               Opening documents:
                    1. Establish a BusinessObjects Enterprise session for the user
                    2. Get an identifier for the document
                    3. Retrieve the ReportEngine instance to open the document of desired type.
                    4. Open the document using the ReportEngine.openDocument method for Web
                    Intelligence or Desktop Intelligence documents.
               int idReport = folder.getID();     
               System.out.println("Document about to be opened "+idReport);
               System.out.println("Name file: "+folder.getTitle());
               DocumentInstance docInstance= widocRepEngine.openDocument(idReport);                
          //     DocumentInstance docInstance = fcdocRepEngine.openDocument(idReport);
               System.out.println("Document opened");
               String docToken = docInstance.getStorageToken();
               //User perform actions on document
               // Open the document using its repository ID
               BinaryView docBinaryView = (BinaryView)docInstance.getView(OutputFormatType.PDF);
               //Parameterize the response
               response.setContentType("application/pdf");
               response.setHeader("Content-Type", "application/pdf");
               response.setDateHeader("expires", 0);
               //output the binary stream via the response object
               docBinaryView.getContent(response.getOutputStream());
               System.out.println("Document converted");
               //To view an individual report, call Report.getView
               //Open the first version of the document and save.
               DocumentInstance docToSave = repEngines.getDocumentFromStorageToken(docToken);
               docToSave.save();
               System.out.println("Document converted");
               // Close of the reportEngine
               repEngines.close();
               response.sendRedirect("home.html");
          } else
               response.sendRedirect("index.jsp");
     } catch (SDKException mySDKExept) {
          response.sendRedirect("index.jsp");
     Opening documents:
     //To view an entire document, call DocumentInstance.getView
%>
Edited by: Diego XMunch on Mar 10, 2011 3:41 PM

But I have this error:
com.businessobjects.rebean.wi.ServerException: Error interno al llamar a la API 'openDocumentMDP'. (Error: ERR_WIS_30270)
     at com.businessobjects.rebean.wi.occa.OccaDocumentComAdapter.checkOpenDocError(Unknown Source)
     at com.businessobjects.rebean.wi.occa.OccaDocumentComAdapter.openDocument(Unknown Source)
     at com.businessobjects.rebean.occa.OccaReportEngineComAdapter.openDocument(Unknown Source)
     at com.businessobjects.rebean.wi.ReportEngineImpl.openDocument(Unknown Source)
     at com.businessobjects.rebean.wi.occa.WebiReportEngine.openDocument(Unknown Source)
     at org.apache.jsp.login_jsp._jspService(login_jsp.java:163)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Thread.java:619)

Similar Messages

  • Please help me out with some fundamentals in BW

    Hello,
    Please guide me regarding the below mentioned questions.
    1. what is the key date in query designer.
    2. when do we perform attribute change run
        like once the master data is loaded then we perform attribute change run and load the transactional data ?
    3.what is the disadvantage of using aggregates.
    4. what is full repair options?
    please help me out with these questions

    HI,
    Repair full request :
    If you indicate a request in full update mode as a repair request, then it is able to be updated in all data targets. This is also true if they already contain data from initial runs or deltas for this DataSource / source system combination, and they have overlapping selections.
    Consequently, a repair request can be updated at any time without checking each ODS object. The system supports loading in an ODS object by using the repair request without having to check the data for overlapping or request sequencing. This is because you can also delete selectively without checking an ODS object.
    Posting such requests can lead to duplicate data records in the data target.
    Hierarchy/attribute change run after loading master data;
    When hierarchies or attributes of characteristics change, the aggregate affected by the change can be adjusted manually or calculated automatically in process chains.
    Aggregates:
    Aggregates are materialized, pre-aggregated views on InfoCube fact table data. They are independent structures where summary data is stored within separate transparent InfoCubes. The purpose of aggregates is purely to accelerate the response time of queries by reducing the amount of data that must be read in the database for a given query navigation step. In the best case, the records presented in the report will exactly match the records that were read from the database.
    Aggregates can only be defined on basic InfoCubes for dimension characteristics, navigational attributes (time-dependent and time-independent) and on hierarchy levels (for time-dependent and time-independent hierarchy structures). Aggregates may not be created on ODS objects, MultiProviders or Remote Cubes.
    Queries may be automatically split up into several subqueries, e.g for individual restricted key figures (restricted key figures sales 2001 and sales 2002). Each subquery can use one aggregate; hence, one query can involve several aggregates.
    If an aggregate has less than 15 components, BW 3.x puts each component automatically into a separate dimension that will be marked as “line item” (except package and unit dimension); these aggregates are called flat aggregates. Hence, dimension tables are omitted and SID tables referenced directly.  Flat aggregates can be rolled up on the DB server (i.e., without loading data into the application server). This accelerates the roll up (hence the upload) process.
    Disadvantage : The more aggregates exist, the more time-consuming is the roll-up process and thus the data loading process; the change run is also affected.
    Hope this info Helps.
    Thanks,Ramoji.

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT4972 the apps weve downloaded are not working.  please help,  extremely frustrated with our ipod 4

    the apps we have downloaded are not working,  please help,  extremely frustrated with our ipod 4

    See my previous reply for for the apps closing.
    For the wifi problem:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect OK before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network       
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Firefox is not able load any websites but others programs can. i tried everything given in the support forum but nothing worked out. so can you please help me out with it?

    firefox is not able to load any websites... i tried everything given in the support forum under the topic firefox is not able to load any websites but other programs can.. but still i am facing the same problem. so please help me out with this issue!!

    firefox is not able to load any websites... i tried everything given in the support forum under the topic firefox is not able to load any websites but other programs can.. but still i am facing the same problem. so please help me out with this issue!!

  • Please help me out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

  • How to access the activities created by an enduser especially when the enduser has left the organization?Please help me out with the possible solution

    How to access the activities created by an end user especially when the end user has left the organization?Please help me out with the possible solution

    Hi Ramesh,
    In the web UI we have business role IC_manger where you can search the activities based on employee responsible and you can use business transaction assignment functionality to assign those activities to any  other end user or team.
    Else you can also use Agent inbox functionality if you have configure the agent inbox for those activity.
    Hope this helps solving your query

  • My apple account is disabled, please help me deal with as soon as possible!

    My apple account is disabled, please help me deal with as soon as possible!

    Change the password, but did not receive the letter to change the password

  • Report Engine SDK sample code questions

    Hello,
    I've been able to view a boxi report in an iframe via the Enterprise SDK by modifying the sample code in the HowToViewWebiReports_VB example.
    I'm not totally happy with the way that's working, so I'm looking at using the Report Engine SDK, although I understand it's performance and scalability isn't quite as good as the Enterprise SDK.
    I'm a VB.NET guy, not a C# guy, and I'm not clear on how the wssdk_net2.0_portal_sample_12.0_en example is supposed to work.
    I don't have one and my CMS server is running Tomcat, not IIS so there's not going to be an ASP.NET web service running there.
    In the dsws.config for the wssdk_net2.0_portal_sample_12.0_en example I put the name of the CMS server, but it's looking for a web service at http://cmsservername:8080/dswsbobje/services/Session, but I get a 404 when i try to hit that. 
    I'm not familiar with Tomcat, but in searching around on the server, I see a dswsbobje directory under the webapps in my Tomcat installation, but I don't see a services or a Session folder underneath that.  In the dswsbobje folder I see the following folders:
    BOAR-INF
    META-INF
    WEB-INF
    xsd
    Is there something else that needs to be installed on the Tomcat server to get the web service running?
    -Eric

    It looks like I have something there.  When I launch launch http://servername:8080/dswsbobje,  I see:
    Apache-AXIS
    Hello! Welcome to Apache-Axis.
    What do you want to do today?
    Validate the local installation's configuration
    see below if this does not work.
    To enable the disabled features, uncomment the appropriate declarations in WEB-INF/web.xml in the webapplication and restart it.
    Validating Axis
    If the "happyaxis" validation page displays an exception instead of a status page, the likely cause is that you have multiple XML parsers in your classpath. Clean up your classpath by eliminating extraneous parsers.
    I clicked on the "Validate" link and I see:
    Axis Happiness Page
    Examining webapp configuration
    QaaWS Configuration
    QaaWS Servlet is not valid.
    ErrorServer servername not found or server may be down
    See Web Application log to get more info or read QaaWS v2 documentation starting with section
    Perhaps this environment needs some additional configuration?

  • Report Engine SDK Performance

    What are the recommended settings for businessobjects xI (version 11.5)
    Are there any tips to improve performance and reliability of the Report Engine SDK?
    It is very slow. We are using a Java client to interact with the dswsbobje libraries.
    Calls to " reportEngine.getDocumentInformation" are not consistently working even from the same program.
    We supply the prompt info parameters to generate the report.
    It works for the first 3 times, then fails a couple of times, and then works again.
    Sometimes a report load in 3 seconds, and other times it loads in 30 seconds or not at all.

    Why not open a case with SAP Support?
    Sincerely,
    Ted Ueda

  • Report Engine SDK: CommunicationException when accessing IReportEngine members

    Hello,
    I have installed BOXI 3.1 SP3, including the .NET SDK, and I am trying to use the Report Engine SDK part to navigate through a WebIntelligence document (analyse its structure, etc.), via a Console App.
    I built my console app targeting .NET framework 3.5, and compiled it in 32 bits mode (x86 platform). I can access the standard SDK without any problem and log in to the CMS then retrieve any InfoObject instances from my enterprise server.
    My problem occurs when I try to access my BusinessObjects.ReportEngine.IReportEngine instance's members. Sample lines of code:
    SessionMgr sessionManager = new SessionMgr();
    EnterpriseSession session = sessionManager.Logon(login, password, cmsName, authType);
    InfoStore infoStore = (InfoStore)session.GetService("InfoStore");
    UserInfo userInfos = session.UserInfo;
    string logonToken = session.LogonTokenMgr.CreateWCAToken("", 1, -1);
    ReportEngines reportEngines = new ReportEngines(logonToken);
    IReportEngine reportEngine = (IReportEngine)reportEngines.getService(ReportEngineType.WI_ReportEngine);
    bool test = reportEngine.IsReady; // or any other member of reportEngine, like reportEngine.OpenDocument(...)
    An exception of type 'BusinessObjects.ReportEngine.CommunicationException' occured.
    Message:
    The Web Intelligence server could not be reached. Contact your Business Objects administrator. (Error: RWI 00236), Session Init Failure,
    Stacktrace:
       à BusinessObjects.ReportEngine.WI.Internal.Server.OCCA.OCCAServerStub.Connect(Boolean forceNewInstance)
       à BusinessObjects.ReportEngine.WI.Internal.Server.OCCA.OCCAServerStub..ctor(OCCAServerConnection connection, Boolean forceNewInstance)
       à BusinessObjects.ReportEngine.WI.Internal.Server.OCCA.OCCAServerConnection.get_Stub()
       à BusinessObjects.ReportEngine.WI.Internal.Server.ServerCaller.SetupStub()
       à BusinessObjects.ReportEngine.WI.Internal.Server.ServerCaller..ctor(IServerSession session, IServerProtocol protocol, IServerConnectionInfo info)
       à BusinessObjects.ReportEngine.WI.Internal.WIDocumentInstance..ctor(WIReportEngine engine, Int32 documentId, OpenDocumentParameters parameters)
       à BusinessObjects.ReportEngine.WI.Internal.WIDocumentInstance..ctor(WIReportEngine engine, Int32 documentId)
       à BusinessObjects.ReportEngine.WI.Internal.WIReportEngine.GetAnyServerInstance()
       à BusinessObjects.ReportEngine.WI.Internal.WIReportEngine.get_IsReady()
    What do you suggest?

    Hi,
    Enterprise / ReportEngine SDK is not supported / tested / compatible with desktop / console apps.
    Could you try the same logic with a web services sdk, as WebServices SDk is the only SDK which could be used to develop thick client apps.
    - Bhushan
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Is it possible to use the JAVA Report Engine SDK to modify DESKI reports?

    Post Author: Nadine
    CA Forum: JAVA
    Hi, is it possible to add a complex filter to a DESKI report using the JAVA report engine sdk?
    In the developer tutorials for this API, I've only found references to WEBI in terms of modifying reports, though it seems to be possible to view DESKI reports with this sdk.
    I am a bit confused in terms of the scope of this API and how I would use it in regard to DESKI.
    Many thanks for any suggestions!
    Nadine

    Post Author: Ted Ueda
    CA Forum: JAVA
    Current (XI R2) version of ReportEngine API only supports refreshing/viewing functionality for Desktop Intelligence documents.  Document modification/creation is only supported with Web Intelligence documents.  Queries aren't modifiable for Deski using ReportEngine API - you can only do so using Desktop Intelligence Reporter SDK, which is COM based.Sincerely,Ted Ueda

  • Passing dynamic prompt value using Report Engine SDK

    Hello Experts,
    I have created a webi report which contains prompt. Using SDK, I would like to catch the value of prompt which is selected by a user at runtime.
    e.g. If prompt contains values year, quarter, month, etc and user has selected value of u2018Quarteru2019 at run time, then I would like to catch that value using Report Engine SDK.
    I tried to implement prompt.getCurrentValues(). However that is not working.
    Can someone please help me to figure out the way to catch this dynamic prompt value using Report Engine SDK?
    Thanks,
    John

    Where is the prompt values being set, and where are you trying to catch it?
    Workflow description is missing here.
    Sincerely,
    Ted Ueda

  • Report Engine SDK - Rbean usage in standalone java application

    Post Author: Berndb
    CA Forum: JAVA
    In BOXI the rebean sdk is available in the Report Engine SDK.
    I remember that in the 6.5 world one could use RBEAN interface in a standalone java application.
    Is this still possible in BOXI R2?
    If yes can you supply a sample classpath which shows all libraries that needs to be assigned.
    Thanks in advance.
    bernd

    Post Author: datahog
    CA Forum: JAVA
    Ted's right, but for fun, take what you need from:
    <installation drive>:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\lib
    and de-reference what's not needed when your project's done, but be careful.
    I've actually done some standalone Swing-based webi report renderers using https://xhtmlrenderer.dev.java.net/ + docHTMLView.getStringpart + TagSoup

  • BO edge 3.1 howto Report Engine SDK sample

    Hello,
    I'm trying to install any report engine SDK sample on a BO Edge 3.1 installation.
    The webserver is WACS (Web Application Container Server).
    I don't know how to set up a web application that uses the SDK, and I cannot find any useful documentation.
    Has anyone done this?

    Hello,
    Crystal and Xcelsius are client tools so you don't need to install them on the server.
    It might be useful to install them on it when you are troubleshooting issues which might be related to network (firewall, load balancer,...) but otherwise you can keep them on the clients machine.
    The client machines connect to the server by specifying the server details (CMS name and valid user account) when you try to export the reports to the repository.
    Regards,
    Philippe

Maybe you are looking for

  • Using Multiple I-pods on one computer

    Hi. I have had my 4th Gen i-pod for about a year now and I love it but im upgrading to the video one now. The thing is, im going to give my old one to my younger brother and my little sister is also getting an i-pod nano for Christmas. Will we all be

  • Import Comments from PDF to new PDF

    Acrobat Pro 8 - Comments (lines & Text boxes) added to a previous PDF Import rotated 90 degrees. These PDF's are design drawings with comments. The new file is merely an updated version of the design. Need COMMENTS to Import aligned properly.

  • OSX 10.5.1

    I have just upgraded from an eMac,running OSX 10.4.11 to an iMac running OSX 10.5.1. On trying to transfer pictures from my camera to my iMac the iPhoto icon briefly appears in the dock and then quickly disappears. The same thing happens when I try t

  • Can i use my Late-2013 iMac as a monitor for PS4?

    Hi There, I want to use my Thunderbolt Mac as a monitor for PS4. I searched up forums but couldn't find an exact answer for my question. Can you help me? Thank you.

  • SSM - Incorrect IF-MIB Status

    I noticed that something strange from the MIB status for my AIP-SSM module. SSM is running on version Version 7.0(8)E4 The physical interface is up but SNMP information is showing it as down. # show interfaces brief CC   Interface            Sensing