Crystal report refresh based on document ID

Hi All,
i am able to do webi report refresf based on document id but i am not able to find crystal report refresh based on document ID BO SDK API on JAVA.
please help me on this?
the below code is for webi report refresh :
ReportEngines engines = (ReportEngines) Esession.getService("ReportEngines");
ReportEngine widocRepEngine = (ReportEngine) engines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
widocRepEngine.setLocale("en_US");
DocumentInstance doc = widocRepEngine.openDocument(documentId);               
doc.refresh();

Well, first, the ReportEngine code you are using is only for Webi and Deski.  You may want to start by looking at the RAS and Enterprise sections of the this [wiki|http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications]

Similar Messages

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
    a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
    I have referenced for possible solutions:
    http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
    http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
    Here are the steps I have done to try to get the .rpt files to open:
    Added the Crystal Report extension .rpt as a MIME type
    Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
    Installed the 64-bit Crystal Reports runtime
    I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
    I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
    I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
    Thank you,
    Alex

    We are having the exact same issue, has anyone resolved this yet?

  • Print Preview of crystal Report without add a document

    Dear All,
    Can i see the Print Preview of Crystal Report without add a document like PLD.
    i have developed a Crystal Report through Add Command by Passing a query.
    if anybody have  idea on this issue please  suggest me.
    Thanks.
    Shekhawat

    Hi Shekhawat....
    Through Query Crystal report it is not possible to view the Layout as Draft withou adding teh docs because Report fetch the details only when itys value goes to Database Table......
    So suggest to use SAP standard CR and modify as you want....
    Regards,
    Rahul

  • Crystal report : refresh

    i have called crystal report from the from using DDE as follows.....
    declare
    AppID PLS_INTEGER;
    begin
    AppID := DDE.App_Begin('C:\Program Files\Crystal Decisions\Crystal Reports 9\crw32.exe Report2G.rpt', DDE.APP_MODE_MINIMIZED);
    end;
    .... now this is working fine...
    but after crystal report is opened, when i press refresh to get upto date data, it opens the dialog box... displaying user name, SID, but one has to enter password...
    so how can this be avoided... evry time we refresh... it should not ask for password...
    can any1 help...?

    Well, first, the ReportEngine code you are using is only for Webi and Deski.  You may want to start by looking at the RAS and Enterprise sections of the this [wiki|http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications]

  • Crystal Report Bursting based on a field in the report

    Hi,
    I have a crystal report with  Invoice Number as a field in it.  I need to burst the report with following as the output.
    1. Destination: FTP server
    2.  Format : PDF : One PDF for every invoice.
    I was trying to use Publication through Infoview.  I would like to know how to achieve this.
    I do not have any parameters in the report or any group of users/recipients.  Hence, I have not created any Profiles.
    Thanks in advance.
    Girish

    Add your CR report as source document and then choose to have Dynamic recipients for your publication. Use there as source for the recipients' list the same report you want to burst. As Recipient identifier select the field that contains the invoice ID.
    In the personalization panel go to the Filters area and select in the Report field drop down your invoice field from the report. In the Dynamic recipients mapping drop down select again the field containing the invoice ID.
    Select the appropriate settings in the destination and format panels and let at least on BO user subscribe to the publication .
    After that you can run the publication.
    Regards,
    Stratos

  • Unable to Schedule Crystal reports 2008 based on MSAS 2000

    Hi,
       I created Crystal Report 2008 (XI R 3.1 SP3 FP 3.2) on Cube MSAS 2000 SP4. I do not see any option to configure database credentials. While creating report in the wizard I did not enter any User name and Password Info (I have admin credentials to Cube but when I give these credentials and try to create report, CR designer hangs, not sure why?). The idea is to pick cube level security for the user who is trying to view / refesh the report.
    Could you please help: 1. To configure Database info in CMC
                                           2. To implement cube level security to these crystal reports.
    Nanda Kishore.

    Hi Experts,
      Could you please help. My intention to capture Cube Level Security while refrshing Crystal Reports in Infoview.
      I am uanble to refresh report in Infoview.
    Nanda Kishore

  • How to Pass parameters to Crystal report 10 based on Oracle Stored Procedur

    Hi,
    I use the following code to pass the parameters:
    Rep.Tables[0].ConnectBuffer := Connection_Str;
    Rep.Tables[0].AliasName := 'REP';
    Rep.Connect.Propagate := True;
    Rep.ParamFields.ByName('Lang', '').CurrentValue := IIF(BiDiMode = bdRightToLeft, '2', '1');
    Rep.ParamFields.ByName('SESSION_ID', '').CurrentValue := IntToStr(Session_id);
    Rep.WindowState := wsMaximized;
    Rep.Show;
    The 1st parameter 'Lang' which created from crystal report pass well,
    but the 2nd parameter 'SESSION_ID' which created from Oracle Stored Procedures give the following Error:
    Error: 202 Parameter Name could not be found u2013 ParamFields.ByName
    However in MS SQL Server the above code work fine with the 2 Parameters.
    Any one has solution,

    Hello,
    Click on the businessobjects Tab above and then select Samples and dowload the sample app you for your SDK. There are a few samples for changing/setting Parameters.
    The Parameter collection has all parameters.
    Thank you
    Don

  • Crystal Reports refresh issue

    Hello,
    I created some report's in CR2008 using MySQL database. I use (.udl) file to create a connection and connect to MySQL Server. I want to give the flexibility of refreshing this report on SQL Server, I created a (.udl) data source file for SQL Server and used it to connect to a SQL Server, by setting database location for the report, the refreshes works properly. But every time I open the report , it displays a new connection string, The Data Source name is only supposed to be "AAGARWAL-PC\MSSQL", but when I open a new report and refresh it, cr2008 creates a new connection string "AAGARWAL-PC\MSSQL_1". I dont understand the reason for this.
    When I refresh a MySQL report on MsSql the report refreshes properly and creates a new connection string. But when I try to refresh a MsSQL report on MySQL the report does not refresh. I shows an error saying it cannot access the database objects, I guess the reason for that could be "dbo.tablename" for for MsSQL will not be supported on MySQL, is there a workaround for this?
    Any ideas or thoughts on these issues?
    Thanks

    No work around other than setting location manually to SQL Server. Both DB's require different SQL being generated therefore you can't assume CR will just work without giving it a chance to "fix" the connection info.
    Easiest way is to have one report for each DB if you don't wnat to manage them through an application.

  • Crystal report 13.0.2 document.ExportToStream html40 file not found issue

    when export to html, it seems like the html file is exported suessfully but when it is reading the file back, it said the file is not found. but by opening up the temp folder, the file is there but with the .html extension instead of the reported missing file with the .htm extension. bug?

    hi Don,
    here's the code used:
    var stream = document.ExportToStream(ExportFormatType.HTML40);                           
    that's where the exception is thrown. with reflector, the code boil down to this:
    HTMLFormatOptions htmlFormatOptions = new HTMLFormatOptions();
          htmlFormatOptions.HTMLBaseFolderName = (string) null;
          StringBuilder stringBuilder = new StringBuilder();
          stringBuilder.Append("cr_export_");
          stringBuilder.Append(Guid.NewGuid().ToString());
          stringBuilder.Append(".htm");
          string path = Path.Combine(Path.GetTempPath(), ((object) stringBuilder).ToString());
          htmlFormatOptions.HTMLFileName = path;
          htmlFormatOptions.HTMLEnableSeparatedPages = false;
          reqContext.ExportInfo.ExportFormatOptions = (ExportFormatOptions) htmlFormatOptions;
          HTMLExporter htmlExporter = new HTMLExporter(this, reqContext);
          htmlExporter.Export();
          FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.None);
          try
            MemoryStream memoryStream = new MemoryStream();
            try
              byte[] buffer = new byte[4096];
              int count;
              while ((count = fileStream.Read(buffer, 0, 4096)) > 0)
                memoryStream.Write(buffer, 0, count);
              if (memoryStream != null && memoryStream.Length > 0L)
                return (Stream) memoryStream;
            catch
              memoryStream.Close();
          finally
            if (fileStream != null)
              fileStream.Close();
            htmlExporter.RemoveTempFiles();
    notice the line
    htmlExporter.Export(), think that's where it generate the whatever.html page, but notice the path building logic, it use .htm but not .html.
    is it not a bug? I open up the temp folder and see the .html file but not the .htm file.
    Kevin

  • Crystal Report based on BEX 3.X query + Hierachies

    Hi,
    I have built a Crystal Report (2008) based on BW Bex 3.5 query.
    The report has a hierachical group based on a hierachy
    similar to the strategy used in
    http://blog.mastering-sap-and-businessobjects.com/2009/07/10/crystal-reports-and-sap-bw-hierarchies--conditional-formatting-part-2.aspx
    Certain sub and parent nodes in the hierachy have suppressed to make sure the report is formatted correctly.
    The user running the report does NOT have the option of choosing the level of nodes to hide  or show.
    At this point in time the report is showing the correct nodes, however there is a concern that once users start re-arranging the hierchies and adding nodes that the reports will have to be maintained. (Which I think is a catch 22 situation)
    Does anyone have another suggestion how to have the reports be "Dynamic" (based on the hierachy) and still not have the danger of the hierachies changing and affecting the Reports
    (I certainly can think of no other ways EXCEPT creating a structure in the BW Query - which means that in any case if the hierachies changes, the BW Query will have to be maintained)
    Kind Regards,
    Nicole

    Hi,
    Crystal Reports is using a parent child relationship which means the complete hierarchy is dynamic and in case your hierarchy is changing on the BW side Crystal Reports will pick up those changes automatically - assuming we talking about additional levels or levels been removed.
    ingo

  • Dynamic crystal report generation - issues with column headings

    Hi All,<br>
    I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
    I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
    ReportDefController reportDefController = clientDoc.getReportDefController();
    ReportObjectController reportObjectController = reportDefController.getReportObjectController();
    reportObjectController.add( "{Table.Field}", "FieldName" );
    <br><br>
    I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
    <b>The following is my dynamic crystal report generation code:</b><br><br>
    public ReportClientDocument execute(String repName, String query) {
              ReportClientDocument boReportClientDocument = null;
              try {
                   boReportClientDocument = new ReportClientDocument();
                   boReportClientDocument.newDocument();
                      // Add a table based on the given Resultset to the report.
                   dbConnResultSet mySampleResultSet = new dbConnResultSet();
                   //mySampleResultSet.execute(query);
                   boReportClientDocument.getDatabaseController().addDataSource(
                             mySampleResultSet.execute(query));
                   IReportSource test = boReportClientDocument.getReportSource();
                   // Access all the database fields
                   DatabaseController databaseController = boReportClientDocument
                             .getDatabaseController();
                   IDatabase database = databaseController.getDatabase();
                   Tables tables = database.getTables();
                   ITable table = (Table) tables.getTable(0);
                   int NO_OF_FIELDS = table.getDataFields().size();
                   int LEFT_POSITION = 200;
                   // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);
                   boReportClientDocument.createReport();
                   /*Some report saving code is present down*/
              } catch (ReportSDKException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              return boReportClientDocument;
    <br><br>
    appreciate your help.

    IField field = table.getDataFields().getField(i);
    Here you are getting the first field in the array.  This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report.  It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading.

  • Crystal Report Universe Connection

    Hello,
    I have a Crystal report developed based on Universe as the data source. Say this report is in Dev environment. Suppose I need to promote this report to Test environment to UAT or production then how is it possible?    
    I have used import wizard using this I am able to move my report from one environment to another. report is successfully moved from source to destination but when I go to refresh the crystal report, an error is thrown (both in Crystal Report designer and Info view) :
    "Failed to open the connection. 
    Details:
    Update of the SQL command from the Universe failed. This report cannot be
    refreshed unless the SQL command is updated from the Universe."
    As such the Dev copy works fine. Please suggest me how to move a report from 1 environment to another.
    If I changes connection manually in UAT Database --> Set Database location -->update then same report work fine,
    But I have multiple reports I cannot manually edit connection of each report.
    Useful details as below.
    Crystal Reports 2008 (Service Pack 1)
    Business Objects 3.1 
    View the connection details in report.
    Set database location
    Expand Universe connection
    Properties - It will show server details of connection- user name - universe name- path of universe
    Kindly advice.

    This is the same as: Migration of Crystal Report
    Please do not cross post as this is against the SCN Rules of Engagement.
    If this is a critical issue, you should be able to create a phone case - I suspect for you this would be free as you have BI / BO(?). If you are not sure how to, see your admin.
    I will be locking this post now. Please continue on the above link.
    - Ludek
    SCN Moderator

  • Scheduling the crystal Reports

    Hi all,
    What is the use of Scheduling the Crystal Report?
    In the document I saw the use of scheduling is to run the object automatically at specified times.
    I want to Schedule that Crystal Report. For that I followed the following Steps.
    Login into CMCApp.
    Select the required rpt file. and clicked the Schedule.
    It opens the Schedule Screen.
    In that I have specified the Recurrence Parameter and Scheduled For.
    It refreshes the data,only if I press the Refresh button manually. Otherwise data is not refreshed.
    The status of corresponding object is Success, while seeing the History of the Object.If I click the View Latest Instance in CMCApp, It shows the updated data(Refreshed Data).
    Whether I am following the Correct Steps? Other than this What I have to do for scheduling?
    How can i retrieve the data from View Latest Instance?
    Thanks & regards,
    Hemalatha J

    Hello Hemalatha,
    You can schedule Crystal Reports only in an BO Enterprise environment (BOE).
    Documentation on how to schedule documents you can find in the BusinessObjects Enterprise Administrator's Guide [here|http://help.sap.com/businessobject/product_guides/].
    I also recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Batch processing/scheduling of Crystal Report

    Hello ,
    One of our crystal reports is based on customer number. We would like to schedule this report for every customer of our database. When the report is scheduled it should produce one report for each customer. Is there a batch processing function in BOE to achieve this?
    Thanks for any idea,
    Chrigu

    This is how we solved this issue:
    1. We built a Universe on the database table where the customer IDs are stored.
    2. On this universe we built a simple Web Intelligence report that contains the information from the database table.
    3. In InfoView create a new Publication. The source document is our RPT-file (with two parameters: Year and ID).
    Under Dynamic Recipients choose the Web Intelligence report.
    In the section Personalization we mapped the reports parameters with the fields from WebI report.
    4. Save and schedule the publication

  • Crystal Reports - Tables Missing from the List Within SAP Data Dictionary

    We have installed the Integration Kit and would like to create reports in Crystal Reports 2008 based on some transparent tables (BKPF being one) in our ECC 6.0 box. Using the standard Data Source 'SAP Table, Custer, or Function' we are able to connect to our ECC system and generate a list of tables within the data dictionary. However, we are missing quite a few tables such as BKPF and VBAK (tables we can see include EBKN and EBKZ).
    We ran a trace on the system (ST01) but have not found any authorization failures for the assigned account (nor do any errors or issues show up in any of the work process trace logs).
    Has anyone experience anything similar? Helpful pointers to helpful info is much appreciated (we do have all the install and user docs).
    Thanks!
    Joe Haynes
    Edited by: Joe Haynes on Apr 14, 2009 11:41 AM

    Hi Joe,
    try the following:
    - right click on the connection entry
    - select the item options
    - there is on the right hand a box that allows you to enter filter values. example SFL% will show all tables starting with SFL
    - enter a filter and hit OK
    - right click again
    - select refresh.
    most likely it is just the amount of tables coming back
    Ingo

Maybe you are looking for

  • EAM ID based or Role based? Why settle for just one?

    G'Day All, I've raised a question in the following blog, however I would like to open it up to other people as well so they might get something out of it and in the process might share their own thoughts on the matter at hand. ID-Based Firefighting v

  • Mail RAM question

    I set PUSH to off and FETCH to manually, question is, will it still use memory when it is running on background/multitasking? I've red somewhere that apps don't need to be necessarily removed from the multitasking, how about when MAIL (default app, y

  • A question about thread

    i am learning up on threads. A Java program can have many threads, and these threads can run concurrently, either asynchronously or synchronously. so lets say i have 2 classes, A and HelloThread A public class A {      public static void main(String[

  • What are these diagonal lines in my timeline?

    This project has lines throughout on the timeline. It won't upload to Vimeo. What is it? Thanks.

  • Pacman / yaourt?

    I noticed the Wine artice (http://wiki.archlinux.org/index.php/Wine) only mentions how to install wine through yaourt. Shouldn't we stick to pacman here? It being the default manager application on Arch. Not purely here but also in general.