Diamond Developer Library Code Errror

The following page :
http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/RE_SDK/resdk_dg_doc/doc/resdk_java_CustoWebI_dg/ewucw_083.html
Has the following code block
IInfoStore iStore =
        (IInfoStore)session.getAttribute("InfoStore");
ReportEngines webiRepEngines =
        (ReportEngine)session.getAttribute("ReportEngines");
ReportEngine webiRepEngine = webiRepEngines.getService(
        ReportEngineType.WI_REPORT_ENGINE);
IInfoObjects universes = getUniverses(iStore, iID);
//Get the first universe
IInfoObject universe = (IInfoObject)universes.get(0);
//then create the blank document
DocumentInstance doc = webiRepEngine.newDocument(universe.getID());
ReportEngine.newDocument takes a String not an Int.  InfoObject.getID returns an int but Report engine wants a String as seen here :
http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/RE_SDK/resdk_java_doc/doc/resdk_java_apiRef/com/businessobjects/rebean/wi/ReportEngine.html

Thanks so much for helping with this, Nubz!
Joerg's instructions are excellent. I refer to them often and I've had them bookmarked since I found Apple Discussions last year. The new Code section is great!! Very clear!
Now we just need to find a way to get users to that page. Our problem has never been with users who are interested enough in Apple Discussions to visit the Tips Library. The unformatted code is coming from first-time users--not necessarily novice coders, but programmers of all skill levels who aren't coming here to learn about the forums or relate to the community. These folks are focused on their current project, may have found no answers anywhere else, and arrive here with tunnel vision. Often there's a language problem as well.
The newly arrived OP will often start the thread with a page of unformatted code. Those of us with eyes used to filling in the missing brackets, indentation etc. can sometimes decypher the mess, but usually we need to give formatting instructions and ask the OP to repost. The frequency of this scenario has been increasing. Lately I've been posting those instructions almost once every day.
Of course that's a good sign! We've been giving good service down there and the number of newcomers seems to be reflecting that. A big percentage have turned into regulars, so I think we have a very healthy forum. It's just the formatting cycle gets old, and the time and bytes add up too.
My suggestion is this:
One yellow moderator announcement that stays in the first position on the topic page for both dev forums. The subject line is:
To format code: Paste your code here
The user doesn't even need to open the message. Only developers will see this. No change to the page header is needed. If the user does open the message, a link will be provided to Joerg's tips.
- Ray

Similar Messages

  • Developing a code with multiple GET and POST requests

    hi all,
    i have a requirement to upload a video file to a server and i need your help to develop the code using java .Basically it has several steps like
    1) A GET request should be made to the server with parameters like file name,size etc
    2) The response from the server is an XML document which contains a list of URLs to upload the file to.
    3) Get the URL from the XML and POSTyour file to the URLs listed in response.
    4) After POSTing the video file to the url(s) you received in the Create Video request, a GET request should be made to this URL to signal that a video has finished uploading in its entirety and check for the response code to see if the file is uploaded
    5) If an upload cannot be completed signal that has uplaod has failed by by making another GET request to the server
    I am not sure how can i implement all these steps in one single java program. Can someone please advise
    Thank You

    ForumKid2 wrote:
    Although you could technically do it all in one Java class, it makes no sense.Agreed 100%. But the question was how to do it in one program, which of course could contain numerous classes. (Unless the OP is confused about what a program is...)

  • Looking help for developing labview code [Urgent]

    Hi,
    I need help in developing labview code. I am new to labview and will appreciate if someone can help me in this matter. I need to control the intensity of AC load (halogen lamp with 2kW,230V,50Hz) using Labview and Arduino. But my project using interrupt in Arduino, so it is not possible to use Labview Interface For Arduino(LIFA).  I searched and it might be possible to use VISA serial in this matter. Attached is the circuit and the code of Arduino. Someone who is expert in this matter can help me?
    The concept of my project is almost same with https://www.youtube.com/watch?v=oeVJ5bs6E8M&feature=youtu.be
    Solved!
    Go to Solution.
    Attachments:
    Zero Cross Circuit.docx ‏203 KB
    Triggering Circuit.docx ‏48 KB
    Coding for Arduino.txt ‏7 KB

    Hi,
    You will find all information you need and LabVIEW VI examples on the LabVIEW Interface for Arduino
    LabVIEW Interface for Arduino
    Regards,
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Can some body help me to develop labview code for generating pulse to drive ac servo motor

    can some body help me to develop labview code for generating pulse to drive ac servo motor... i am using NI 9401 card ....tnx

    Driving an AC servo motor would (I missed AC on the previous msg) requires some complex hardware. This is generally done by drivers specifically designed for this purpose. I doubt you will be able to accomplish this with the hardware you currently have and it might be cheaper to just buy a driver for it and control the speed through the driver.

  • Is there any tool for developing Postscript code ?

    Hi Friends,
    Is there any tool for developing Postscript code ? (or)
    Is there any IDE for Postscript ? (or)
    Thanks & Regards,
    Navaneeth Sivappan

    Hi Navaneeth,
    > is there any tool for developing Postscript code ?
    An interpreter (GS or Dist), an ascii text editor and your PS skills ;-)
    > is there any IDE for Postscript ?
    Take a look in this Sourceforge project...
    http://sourceforge.net/projects/wxghostscript/
    ...is a Ghostscript debugger.
    MaRC anToni Malagarriga i Picas
    T·(34)938721642 | (34)667517069
    (][ www.femfum.com
    PostScript&PDF Tool Developers
    Desenvolupadors d'Eines PostScript i PDF

  • Reference to library code

    Hi all.
    I am using the new Sunstudio. It works great!
    I would like put the cursor on an identifier, press the control key, and go to the declaration of that identifier. I can do that, within my own application. But I would also like to follow the reference out to library code.
    In an attempt, I created a project for one of the libraries involved. I could follow a link within the library, but not to the library from my application. Following the help page "Creating Dependencies Between Projects," I tried to link the two projects together, but my Project Properties dialog has no linker node.
    This is probably because my projects use established makefiles, and doesn't let the studio create the makefiles.
    Is there some way to tell the IDE to check another project to resolve names?
    Thanks,
    Rick

    Rick,
    If your project is created as "Project from existent code", then you can do the following: go to project properties -> "Code Assistance" -> "C++ Compiler" (or "C Compiler") -> "General" and set correct Include Directories.
    You can also set this property for individual files or folders if this is more appropriate.
    There is also an automatic way of configuring all this stuff via "Configure Code Assistance" menu item (in Project Explorer context menu). To use it, you should build your project with debug information (for Sun Studio compilers just -g option is sufficient, for GNU compilers you'll need -g3 -gdwarf-2).

  • Apple iOS Developer Library for beginner?

    Is Apple iOS Developer Library has the best resources for beginner with no programming knowledge to start with?

    See these...
    iOS Human Interface Guidelines
    iOS Starting Point
    App Development Overview
    ...also...
    Stanford CS193P iOS 5: iTunes U  |  Assignments 
    Stanford CS193P iOS 4: iTunes U  |  Assignments
    ...and...
    iPhone Developer Beginner Resource Guide

  • CastClassException in WSDP library code.

    I experience the following exception:
    Exception in thread "main" java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
    at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:248)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:341)
    at com.mycompany.webservice.CheckAuthorizationServicePort_Stub.createCheckAuthorization(CheckAuthorizationServicePort_Stub.java:127)
    As you see, the exception occurs down in the Sun library code supporting SOAP.
    I am using the jars from glassfish v2 (javaee.jar and appserv-ws.jar) and JVM 1.6.0.
    I am trying to create a client program that will invoke an established web service. I used a reference to an established WSDL when I used the 'wscompile' from the glassfish v2 distribution (wscompile version JAX-RPC Standard Implementation (1.1.3, build R2) ) to generate code for the client of the web service.
    I created the client program ... compiled it. When I run it I get this exception.
    What can I - or should I - do.
    Thanks.

    I recently upgraded to Java 6 and got this error when trying to run my applet from eclipse (appletviewer). I downloaded the latest saaj files and the problem went away when running from appletviewer. However, the problem still happens when the applet is invoked via a browser (IE6 and Firefox). Ideas?

  • Where to find files needed to compile Borland C++ Builder project found in the Developer Exchange code library

    I am attempting to build the BCB project BCB4Graph, which uses ComponentWorks ActiveX and is found in the Develper Exchange code library, using BCB 5.0. I get four "Unable to find package import" error dialogs during the build, 2 for DS50.BPI and 2 for VCLMID50.BPI. These files do not exist in my installation of BCB 5.0. If anyone knows what/where they are I'd appreciate some help. Thanks

    Is there any difference between VC++ builder and Boland C++ builder? We have tested the sample using the VC++ builder.
    Which XDK version do you use?

  • Making PLL library code amendments effective in Reports 10G

    What is necessary to cause a change to a PLL library program unit that is shared by many reports effective in all the reports?
    I have read:
    *[http://www.tek-tips.com/viewthread.cfm?qid=1021116&page=13|http://www.tek-tips.com/viewthread.cfm?qid=1021116&page=13] +"to make changes available you need not only to save the changes, but to delete and reattach it in the Attached Libraries node."*
    Is this correct?
    If so, doesn't this make PLLs pretty useless for Reports common code ?
    I am using Reports 10G.
    Jonathan

    You can have just pll files in the directory, but Reports has to compile the library every time you use it. Therefore it is better to deploy plx files.
    When you deploy at a customers site, it is always better to give them the plx files, since they cannot change the code that way.
    If you get an error message deploying the plx, it probably means that the database where you developed your pll and the database where you deploy the plx are not the same. See if there are any differences (in table structure, stored procedures etc.). Maybe you have hardcoded schema owner or something in you pll.

  • Developer's code reviews and varsion control

    Hi,
    Suppose I am planning to hire 10 apex developers to work on some internet project.
    How can I organize the code review process?
    How can I see what code a developer has changed and what exactly he's changed in the code?
    How can I see the code before it has been changed?
    How to see the properties of any object is changed and by whom?
    Is it possible to use any control version system with apex development process?
    Thanks.

    Joel_C wrote:
    I agree with your approach - delegating to packages is definitely a sensible method. However, I'm interested to know the degree to which you delegate.It depends... !
    For example, do you explicitly reference page items in your packages (perhaps via the 'V' function and APEX_UTIL.SET_SESSION_STATE calls), or do you tend to pass them via parameterized procedure calls? In which case, how do you deal with multiple page items (by which I mean, more than 3 or 4).If there is just a parameter or two being passed from the page, I tend to pass them as parameters from the page process. Very often, all you need to pass is the primary key (ID) of the entity you are working on. So I would write code like this in a page process:
    begin
      foo_pkg.delete_foo (:p10_foo_id);
    end;Other times, you may need to get the values of several (or all) items on a page. This would typically be when you want to write your own update logic instead of relying on the built-in Automatic Row Processing. Of course this is more work, but you typically only do this for the important entities/pages anyway, so it's worth it for the extra control.
    The question then is, should I write something like this:
    begin
      foo_pkg.update_foo (:p10_foo_id, :p10_foo_name, :p10_foo_description, :p10_foo_date, :p10_foo_remarks, :p10_foo_link);
    end;or just do
    begin
      foo_pkg.update_foo;
    end;and use V('P10_FOO_ID') or apex_util.get_session_state ('P10_FOO_ID') inside my packaged PL/SQL code to retrieve the item values?
    I've used both approaches, but I prefer to use the second option if I know (or suspect) that there is going to be additional logic (ie, "if X then get value of item Y, otherwise get value of item Z"). Having this kind of stuff in a package means that it can be changed easily, without having to redeploy the Apex application.
    Said another way, I don't want any "IF" statements in Page Process code.
    I'm interested in this, relating to my previous posting about testing - it's kind of difficult to unit test Apex application elements unless you fully modularize your code but there has to be a balance between modular, reusable code and page-specific, item-level code.My approach is two use two layers of packages. Let's say we are building a system that handles invoices. I would create a package called INVOICE_PKG that contains functions such as new_invoice and get_invoice, and procedures such as delete_invoice and set_invoice. This is your "core API" for working with invoices. This package is never called by the client (the Apex application, or a Java program, or whatever) directly.
    I then create another package, INVOICE_WEB_PKG, which exposes the functions and procedures that the client needs to call. This package just calls INVOICE_PKG to do the actual work. In this outer package, I can decide whether I want to use input parameters or just get the values from Apex session state.
    So a page process on a page with lots of page items could look like this:
    begin
      invoice_web_pkg.set_invoice;
    end;And the code inside INVOICE_WEB_PKG could look like this:
    procedure set_invoice
    as
      l_invoice invoice%rowtype;
    begin
      l_invoice.invoice_id := apex_util.get_session_state ('P10_INVOICE_ID');
      l_invoice.invoice_date := apex_util.get_session_state ('P10_INVOICE_DATE');
      -- and so on for many more items
      invoice_pkg.set_invoice (l_invoice);
    end;BTW, if you download my Alexandria Library for PL/SQL (http://code.google.com/p/plsql-utils/), you will find an APEX_UTIL_PKG that has a couple of wrapper functions to get and set page items (strings, numbers, dates).
    By having two layers of packages, you can write unit tests (and other non-GUI code) against the inner package, and leave all the GUI/Apex-specific stuff in the outer package. For example, any code that formats content with HTML or prints anything to the browser (using HTP.P) should go in the outer package.
    - Morten
    http://ora-00001.blogspot.com

  • Develop/Library Display Differences

    Hi All
    First post ever so forgive me if this is an obvious one...I'm using Lightroom 2.1 on windows and find that sometimes when having used the Sharpening & Masking tools that the changes are not reflected in the Develop Module but are when I swap over to the Library module...
    Any ideas anyone?
    Many thanks!!

    Develop only shows sharpening and noise reduction when you are zoomed in at 1:1. The reason for this is that you should only use those tools to sharpen at 1:1 as the sharpening in Develop is a capture sharpening and is ONLY meant to compensate for loss of sharpness because of the demosaic and some lens blur. For output sharpening you should use the sharpening tools in export, Print, and Web.

  • Is it possible to use "c/c++" developed library in java?

    hello all
    i have a convertor. which convert wav to mp3 and it is developed using "c". now i want to use that in java. is it possible? if possible then how?
    i am working in a project where the project (convertor) will be in server and client will access that from the client pc within a network. now i want to use that convertor which is developed using "c".
    anyone can tell me how can i do that??
    thanks
    bashar

    The previous answers are correct - you can do what you need by using JNI.
    However, there are serveral products, so-called "JNI wrappers" that allow you to call any C function from Java without learning JNI.
    Here is link to one of such products, and you can find others in google as well.
    http://www.excelsior-usa.com/xfunction.html
    Library for painless JNI programming

  • Commenting Out Library Code

    When a Library item is inserted into an html document, it automatically adds some commenting out code
    <!-- #BeginLibraryItem "/Library/footer.lbi" -->
    <!-- #EndLibraryItem -->
    but still appears in Design View (which is expected). There are times when I don't want the actual Library item (a footer in this case) to be visible in Design View, and simply applying an html comment doesn't work (I assume because you are basically trying to double comment the code). So the question is: is there another way to temporarily hide a library item from appearing in Design View? The reason I'm asking this (and maybe there is another underlying issue) is because looking in Design View, the footer appears in the middle of hte page, but renders properly when previewing in either Live Mode or previewing in browser.
    Design View: the red outline shows where the library item (footer) appears - in the middle of the design view area - worth noting, I work in Split view (with code on top, preview on bottom), so maybe that has something to do with not rendering items properly on screen?
    Live View or Browser Preview:
    I don't know if this is happening because of CSS styles of possibly some html code or maybe even an underlying issue somewhere else. This is more irritating than anything else. Does anyone have a clue what might be going on?
    To add: the only way I am currently able to temporarily hide the footer library item is to open the library item, comment out that code, then update all pages (which is a pain for when I need to go back and forth)...

    If this helps, I've uploaded what I think is enough to see what I'm facing.
    As an FYI, your page content falls out of the box when end-users increase default text-size in their browsers (Firefox, View >  Zoom > Zoom Text Only), hit Ctrl+++.
    See screenshot below where I've highlighted dark text on dark background to be visible:
    Height: value in pixels is a restriction in all browsers except IE.  If needed to reveal a background image, use values in ems or the min-height property with Conditional Comments for pre-IE7 browsers.
    CSS:
    #homeContent {
        position: relative;
        width: 892px;
       min-height:400px;
    Conditional Comment:
    <!--[if lt IE 7]>
    <style type="text/css">
    #homeContent {
    height: 25em
    </style>
    <![endif]-->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Explanation of  Development Status Codes

    I submitted a copule of problems to MetaLink which have resulted in Bugs. At this point, they both have a Bug number associated. They are infrequently updated to say that the Bug is in development and there is an associated Status Code.
    Does anyone know what these Status Codes means? I am currently at Status Code 92.
    I'm not sure if these codes mean that some work is really occurring, or if they are some nonsense way to make us feel like something is happening.

    these status codes are status with some description,
    its internal , we cant say anything abt that,
    i can give a comment , its fixed

Maybe you are looking for

  • Dynamically Set date not changing in schedule Job

    Hi, I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days". I have scheduled this program to run in background

  • Linksys verizon vonage = headache (Help, please)

    So here's a brief rundown of what's going on. I've had my Verizon fios connection as well as vonage running through my old Linksys wireless b router. Today, after years of reliability, my router bit the dust (nobody was able to connect to the interne

  • Is sign/pre-signing for your device necessary?

    Hi, I'm an American living overseas and I recently bought an ipod online. The ipod will be shipped to a forwarding address in the U.S. The problem is that I can't sign or pre-sign for the delivery. Is there anything else I can do? Thanks.

  • 3.2; LOV; find button

    Hi, I received following error when i typed "12" (to search for 12's)on textFiled and clicked Find on LOV frame. DAC-511: ResultSetInfo: could not execute the query. JBO-27122: SQL error during statement preparation. Statement: SELECT Vendor.VENDOR_I

  • DPM 2012 R2 (ID 104 Details: Internal error code: 0x809909FF)

    We are running DPM 2012 R2 on Windows Server 2012 R2 We have a Protection Group:Servers (9 members) where 5 servers always give the same error message, when we try to run a synchronization job with consistency check. With other 4 server everything is