Refresh_report prompts for parameters

Following some installation problems from our installer using the .msm files to create crystal runtime info, we have switched to using the downloadable redistributable to install Crystal 2008 runtime files (SP3 & 4)
When we do this, when our code issues a refresh_report(), the report prompts for the parameters again with the original values missing.
We can see the parameters in the viewer (on the left) until we issue the refresh_report, and we have checked that the setting ReuseParameterValuesOnRefresh (or similar) is set to True.
Clients running the same version of our application change behaviour if we uninstall the .msm based version and install the downloadable redistributable.
Any suggestions (the msm based version was point blank refusing to install on certain clients (64bit W 7, but not all of them)?
Iain

We are using Visual Studio 2008 to write a C# wrapper to then interface with our actual application  as a COM dll.
However, this code is working on a client where the runtime was installed using an installer which used the Crystal 2008 msm files, and isn't working where the client is installed using the re-distributable downloadable .msi files.
We can leave our app in place, and uninstall one version of the crystal runtimes, and then install the re-dist provided by SAP and the problem manifests. Re-installing the original runtime files from the msms 'fixes' this problem, but we then cannot get this to install at all on certain clients.

Similar Messages

  • Report does not prompt for parameters when SeparatePages=False

    Hi all. We are using CR2008 Basic w/SP1 along with VS2008. Within our application, reports pull up fine and prompt for parameters using the CrystalReportViewer against the web service. SeparatePages is set to True. We want to change SeparatePages to False, but when I do that any report that should prompt for parameters is not.
    The reports were created in CR 8.5. We have upgraded them to CR2008 (open, refresh, save) which has greatly increased performance. With some further testing, I've discovered that if I take a report that doesn't currently have any parameters and add one via VS2008 report designer, it WILL prompt for the parameter when I run it in our application with SeparatePages=False.
    So I'm leaning that the problem has to do with the reports originally being created in 8.5. I've tried modifying an existing report with parameters, deleting parameters and re-adding, but I still can't get these to prompt for parameters with SeparatePages=False.
    Again, these same reports prompt for parms and work fine as long as SeparatePages=True.  I'm hoping someone might be able to shed some light on this. There are over 400 reports so re-creating them from scratch under CR2008 will be a painful option
    If I need to provide any additional information just let me know. Thank you!
    Sheila

    We are still working to resolve this issue. Testing has shown that for reports that don't return a lot of data, the prompt for parameters will display. But for larger reports, we just see the hour glass and the parameter prompt never displays. It's almost like the reports are trying to return the full dataset without any paramters being passed BEFORE it will prompt for parameters. This would explain why smaller reports will prompt and larger reports never will (?). Not sure that is what is happening.  Again, with SeparatePages=True we are immediately given the parameter prompt. With SeparatePages=False we run into the issue of no prompts.
    Here's the code behind if it help:
    ReportDocument report = new ReportDocument();
    try
        String rptFileName = @"App_Data\Reports\" + Request.QueryString.GetValues(0).GetValue(0).ToString();
        log.writeLog("Loading Report: " + rptFileName);
        String rptFile = Server.MapPath(rptFileName);
        report.Load(rptFile);
        report.Refresh();
        ConnectionInfo crConnectionInfo = new ConnectionInfo();
        log.writeDebugLog("ServerName : " + rProperties.ODBCSource);
        crConnectionInfo.ServerName = rProperties.ODBCSource;
        log.writeDebugLog("DatabaseName : " + rProperties.ODBCSource);
        crConnectionInfo.DatabaseName = rProperties.ODBCSource;
        log.writeDebugLog("UserID : " + rProperties.ODBCUser);
        crConnectionInfo.UserID = rProperties.ODBCUser;
        log.writeDebugLog("Password : " + rProperties.ODBCPassword);
        crConnectionInfo.Password = rProperties.ODBCPassword;
        foreach (CrystalDecisions.CrystalReports.Engine.Table table in report.Database.Tables)
            TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
            crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
            table.ApplyLogOnInfo(crTableLogOnInfo);
    catch (Exception err)
        log.writeLog("Error Loading Report: " + err.ToString());
        this.lblError.Text = err.ToString();
        this.ErrorTable.Visible = true;
        this.ReportTable.Visible = false;
        return;
    CrystalReportViewer1.HasCrystalLogo = false;
    CrystalReportViewer1.ReportSource = report; // _serverFileReport;

  • Crystal reports viewer will not prompt for parameters

    Help,
    I can not get crystal report viewer to prompt for parameters when called from IIS 8 on Server 2012 r2
    I can get crystal report viewer to prompt for parameters when run from vs 2010 built in web service.

    Thanks,
    The solution for me was to uninstall the latest crystal reports runtime 13.10.x and install 13.6.x instead.
    Thanks anyway.

  • Report Preview in CMC keeps prompting for parameters ...

    Dear Experts, I am trying to see the preview of a report in CMC (CMC -> Folders -> Browse to the report and then click on review). It prompts for parameters and I enter the parameters. The report shows the result but then prompts for the parameters again. I check the same report in Dev and QA and they work. All these systems have same configuration, same version of IE and same settings. I check them all.  Kindly point out if I'm missing something. I appreciate any help.

    Hi
    what exactly do you mean by:
    The report shows the result but then prompts for the parameters again
    Is your report shown and after X seconds it prompts again for the parameters automatically?
    Regards
    Stratos

  • Stop Crystal from Prompting for Parameters

    Hi there,
    I am trying to stop Crystal from prompting for a parameter that has the Optional Prompt flag set to True as I want to use the HasNoValue attribute to retrieve all records when there is not a specific value sent to the parameter.
    When the parameter is created from a store procedure, I can simply set the value to nothing and handle the resulting NULL in the procedure.
    I was expecting that I could do the same for the regular parameters but this returns a "parameter field and parameter field current values are not compatible" error.
    I have tried setting the HasCurrentValue to True but this is a read only attribute.
    I have also tried setting the Viewer.ReuseParameterValuesOnRefresh to False (and True) but the report still prompts for the parameter.
    I have searched the web for the last two days and have had no joy on this so any help or pointers would be appreciated.
    Thanking you in advance

    Hi Don,
    I am using Crystal 2008 for both the report and the assemblies.
    Using the word All is not really an option as I need to process all types of parameters i.e. Boolean, integers and dates as well as strings.
    I could create some complex formulas to handle this but I need the report creation to be simple as possible as possible so that the customer can create reports at will.
    Using the Optional Prompt feature now available in 2008 I can create a simple record selection formula that looks like something like this :-
    (not HasValue({?MyParameter}) OR {Table1.Field1} = {?MyParameter})
    My problem is getting the parameter to register through my code that it has been set to HasValue = False so that the user is not prompted by the viewer to enter the parameter again.

  • Not Prompting for Parameters in .jsp page

    Post Author: montgomm
    CA Forum: General
    We have defined an input parameter to our report and it will successfully prompt for the input parameter within the designer preview.  However, once we build a .jsp page to contain the report and load it to our server, when we run it, it never prompts for any parameters. It does display the report in the .jsp, but it appears to be always running for the last parameters that we entered for the report in the designer.Any suggestions on correcting this?Is there any good documentation on parameter passing in .jsp pages?

    Yes.
    You can create a form in one jsp and have it's value sent in a parameter key to another jsp file identified as the action target.
    Here is code for first jsp file (i.e. first.jsp). This will give you a text input box and a submit button labeled sendit.
    <form action=second.jsp>
    <input type=text name=filename>
    <input type=submit name=Submit value="SendIT">
    </form>
    Here is code snibit to get the param in the second jsp file (ie. second.jsp)
    StringBuffer theparam = new StringBuffer();
    theparam.append(request.getParameter("filename"));
    out.println("The second jsp got param=" +theparam);
    Hope you get it workin'
    Gregg

  • Prompt for parameters, but save password

    I have a report that prompts the user to select a date range for query results.  I am using a 3rd party program to view the report.  Under Report Options, I have disabled "save data with report" so that it prompts for the dates each time the report is opened.  The problem is that is also prompts for the password to the database.  Is there a way to set up the report to ask for a date range, but not ask for the password each time?  The third party program does not prompt for the password, so when trying to view the report, it just errors out.  I am new to CR, so I've only being doing this for a couple of day.  Thanks.

    Hi Dustin,
    You said you are using 3rd party program ?  What is this program ? Is it developed using .net or Java ?  If this is java based of .net based then you can pass user login information through coding.
    Otherwise it is not possible to stop asking user credentials when you refresh crystal reports.
    Thanks,
    Sastry

  • Infoview not prompting for parameters

    Hi all,
    quite basic question but I have spent hours on this now so decided to ask.
    I have a Crystal report based on BW query which has date range as mandatory variable.
    How do I control whether the Crystal report promts for that variable or not when opening. When I open the Crystal Report from INfoview it does not prompt for this parameter, although it did so previously.
    Is the setting with the paramter in the CR or with report options?
    thanks

    Hi,
    can you please check if the option Save data with the report is selected? You will find this under the File menu in the CR designer. If the option is selected then the report will not try to fetch data from the database when opened and therefore will not prompt you for the date variable. In this case you will have to refresh the report explicitely in the InfoView
    Regards,
    Stratos

  • 11 Release 2 Activex viewer prompts for parameters even after I set them in the program

    My program worked in 11 base.  I upgraded to 11 Release 2 and now the viewer prompts the user for the parameters even though the program has set the parameters
    here's some of the code
    Dim aCRreport As CRAXDRT.Report
    Dim crystalParms As CRAXDRT.ParameterFieldDefinitions
    Dim crystalParm As CRAXDRT.ParameterFieldDefinition
    Set aCRreport = m_CRapp.OpenReport("c:\somereport.rpt")
    Set crystalParms = aCRreport.ParameterFields
    Set crystalParm = crystalParms(1)
    crystalParm.SetCurrentValue FormatDateTime(Now, vbShortDate), crStringField
    frmViewer.CRViewer1.ReportSource = aCRreport
    frmViewer.CRViewer1.ViewReport
    the viewer opens and asks for a value for parameter one. 
    Thanks, in advance, for any help

    I got the same problem. I could encounter it does appear when using date parameters. We are using german OS and german VS6 so date is localized as "dd.mm.yyyy" but in the report parameter fields it is expected as "jjjj-mm-dd". I cant convert the param in code because it will always be localized to german date.
    Could this be the problem? When yes why isn't crystal reports accepting localized dates?

  • How to prompt for parameters (with details, please)

    Post Author: RainbowRiver
    CA Forum: Data Connectivity and SQL
    I have spent all afternoon on this. It should be fairly simple, but I just can't figure it out and the documentation is not helping.
    This is how the SQL Server stored procedure looks in Query Analyzer, and it works just fine:
    DECLARE @startDate datetimeDECLARE @endDate datetimeSET @startDate = '2007-11-01'SET @endDate = '2007-11-30'EXECUTE MonerisTransaction_ReportNotReconciledByDate @startDate, @endDate
    I have two parameter fields on the report for the two parameters of the stored procedure.
    In the database expert, if I select the stored procedure and click ">" to add it to the selected tables, there is no error message, but when I run the report, no data is displayed.
    If I add a command instead of a stored procedure, what do I type as the SQL query in the "Add Command To Report" text box? The only way I won't get an error message is if I enter the entire five lines of code above. I can add parameters by clicking the "Create" button, but if I don't enter the five lines of code above and I click OK, I get an error message that the start date parameter is missing.
    Why does it have to be so complicated?
    Can anyone help me? My job is at stake!

    Post Author: RainbowRiver
    CA Forum: Data Connectivity and SQL
    I've figured it out for those who have the same problem.
    On the Database Expert screen:
    1. Expand the "Current Connection" node.
    2. Right-click "Add Command" under your connection and select "Add Command to Report" from the drop-down menu.
    3. On the "Modify Command" screen, in the text box with the header "Enter SQL query in the box below", enter:
    DECLARE @organizationID intDECLARE @date datetimeSET @organizationID = {?organizationID}SET @date = {?date}EXECUTE Report_ReconciliationSummary @organizationID, @date
    4. Still on the "Modify Command" screen, In the list with the header "Parameter List", create the following parameters:
         organizationID
         date
    5. Click OK.

  • Prompt for Parameter

    Hello,
    is there a way to prompt for parameter on opening report? Also, is there a control that can be placed on the report to prompt for new parameters?
    Thanks

    Have a look at the 3rd-party viewers listed at http://www.kenhamady.com/bookmarks.html they would all prompt for parameters directly.
    To address the question about placing a parameter as a control on the report layout, there's a short video demonstrating how this is done with my DataLink Viewer software: see [video demo|http://www.milletsoftware.com/Download/DLV_Demo_Click_to_Change_Parameter/DLV_Demo_Click_to_Change_Parameter.html]

  • Report should prompt me for parameters, please help.

    Hi All,
    I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not prompting me for parameters, rather it is giving me the copy which we had scheduled earlier. To get the fresh data with different parameters, we again need to schedule the report.
    What I want is simple, Whenever user clicks on the report link in infoview, I should be promted for the parameters my report is using.
    Please help..
    Thanks
    -Azhar

    Hi
    It would prompt whenever it's refreshed.
    You can refer to Business View manager guide from [here|http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bv_admin_en.pdf ] for detailed information.
    Hope this helps!!
    Regards
    Sourashree

  • Crystal Report Viewer Credential Prompt for Report with Dynamic Parameters

    The .NET Crystal Report Viewer is prompting for database credentials when launching a report containing dynamic parameters. This only occurs for reports created with SAP Crystal Reports 2011 designer. Reports created with Crystal Reports XI designer (where dynamic parameters were first introduced) work correctly.
    The credential prompt window contains the following fields:
    - Server Name: <server name> (disabled)
    - Database Name: <database name> (disabled)
    - User Name: <empty> (enabled)
    - Password: <empty> (enabled)
    - Use Single Signon Key: false (disabled)
    The values in the prompt window which are disabled are the database connection values used during the design of the report in the SAP Crystal Reports 2011 designer.
    Expected Result:
    - No prompt for database credentials.
    - Values read from the database should be populated in a drop down for the dynamic parameters.
    Environment:
    - Visual Studio 2010 (C#)
    - Windows 7 Enterprise
    - SAP Crystal Reports runtime engine for .NET Framework 4
    - SAP Crystal Reports, version for Visual Studio 2010
    - SAP Crystal Reports 2011
    The database connection is being set to use a DSN. It must be a DSN as the calling application is only aware of the DSN/Username/Password values. These values are being passed to the Crystal Report Viewer contained in a Windows form.
    The database connection for the report is being set as follows:
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection otherwise the connection does not work
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Supposed to set the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    The SetConnection method's signature is as follows:
       SetConnection(string server, string database, string name, string password)
    As you can see from the code snippet above I am setting the DSN name as the server parameter, blank for the database parameter (a database connection using DSN should only require DSN name/Username/Password) and the database username and password respectively.
    Is this a SAP bug?
    Is this the correct way of setting the database connection to use a DSN?
    Is there some other properties that need to be set somewhere else in the report through code?
    Any help would be greatly appreciated.

    Thanks for the pointer to the database connection code generator. After taking a look at the output from the tool I was able to finally get the dynamic parameters to load and populate properly without prompting for credentials. I needed to tweak the outputted code a bit to match my requirements of using a DSN only connection.
    Instead of updating the database connection properties contained within the Report.Database.Tables collection from the CrystalReports.Engine namespace, I changed it to replace the database connection properties in the Report.ReportClientDocument.DatabaseController.Database.Tables collection from the CrystalDecisions.ReportAppServer.DataDefModel namespace. For one reason or another, using the RAS namespace solved the problem.
    Below is the updated code with the change made:
    using RAPTable = CrystalDecisions.ReportAppServer.DataDefModel.Table;
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Sets the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    // The attributes for the QE_LogonProperties which is part of the main property bag
    PropertyBag innerPropertyBag = new PropertyBag();
    innerPropertyBag.Add("DSN", this.DSN);
    innerPropertyBag.Add("UserID", this.LoginName);
    innerPropertyBag.Add("Password", this.Password);
    innerPropertyBag.Add("UseDSNProperties", "true");
    // The attributes collection of the tables ConnectionInfo object
    PropertyBag mainPropertyBag = new PropertyBag();
    mainPropertyBag.Add("Database DLL", "crdb_ado.dll");
    mainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
    mainPropertyBag.Add("QE_LogonProperties", innerPropertyBag);
    // Pass the database properties to a connection info object
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.Attributes = mainPropertyBag;
    connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    connectionInfo.UserName = this.LoginName;
    connectionInfo.Password = this.Password;
    // Replace the database connection properties of each table in the report
    foreach (RAPTable oldTable in this.report.ReportClientDocument.DatabaseController.Database.Tables)
        RAPTable table = new RAPTable();
        table.ConnectionInfo = connectionInfo;
        table.Name = oldTable.Name;
        table.QualifiedName = oldTable.QualifiedName;
        table.Alias = oldTable.Alias;
        this.report.ReportClientDocument.DatabaseController.SetTableLocation(oldTable, table);
    this.report.VerifyDatabase();
    Thanks again Ludek for the help.

  • Prompting for password and username only when using dynamic parameters

    Post Author: Co3023
    CA Forum: Crystal Reports
    How do I stop CR XI prompting for password and username only when using dynamic parameters. When no dynamic parameters are used CR XI isn't prompting for the DB user name and password. The report is run from an application which passes the user name and password. I am using Oracle and the problem is both with the native oracle driver and the ODBC RDO driver.

    Post Author: jehanzeb
    CA Forum: Crystal Reports
    I didnt ask you to change it to static I said I took the parameters totally out of the report. Saved it. Then re-enter the dynamic parameters into the report and it worked for me. That might have worked for you, not sure why you changed it to static.
    Ok I have just created a quick report using dynamic parameters, it didnt ask me for the username password.
    Can you create a sample report - just to test the db? and see if it works? add only 1 or 2 fields in the report, create parameters (dynamic) and see if it works
    why don't you embed the username and password in your application, it won't ask for username password then.

  • Not prompting for the parameters of stored procedures while running

    Hi All,
    I have a stored proc which takes in 3 parameters and execute a copy of a record in a table based on the 3 parameters which I pass in.
    When I use the proc in crystal reports (Crystal Reports 2008), it is not prompting for the parameter values if we execute the report directly. It's prompting the values only when I do 'Veriyf Database' from the menu. Why is it not prompting for values when executing directly. Am I missing anything here?
    Also, I have a C# .net project which uses the report and take in input parameters. Even there, previously, I used to call the VerifyDatabase () first and then the SetParameterValues () which was working fine for regular expressions. But for this report (which uses stored procedure), it is not giving the desired output (copying data), even though the report doesn't fail to run. But when I changed the order of the call to have SetParameterValues () before the call to VerifyDatabase (), it works fine (copies the data for the given input parameters).
    Please let me know what is missing here? Is the order of the call to VerifyDatabase () and SetParameterValues () matters? If so, why is it working for regular expressions and not for stored procs?
    Please clarify.
    Thanks,
    Siva.

    I recommend posting this to the Crystal Reports Design forum. As I read it:
    When I use the proc in crystal reports (Crystal Reports 2008), it is not prompting for the parameter values if we execute
    the report directly. It's prompting the values only when I do 'Verify Database' from the menu. Why is it not prompting
    for values when executing directly. Am I missing anything here?
    The issue is in the CR designer 1st. So it needs to be resolved there before moving on to the CR SDK in .NET.
    Link to CR design forum:
    SAP Crystal Reports, version for Visual Studio
    Ludek

Maybe you are looking for

  • Is Aperture 3 the best software for working on a databse of images from different photographers?

    Hi everybody, I have only been using Aperture for a few months and am unsure of its suitability for this project. It seems to me that Aperture is designed for the photographer who wants to work on his own photos. I need to select, re-name, add metada

  • Design questions - beginner

    Hello, I'm just getting started with BDB XML and the resources here have been very helpful. To play around with it, I imported 100,000 records from my relational db into BDB XML. I imported it as one document that sort of looks like this: <people> <p

  • WS14500015 - n-step WF, item based

    Hi Guys, I'm developing an item based approval WF for my customer (WS14500015), using the BAdI BBP_WFL_APPR_WORKFLOW, Method GET_REMAINING_APPROVERS. I have the situation, that a SC (BUS2121) is created with two items, the approver list looks as foll

  • Passing Hashmap to Oracle SP

    Is there a way to pass a Hashmap to an Oracle stored procedure? I already know how to pass an Array, but I need to pass something resembling a Hashmap. Can this be done at all? I posted this question on the JDBC forum and no one seemed to know. Figur

  • SMS_Migration_Manager Component Stopped Unexpectedly: 1104

    We have a few secondary sites that have errors regarding the SMS_MIGRATION_MANAGER component stopping unexpectedly.  Errors occur every hour while the component is stopped.  The component cannot be started using Services Manager.   From migmctrl.log: