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?

Similar Messages

  • 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

  • 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.

  • 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

  • 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)

  • 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

  • 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

  • J2EE Tutorial sample codes question

    Hi there,
    I just started to catchup some tutorials' sample codes using J2EE tutorial, what happened when i tried to compile the first example called "Converter" EJB, using the command:
    ant converteri get all the files compiled except the ConverterClient.java which leads to some errors:
    ConverterClient.java:15: '.' expected
    import Converter;
    ^
    ConverterClient.java:16: '.' expected
    import ConverterHome;
    ^
    ConverterClient.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome home =
    ^
    ConverterClient.java:27: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ^
    ConverterClient.java:28: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome.class);
    ^
    ConverterClient.java:30: cannot resolve symbol
    symbol : class Converter
    location: class ConverterClient
    Converter currencyConverter = home.create();
    ^
    6 errors
    whats wrong actually? I also tried to put the ConverterClient.java into another directory, after compiled the rest, then i copied the file into the build folder and compile it manually, yet still getting this error. Please help!
    Thanks
    Neo

    I think you didn't read my question properly, i had said that i manually copied the ConverterClient to the other class together as it needs;
    This is the code for ConverterClient:
    * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    import Converter;
    import ConverterHome;
    public class ConverterClient {
       public static void main(String[] args) {
           try {
               Context initial = new InitialContext();
               Context myEnv = (Context)initial.lookup("java:comp/env");
               Object objref = myEnv.lookup("ejb/SimpleConverter");
               ConverterHome home =
                   (ConverterHome)PortableRemoteObject.narrow(objref,
                                                ConverterHome.class);
               Converter currencyConverter = home.create();
               BigDecimal param = new BigDecimal ("100.00");
               BigDecimal amount = currencyConverter.dollarToYen(param);
               System.out.println(amount);
               amount = currencyConverter.yenToEuro(param);
               System.out.println(amount);
               System.exit(0);
           } catch (Exception ex) {
               System.err.println("Caught an unexpected exception!");
               ex.printStackTrace();
    } also please try the tutorial before answering...TQ :D

  • Please add Forms/Reports in the Sample Code section

    Hi
    When we click on the Breadcrumb menu->Sample code
    http://www.oracle.com/technology/sample_code/index.html
    In the Sample Applications—Development Tools there is no link for
    Forms and Reports product. Please add these links there:
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    http://www.oracle.com/technology/sample_code/products/reports/index.html

    Good point; we have made these additions.
    Cheers, OTN

  • Not able to use Visual studio 2010 editor intelligence while running SDK sample code ?

    whenevr i start sdk sample project in visual studio i can build it ,debug it ,run it but the problem is that VS 2010 editor showing lots of red lines under many lines of code which on Mouse hover show some kind of error(mostly _____ is undefined) moreover i am not able to use intelligence feature of VS editor and i have to check reference of SDK everey time .what is the solution to this problem .

    1. Create environment variable INDESIGN_SDK_DIR with path to root folder of your SDK
    e.x  INDESIGN_SDK_DIR = "C:\SDK\InDesignCS6SDK"
    2. In your project add this to project settings:
    "VSProject"->"Proporties"->"Configuration Proporties"->"VC++ Directories"->"Executable Directories" add:
    $(INDESIGN_SDK_DIR)\devtools\bin
    "VSProject"->"Proporties"->"Configuration Proporties"->"C++"->"General"->"Additional Include Directories" add:
    $(INDESIGN_SDK_DIR)\source\precomp\msvc;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\xmedia;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\preflight;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\ui;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\tables;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\text;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\graphics;
    $(INDESIGN_SDK_DIR)\source\public\libs\widgetbin\includes;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\workgroup;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\interactive;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\interactive\ui;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\colormgmt;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\utils;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\incopy;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\layout;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\architecture;
    $(INDESIGN_SDK_DIR)\source\public\interfaces\cjk;
    $(INDESIGN_SDK_DIR)\source\precomp\common;
    $(INDESIGN_SDK_DIR)\source\public\includes;
    $(INDESIGN_SDK_DIR)\source\public\libs\publiclib\plugins;
    $(INDESIGN_SDK_DIR)\source\public\libs\publiclib\files;
    $(INDESIGN_SDK_DIR)\source\public\libs\publiclib\objectmodel;
    $(INDESIGN_SDK_DIR)\external\asl\boost_libraries;
    $(INDESIGN_SDK_DIR)\source\sdksamples\common;
    $(INDESIGN_SDK_DIR)\external\afl\includes
    "VSProject"->"Proporties"->"Configuration Proporties"->"Linker"->"General"->"Additional Library Directories" add:
    $(INDESIGN_SDK_DIR)\build\win\objr;
    $(INDESIGN_SDK_DIR)\external\afl\libs\win\release;
    $(INDESIGN_SDK_DIR)\external\icu\libs\win\release
    "VSProject"->"Proporties"->"Configuration Proporties"->"Linker"->"Input"->"Additional Dependencies" add:
    PMRuntime.lib;
    Public.lib;
    WidgetBin.lib;
    AFL.lib;

  • Missing "Crash Landing" iPhone SDK sample code.

    Ok, I'm at the phase in my project where I need to start integrating the audio. I've been told , and theres plenty of references on the net, to try and base off a piece of code off the "Crash Landing" sample code.
    Google tells me it used to be on the Iphone dev page on apples site, but there is no reference to the sample code on Apples site and apples search engine comes up blank.
    Has this been removed? If it has, is there anywhere else that features examples of using the OpenAL architecture. I realise there is a new architecture for audio introduced, but for various reasons, we can't use it.

    Hi i need reference from the crash landing code for my own development...it was there on my machin some months back and i hve also installed on my iphone also using xcode...but i recently discovered the sample code is not there on my machine as mistakenly i have removed it from my machine. i need it so if someone can provide me the sample code i can easily over come the issue in my development as it is been resolve in the crash landing. please if i can get the code it will be of great help.

  • Bug in SeismicXML iPhone SDK sample code

    I'm writing an app based on SeismicXML for the XML parsing code, and it turns out there's a bug in the SeismicXML parser. The last item always seems to end up not getting saved to the list. This bug becomes evident when you change:
    self.earthquakeLocationLabel.text = newQuake.location;
    to
    self.earthquakeLocationLabel.text = newQuake.description;
    in TableViewCell.m.
    I've banged my head into this in my own app only to test out the upstream sample code and find out that it has the same error. There's something about the last item that it parses that causes a problem.
    I'm very new to Objective C but this feels like some sort of object initialization/retention/reuse problem...any pointers?

    I found two reasons why this is not working. Both found in didStartElement(...)
    #1
    if (parsedEarthquakesCounter >= MAX_EARTHQUAKES) {
    parser abortParsing;
    This is premature. If MAX_EARTHQUAKES is set to 5, this condition will be true for any start element within that fifth entry.
    #2
    The call to addToEarthquakeList()
    This is again premature. Since addToEarthquakeList also reloads the displayed table view, the fifth and last entry will never be displayed. The table is reloaded before any data is placed within the Earthquake object for that entry.
    Solution
    Remove both the if test case and function call above from didStartElement(...)
    In didEndElement(...) add the case
    else if (elementName isEqualToString:@"entry") {
    //insert call to addToEarthquakeList here
    //test for MAX_EARTHQUAKES HERE
    }

  • SDK sample code for Changing name of Exported file thru Webi schedule

    Hi experts,
    I am wanting to know if someone has got any sample Java SDK code which I can use to login to FTP and rename the pdf files generated from webi schedule script and append customised date format towards the end.

    Hi Prabhat,
    For online samples
    https://www.sdn.sap.com/irj/boc/samples
    For detalied descripation on BO SDK.
    https://www.sdn.sap.com/irj/boc/sdklibrary
    For BOE SDK guide.
    http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_java_dg_12_en.zip
    This would give you complete information on scheduling.
    For RE SDK guide.
    http://help.sap.com/businessobject/product_guides/boexir31/en/resdk_java_dg_12_en.zip
    This would give you information on how deal with Desktop intelligence report and Web intelligence report.

  • IPhone SDK - Sample code to download a file in a thread

    I am looking for a starting point to implement a download manager. My requirements are simple.
    I want to show a UIProgressView in a view controller and update it as i download file(s) from the internet. The view will have a cancel button, so the view cannot block on downloading the files. The cancel should cancel the download thread in such a way that the thread can cleanup if required.
    To achieve this i guess i will have to download the file(s) in a separate thread and then figure out a way to update the progress bar in the UI thread based on the bytes downloaded from the web.
    Can someone point me to code sample which demonstrates this interaction OR help me with their suggestions?
    Thanks in advnace,
    Shiva

    NSURLRequest is asynchronous by default, so really all you need to do is prepare your NSURLRequests, fire them all off, and then in the delegate you can update the progress bar as each of them returns.
    I'd suggest just having the progress bar update based on how many requests have completed out of the full set, rather than based on the number of bytes downloaded. NSURLResponse doesn't give you byte-by-byte callbacks, so it's quite hard to work out how far along an individual request has progressed.
    Read the URL Loading Scheme document in the API - it's full of example code that you can use.

Maybe you are looking for

  • Report of total invoice per area

    Dear Experts, I am trying to make a report using query generator. The report is total invoice per area but I am still failed. here is the query I made: elect distinct OTER.descript, 'invoice per teritory' = (select distinct sum(a.DocTotal) from oinv

  • ITunes v9.1 Import MP3 Custom Settings VBR Quality?

    The pulldown options are: lowest, low, medium low, medium, medium high, high, highest What do the options of VBR Quality translate to? How do they relate to LAME Quality settings? Thanks in advance...

  • Cs4, publishing to fp9 as2, problem with mask

    hello; I have a tf on the stage, with character embedding; the tf is masked; I have publish setting on flash player 9, AS2; when I play swf in flash player, the tf is not visible; if I publish to fp7, as2, no problem; any thoughts? thanks, Shannon

  • Re: Windows 7 Upgrade fulfillment discussion

    I posted a message and it magically disappeared.  Wow, the mods are doing a great job by censoring messages and I wish, really wish, that they worked in the fulfillment center so that we would all have got our supposedly "free" Windows 7 upgrades by

  • How do I restore backed up info

    My husband bought a brand new iphone.  I mistakenly backed up my phone info to his new phone when i was setting it up and now he has all my texts and contacts and his phone shows up under my name on call display.  He has used the phone for about  wee