Issue on Java Run Deski document, save format in a unmanaged disk location

Post Author: usaitconsultant
CA Forum: JAVA
m developing an java application-based that will
run deski report/document in a window machine and save output formatted
report/document (pdf, etc.) to a local destination (unmanaged disk).
However, no physical file was created after I execute my program. Note
that BO XI server is on the other machine. Below is the code. Please
let me know whats the problem? Thanks.
          sql = "SELECT SI_ID, SI_NAME, SI_PROCESSINFO.SI_PROMPTS " +
               "FROM CI_INFOOBJECTS " +
               "WHERE SI_NAME = '" + reportName + "'";
          infoObjects = infoStore.query(sql);
          if (infoObjects.size() < 1) {
               System.out.println("Report does not exist.");
               reportFound = false;
          if (reportFound) {
               infoObject = (IInfoObject) infoObjects.get(0);
               //Set Report Schedule
               ISchedulingInfo schedulingInfo = infoObject.getSchedulingInfo();               
               schedulingInfo.setType(0);
               schedulingInfo.setRightNow(true);
               System.out.println("Schedule report successful.");
               //Set report type format (3 is for PDF -- need to identify int per report type format)
               IFullClientFormatOptions reportFormatOptions = ((IFullClient)infoObject).getFullClientFormatOptions();
               reportFormatOptions.setFormat(3);
               //Set parameters
               //Code here
               // Get the destination object from schedulingInfo
               IDestination destinationObject = schedulingInfo.getDestination();
               // Specify that we are writing to disk               destinationObject.setName("CrystalEnterprise.DiskUnmanaged");
               // Get the Destination plugin. Note that the SI_PARENTID will always be 29.
               sql = "SELECT * " +
                         "FROM CI_SYSTEMOBJECTS " +
                         "WHERE SI_PARENTID=29 " +
                         "AND SI_NAME='CrystalEnterprise.DiskUnmanaged'";
               IDestinationPlugin destinationPlugin = (IDestinationPlugin) infoStore.query(sql).get(0);               
               destinationObject.copyToPlugin(destinationPlugin);
               IDiskUnmanagedOptions diskUnmanagedOptions = (IDiskUnmanagedOptions)
                    destinationPlugin.getScheduleOptions();
               diskUnmanagedOptions.getDestinationFiles().add("c:/sample.pdf");
                              destinationObject.setFromPlugin(destinationPlugin);
               schedulingInfo.setRightNow(true);
               //Tells the CMS to schedule the report.
               infoStore.schedule(infoObjects);

Post Author: usaitconsultant
CA Forum: JAVA
Hi Ted,
Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
            Error Message:
            A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

Similar Messages

  • Can't run Deski documents in XI Release 3

    We have recently installed XI Release 3 in our development environment with the intention of migrating from release 2.  Most things work fine. For instance we can create and run Deski documents, and, create and run Webi documents.  What we can't do is run Deski documents via Infoview.  When refreshing a Deski document we get the "Refreshing Data" dialogue box but a couple of seconds later the dialogue changes to one with the title "Refreshing Data" but with the red X circle and an OK button on it - it's basically a blank dialogue box.
    Any ideas as to what could be causing this problem?
    We are running this on a Windows Server 2003 SP2 with a DB2 8.1 repository.  We are also using Tomcat 5.5.20.

    Did you look at the Windows event log to see if it provided any hint? Does this happen with other forms or with a simple test form? Also, look at the dump file in the <OraHome>/forms90/trace folder to see if it provides a clue.
    Are you using the latest JInitiator? See
    http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html
    Message was edited by:
    Mark Roberts

  • Can you save system settings scratch disks locations for each project?

    When you begin a new project in FCE you need to set the System Settings Scratch Disks. Typically you would set a new folder for each project to keep all of your files for each project in one location for that project.
    I have a couple of FCE projects going at the same time. I've set each project with a different system setting scratch disk location. But if I open a project which should have a unique scratch disk location folder that I've already set before for that project, it ignores the setting I set for that project and just shows the scratch disk setting for the last project opened instead. It does not appear to save or remember the unique setting for that project.
    If you have multiple projects going at the same time, is there a way to save the systems settings scratch disk location for each project and have FCE remember that location for each project?

    I turned off the Open Last Project on Application Launch in the User Preferences and it still does not remember the unique scratch disk settings for each project.
    Since it is quite common to be working on multiple projects simultaneously, you would think that there would be a way in which to save the settings for each project to help keep all related files better organized.
    Any other suggestions?

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • How to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    To Guru's, Would you know if there's a way to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a local drive or network drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only.  Please let me know your ideas. I would really appreciate your help. Thanks. 

    Give Chronosync a go - have been using for over a year and it works great; if you like Syncback you'll like this app.

  • SaveAs Document Failed ... Deski document being saved to Favourites folder in Webi

    Post Author: amcc
    CA Forum: Administration
    I have been unable to work out what access right is needed for Webi users to be able to save a Deski document to their Favourites folder.  We have some migrated documents containing features that will not convert to Webi so have had to allow access to the Deski documents in the repository.  Anyone in the Administrators group can successfully save the Deski documents but other users cannot and get the message:
    SaveAs Document Failed (80043761)
    The same group of users can view and refresh the document without any problem.  They can also use 'Save to my computer as' without any problem.
    For an example group of users they have:
    1. View on Demand set on the universe2. View on Demand set on the universe connection3. View on Demand set on the folder containing the document4. Log on to Desktop Intelligence and view this object in the CMC set for the Desktop Intelligence application5. Save Desktop Intelligence Documents set for the Desktop Intelligence application6. Full Control of their Favourites folder.
    I've even tried changing the View on Demand settings to Full Control but it made no difference.
    What have I missed?

    Hi all,
    Even I have faced this problem,but the scenario is little different here.
    I have a deski publication report , which run sucessfully evry day but once in a while fails giving this error.
    SaveDocumentAs failed (80042908)
    When we run this report again it run fine.
    I am really wondered why this is happpening.
    Any suggestions on this. Thanks in advance.

  • Downloading documents with formatting issues

    When I download a 2 page merged document, the formatting changes so the second page is much smaller than the first page.  The document appears fine on the adobe website.

    Hi sbutchman,
    Is it the page itself that's smaller, or does the magnification level change from one page to the next? Are you running into similar problems with other PDF files? And, are you opening the PDF in Reader or Acrobat, and what version?
    I look forward to hearing back from you, with a few more details.
    Best,
    Sara

  • AppleScript InDesign Document Save as

    Hello @ All!
    I tried my first AppleScript. I tried to open a document and use "save as" (without dialog) to save the opened file in a new place and with a new name.
    in case of question: i have to use indesign for a convert of the format.
    Here is my Code-Snippet: (the part mentioned in the SDK failed!)
    tell application "Adobe InDesign CS4"
    set myDocument to open "Mac:IDS:InD-Files:delete_Test.indd"
    if saved of active document is true then
    tell active document to save saving in "Mac:IDS:test.indd" --speichern ohne save-dialog
    end if
    close document 1 --Dokument schließen
    --end repeat --ende der schleife
    display dialog "Alle Dateien bearbeitet"
    end tell
    After Running i get the failure message:
    „saving of "Mac:IDS:test.indd"“ kann nicht gelesen werden."
    cannot read this path or file.
    The path exists.
    What am i doing wrong? or where is the mistake!
    Thanks for your help.
    Kind regards

    try this:
    tell active document
    save to "Mac:IDS:test.indd" --speichern ohne save-dialog
    end tell

  • Can  Java be used to save content of HTML form to a file?

    We have an application that saves a pdf file to a location on our webserver. The file displays on the users machine in a browser window. I have created a link in the links bar of the browser window which launches a simple HTML page. This page allows the user to enter a number of fields and click 'SAVE'. This is where I am having the problem. I need the save button to firstly create a csv file on the webserver containing the details input by the user. I then need the pdf file saved to the web server with a new name and in the same location as the csv file. is there anyway to achieve this using Java or can anyone please point me in the right direction?
    Thanks

    <<Click on the SAVE button in an HTML <form> and the browser will perform an HTTP POST of the data to a URL. Make that URL point to a Java servlet and it can take that form data
    <<and write it to the webserver file system in any format you wish, including csv and pdf.
    agree with duffy. You can also use JSP and call a class method to handle whatever data you specify.
    orozcom

  • Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error, so you can load Firefox again.

    Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error. I have Windows XP (Media Center Edition) and all updates (Firefox, Adobe PDF, Microsoft, virus protection, etc) are installed. This has only been a problem since Firefox 4, and isn't a problem in Internet Explorer.

    Hi David,
    Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
    Do you have any stored preferences for PDF files in Firefox?
    *[[Applications panel - Set how Firefox handles different types of files]]

  • Issues with payment run

    Hi All,
    I am facing with a issue with payment run FPY1. Some of the customers are refunded the amount which is not supposed to be refunded to them. When i check the Contract account level and document level, at both level there is no outgoing payment method set. Is there any other way by which payment run would pick up the amount and refund it back to custmer.
    Kindly share your thoughts.
    Regards,
    Rahul

    Do you have a third level of master data?  In certain FI-CA systems there is a lower level of master data (i.e. contract, insurance object).  A payment method can also be set at this level.

  • [BOXI 3.0] DeskI Documents in InfoVIew - no View Menu - PDF Mode

    viewing DeskI reports in InfoView I can set my preferences for "default view format" to "Web" , "PDF" or "Desktop Intelligence format".
    If I set it to "Web" then after viewing a DeskI document if I click on the View menu I only get options for "Page Mode" and "Draft Mode" I don't get the option for "PDF mode"
    But if I log into InfoView as Administraor with FULL rights then I do get the option for "PDF Mode"
    Which security right controls the option to have "PDF Mode" on the View menu ?

    this is a bug,  you need to give rights for crystal report, like #export the report data# and #Refresh# to allow Deski Reports to be exported
    Apparently there is an Enhancement request id ADAPT01098470 with details of this Bug in
    BOXI 3.0

  • I am  having  issues  with java

    OK well I finally got  the java update to full load and it stated that it was corrupt or something like that and now I can not get into my favorite chat room it says I need to get java ..   when I go to the link to  re get a update to java it says I am updated.. so I called apple and they sent me a patch or something and it did not help .. anyone have any ideas what is happening?
    my old chatroom I think I remember someone talking about java issues there and how you had to have a old java  or something like that ..  can somehelp please!

    golam wrote:
    I am having issues with java encoding in Gentoo Linux environment. I am using java 1.6. When I ran the following test application to print french accent with encoding type, all I get is wrong character. Please provide me with some pointers. When I try this in Windows, it works perfectly. Many Thanks in advance
    //test.txt file contains the following string
    àäèéêëîïôùûüÿ
    ///TEST CODE to find which encoding to use
                              System.out.println("encoding:"+encoding[i]+"line===>"+inputLine);
    This is the problem.
    Don't assume the console character set can display these characters,
    use a swing component.
    This is also why it happens to work in on some boxes and not on others.
    ///////////////OUTPUT after running the test app
    java Test encoding:Big5line===>???????
    encoding:Big5-HKSCSline===>???????
    encoding:EUC-JPline===>???????
    encoding:EUC-KRline===>???????
    encoding:GB18030line===>???????
    encoding:GB2312line===>???????
    encoding:GBKline===>???????

  • Backup issues - New T510 running Windows 7 Professional (64-bit)

    I am running Windows 7 Professional (64 bit) on Lenovo T510 (4313-CTO). As soon as I loaded some applications and transferred data from my old computer to “My Documents” in the “C” partition of the T510 I immediately began having space issues with automatic backup. I received the following alert:
    Low Disk Space.
    You are running out of disk space on Lenovo_Recovery (Q
    Click here to see if you can free space on this drive.
    The "Q" partition was pre-set by Lenovo at 9.76 GB.  I have not tried to change it (yet).
    I set the backup options to “Keep only the latest system image and minimize space used by backup.” Note that I viewed backups and it lists only one backup image on the “Q” partition (given the warning message, perhaps even that is only a partial image).
    Properties for the “Q” partition indicate
    Used space: 10,476,949,504 bytes 9.75 GB
    Free space: 8,806,400 bytes 8.39 MB
    Capacity 10,485,755,904 bytes 9.76 GB
    What do I do at this point to complete a backup?
    If relevant to your suggestions, here are some specific questions about solving the problem:
    How can I manage backups to the “Q” partition given the space issue – i.e., do I need to reallocate partitions on the hard drive to create a larger “Q” partition, or are there other options?
    Related to my first question, can I create sufficient backup space without reformatting the hard drive and destroying content on the “C” partition?
    Would the better choice be to use DVD media for backup – since using the “Q” partition on the same hard drive leaves it vulnerable to failing at the same time as the “C” partition?
    Any other ideas?
    Thanks, in advance, to all who are able to respond. Peace … E

    Thanks Nap.
    To Nap and others
    Got it on back-up.  I did not initiate a backup but assumed that the error messages that I am receiving were caused by a Lenovo auto-initiated backup.  What can I do to elminate the error messages I am receiving (see my prior post).
    Peace ... Ed

  • User Exit which runs after pressing SAVE button at VF01 Screen.

    Dear all,
    I need user Exit which runs after pressing SAVE button at VF01 Screen.
    Kind Regards,

    If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
    Regards,

Maybe you are looking for

  • IPod Nano Screen Lock bug

    I think I have discovered a bug in the iPod Nano software. I'm using the latest software available as for today. I lock the iPod Nano's screen and as expected, the graphical display of a combination lock appears. I insert the iPod Nano on to the Univ

  • Property init only on initial load

    Here is my problem. I have events that need to be triggered by the processValueonChange sort of action on checkboxes and radio buttons. In order for these to actually process, I have to have submitOnChange turned on (these components are inside of a

  • Inventory ageing

    Hi friends, Regarding slow moving items in our inventory as well as obsolete items and any possibility of getting items that are in stock for extended periods of time or even obsolete items based on criteria that we can feed in. Madhavan

  • ABAP SCREEN PAINTER DOUBT

    Hi friends, Any one can tell me the solution to resolve the error maximum number of internal sessions reached  . regards, p.varadarajan

  • PHP - if go to one page, else go to another?!?

    I have an if, else statement and I want to go to one page if and another page else.  I can't seem to get it to go the page.  It goes nowhere.  Can someone give me a sample php code how to do this?  Thanks!