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]

Similar Messages

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

  • 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 Not Refreshing in browser

    Hi all,
    Am using crystal report for my web application so here am passing my parameter from jsp page
    but it is not refreshing
    For example
    I am select Month=jan my query goes this way.
    Select * from employee where month='jan' group by department order by designation
    when am intially design in eclipse in filter option am selecting 'jan' and when am running in browser am passing the same query with the parameter but here instead of 'jan' am passing month variable where my month variable changes every time according to user choose
    my crystal report is not getting refreshed ..
    hope u understood my problem
    Regards
    Vanishree.B

    Hi Tejomay ,
    I have tried that even after calling refresh() , it ;s not getting refreshed..but if am using signal table in my query  it is getting refreshed .but when am grouping with another table it is not refreshing..
    Regards
    Vanishree

  • Cannot refresh a stored procedure within a Crystal Report from Xcelsius

    Please help...Xcelsius 2008 & Live Office problem...
    What I am trying to do is to refresh a stored procedure that is within a Crystal report from within my Xcelsius dashboard in Preview mode. The data returned appears on the Xcelsius dashboard. It works fine in Design mode, just not in Preview or when published as a swf.
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report.
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9. When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication. I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the one listed under System in Live Office, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    This post looks like a duplicate of: Live Office: Database logon failed error

  • Report Not Refreshing in Crystal Reports Server 2008

    I created a report and posted it on Crystal Reports Server 2008.  I have since updated the report's selection expert and I want the new criteria to be updated.  When I right click on the report and choose Refresh Options I have chosen to update and refresh the report but when I try to schedule it again it keeps the old select expert statement.  I have gone back to the report to ensure the change was taken and it was.  In fact if I delete the report and repost it then it does show the correct criteria.  Does anyone have any idea's as to why this is happening.  Thanks.

    A simple solution to avoid the font issue: Draw a box on the report, and put an X in (on top of) the box to check it if value is true.
    Or
    A formula that is an X if true or F if false.  Format the font to be white if not an X, and put a box around it.
    Edited by: DebiHerbert on Oct 8, 2010 1:19 PM

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

  • Crystal Reports - Works in FireFox...Not in IE...Need to Refresh Data

    I am using a servlet and beans to fill a series of JSP pages. On the final page, the data is displayed in reports with a print button for each report. The user is supposed to be able to click on the indivudual button and print only the one report they request. The button part is working fine, and the code is as follows:
    <input type="button" value="Print Report" title="Print Report # <%= headerId %>" onClick=location.href="jrs_set_parameters.jsp?headerId=<%= headerId %>">
    The problem is the data in the Crystal Report is not being refreshed in IE, until I click the refresh icon. It works fine in FireFox. I have tried all sorts of things in my code to refresh the data in IE, but nothing seems to be working. I have found other suggestions on this site, and contacted Crystal Reports Support, but I'm getting nowhere with this.
    I did find that if I changed my IE settings as follows:
    IE, Tools, Internet Options, Connections, LAN Settings, Advanced, and under Exceptions added javadev*, which is the first part of my link, it will pull the correct report every time. The only problem is that I can't ask all of the users to make this change, just to get this to work right.
    I am about to start pullin my hair out soon! Does anybody know what has to be done in this situation? Please help!

    Problem solved! It had to do with the way our network people were caching Internet Explorer on the server.

  • Issues with Infoview data refresh on Crystal Reports based on BW BeX query

    Hi all,
    We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
    After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
    The data refresh would not work in Infoview.
    The data refresh would work using the Crystal Reports designer gui on local machine.
    regards,
    Abhishek

    Hi all,
    This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
    After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
    Please use below notes for the BW transport task of patching BOE Integration toolkit.
    Refer to Note#1472104 which explains about loading the
    transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
    Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
    https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
    regards,
    Abhishek

  • Database Connector Error : when refreshing the crystal report in Infoview

    Hi,
        I've created a crystal report on SAP R/3 tables and the report is refreshing fine in my local system. But however when I publish the report to the BOE, and when I try to refresh the report it gives the error:
    Error in File <file name>: Database Connector Error. I'm using Crystal reports 2008 and the BOE is XI 3.1.
    How can I solve this?
    Thanks,
    Sanjay

    Hey folks,
    i suppose  we are facing the same error. But where do i check if the key for the server-side integration kit has expired? There is no explicit key in our CMC.
    We use BOE XI 3.1.
    Thanks in advance!

  • Refresh Crystal Report Viewer By JavaScript or JQuery

    hii every body here ...
    i need to can refresh the crystal report viewer with javascript or jquery as like [refresh button] on toolbar
    so i need to do that without using standard refresh button on toolbar or by server side code only by java script code is this possible or not
    thanks for the repliers ...

    thanks for replay my best friend but i need the below :
    i using asp.net web application with crystal report 13
    i use crystal report viewer on web page so ...
    when i display the report some button inside the crystal report viewer toolbar like [refresh] button
    i need to click this button by javascript/jquery becuase i will fire it on page_load from jquery
    when page load from javascript [client side] i will fire the refresh button ....
    soo if this an soluation can let me do this task or not
    remember that : i dont need to refresh the report from server side methods .
    thanks alot

  • Refresh Crystal Report

    How to refresh Crystal Reports using command line. Please provide the exact syntax for following cases....
    1. Simple report
    2. Report with parameter
    We have only Crystal Report. We want to create a Batch file which will refresh all report without opening each individual reports.

    Hi Rakesh
    As per the issue description, you want to run the report using Command Line. This functionality was available till CR 8; however after CR 8.5 it is not supported.
    The only option I can suggest you is that you need to develop an application using Java or .NET languages.
    To get better assistance on this I request you to post this thread on Java or .Net forum.
    The links to these forums are as follows:
    For .NET: .NET SDK Application Development
    For Java: Java SDK Application Development
    Hope this helps!
    Thanks

  • Automatic refreshing and saving of Crystal reports

    Post Author: whaworth
    CA Forum: General
    Hi
    I have a number of reports >100 that need to be refreshed each month
    I am using Crystal reports XI professional edition and want to know how to either build a batch file to run them all, or if there are any tools I can use.
    At the moment it is all done manually, which takes many many hours to do.
    any advice would be gratefully recieved.
    thanks
    Will

    Post Author: KenHamady
    CA Forum: General
    There are 3rd party tools out there that do this.  For a complete list of 3rd party tools for Crystal Reports see the following link:
    http://www.kenhamady.com/bookmarks.html

  • Scheduling of Crystal report or allowing user to refresh

    I am the only person in my organization that has Crystal Reports. Normally I just develop and run the reports for my users. I have a report I have developed that one of my users needs to be able to refresh and update the parameters. I am trying to come up with the simplest, least expensive way to make this possible. It is my understanding that Crystal Reports Viewer will only let him look at the report, not refresh it, unless I have Crystal Reports server. I saw some other products on the Internet that say they would provide the capability I need, but are pretty expensive. The only other option I can think of is getting his own copy of Crystal, save my report definition onto a folder on our server, and just let him run it with his own desktop copy of Crystal.  Anyone have any better ideas?  Thanks.

    Please re-post if this is still an issue to the Business Objects Forum or if you have a valid support contract create a case on line.
    You can set the option for the users not to be able to hit the refresh button or export to any format will also not give them the option to refresh

  • Crystal Reports crashes when accessing Help or refreshing report data

    I am running Crystal Reports 2008 (v12.0.0.683) on the same server as Business Objects XI 3.0.  When I open a report in the Crystal Reports 2008 designer client, the client crashes without any error messages if I try to access the Help files or refresh the current report data.  My report does include parameters and a subreport.  I am logging onto the Windows 2003 SP2 server via a Remote Desktop connection.  Any ideas?
    Thanks,
    Kathy

    Please re-post if this is still an issue to the Business Objects Forum or purchase a case and have a dedicated support engineer work with you
    directly.  If you have a valid BOE version and support contract you can log a case in SMP.

Maybe you are looking for