Prompt for report parameters

Is it possible to change the parameter prompts using a function?
I'm looking to use a look-up based on a culture code for two different languages and I don't want to re-create a suite of 20+ reports.
Fingers crossed that some clever sole has a solution...

A very simple solution below, any problems give me a shout...
ALTER PROC DynamicSelect(@Lang NVARCHAR(20)) AS BEGIN
IF @Lang IN ('en-GB','en-US')
SELECT '1' val,'en_1' lang UNION
SELECT '2','en_2'
IF @Lang='de'
SELECT '1' val,'de_1' lang UNION
SELECT '2','de_2'
END
Create a new paramter @Lang, set this parameter to hidden, and set the default value to the language of the report user as below.
Add the dataset from the proc above, and set as you require.

Similar Messages

  • CM14 BI Publisher Prompt For Reporting

    I am trying to re-create the Prompt For reporting from Infomaker in CM14. Does anyone have any potential solutions to this problem?

    I ran into this issue on a previous project and did some poking in BI Publisher to try and come up with something. I am not sure if there is a better way to do it, but I have a doc with the steps I followed that I can send you that outlines how to get prompts to work.

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

  • 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

  • Dashboard prompt for report which displays curent and previous FY

    We have a dashboard with the prompt for the FY and one of the reports on the dashboard should show results for selected FY and previous FY. Report has filters Fiscal Year is greater than or equal to PREVIOUS_FSCL_YEAR AND Fiscal Year is less than or equal to CURRENT_FSCL_YEAR. However if filters are not protected report will display only results for FY selected in prompt but if they are protected it will then ignore prompt. Any idea how to resolve this issue? We need this solution if FY 2009 is selected in the prompt report will display results for FY2008 and FY2009 or if FY 2010 is selected report will display results for FY2009 and FY2010.
    Thanks
    Tatjana

    Hi,
    You can do this by creating a dynamic variable in the RPD for the current year as:
    SELECT (TO_CHAR(sysdate,'YYYY')) from dual. This will produce Current Year value.
    In the Answers for the report which refers to the Year Column. Make a filter from the Year Column. While making filter Click on 'Advanced' in the Filter--> Convert this filter to SQL. And inside it write this forumla: Column_name_will come=VALUEOF(Dynamic_Variable_Name)
    For Example-"Time Period Year"."Calendar Year" = VALUEOF("Current_Year_Var")
    Make similar filter and write the SQL Filter as- "Time Period Year"."Calendar Year" = VALUEOF("Current_Year_Var")-1
    (This will give you the last year value)
    And important is make it as 'OR' condition between the two filters.
    Hope this will resolve your problem. Let me know further
    Regards
    MuRam

  • Dashboard prompts for passing parameters to BIP reports

    We have BIP reports that we want to display on a dashboard.
    These reports are driven by parameters, which we need to display on the dashboard.
    From what I understand from the documentation, Dashboard prompts can be used for that with the presentation variable having the same name as the BIP variable.
    however, i am not able to get this to work.
    Our reports are not using any subject area and are BIP reports based on SQL query data sets.
    Our parameter is also based on a SQL query.
    Has anyone done this before? Any help will be appreciated.
    Thanks
    -anupma

    Check this
    https://blogs.oracle.com/xmlpublisher/entry/running_bip_reports_in_biee_wi

  • Multi-Select LOV for Report Parameters

    I have a LOV defined in Oracle Portal as a Multi-Select LOV. When I assign this to an optional report parameter when defining a reports definiton file and run the parameter screen, it comes up as a combo box. Is a combo box the only type of LOV I can use for an Oracle Reports Parameter.
    Thanks
    Jody

    With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
    To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too.

  • Change values for report parameters

    Post Author: Galen Chen
    CA Forum: .NET
    Hi All,
    I am trying to set the values for the report paramenters which are datetime type. But when I tried to set like
    .SingleValue.Value = Now()
    I got "One or more arguments are invalid.".
    If anybody know what this means, please help. Thanks
    regards
    Galen

    Post Author: quafto
    CA Forum: .NET
    Check out the samples published here http://support.businessobjects.com/communityCS/FilesAndUpdates/sample_applications_for_.NET_developers.pdf.asp?recDnlReq=Record&dnlPath=sample_applications_for_.NET_developers.pdf.
    Or review the documentation on the Developer Zone on passing parameters, http://devlibrary.businessobjects.com/. I don't know of any property called "SingleValue" in the .NET SDK so I'm not sure where you got your code from.

  • Prompts for Reports

    I have created a report with column prompt. I have also included this report in 'My Home Page custom report'. But when i access 'My Home Page' i dont see the Prompt, i only see the report with all columns & data. Have i skipped some step to include prompt on home page ? Thx for help

    Hi,
    The Column prompt of the report will not be displayed if the report placed in 'My Home Page custom report', if the same report URL is placed in the Home Page Web Applet in *‘Global Web Applets’* the prompts will be displayed, and only after selecting the prompted values the detail report is displayed.
    Regards,
    Lokesh

  • 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

  • Date Prompt (for summary by date report)

    hi there,
    i just created this report to view the distribution of stocks by range of dates. I created 2 parameter fields start and end date and threw them in the report. But now i am stuck as when i upload the report with salesforce.com online i dont get a prompt to select the dates.
    any solution for this? thanks guys.
    Ankur

    Make sure the "Save data with report" option is turned off and then upload the report to crystalreports.com and it should prompt for the parameters as soon as you open the report.  Otherwise, it just loads the report with the saved data and no prompt.  Hopefully not too late to be useful.

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

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

  • Value sets and Report Parameters

    Hi
    these are my requirements
    i have developed report using scott where the
    parametes are
    dname
    empinfo
    (1)If i select Department 1o then
    in parameter empinfo should display the value only from department 10
    (2) i have created a value set for report parameters empinfo
    it only shows two columns like EMPNO AND eNAME AND THERE only two column space to be shows
    how could i make columns to be displayed in addition to ename and empno
    Regard

    Hi KittyCat101,
    If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
    Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
    Right-click the tablix or dataset to open the properties dialog box.
    Select Filter in the left pane, then add a filter like below to filter Status field:
    Expression: =Fields!Status.Value like (Parameters!Status.Value & "*")  Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Unable to delete some files

    I have some audio files that appear only in smart lists and not in the library. You can't delete a file from a smart list view (correct me if I'm wrong) so you have to find it in the library to delete it. It doesn't appear in the library - so I canno

  • How to play exe files on a mac

    I am trying to play videos from a security camera.  It has a BK installer which has an .exe file to play .ssf format.  I have tried WINE but I wan not able to view the vdeos.  Any suggestions?

  • The Perfect Accessory!

    A Verizon Cell Phone! I love my iPhone for everything except actually making calls. I purchased the iPhone the second day it went on sale and did not port my # from Verizon, and have been carrying my Verizon cell phone around along with me to make ca

  • Symbol Std with FM?

    In a thread a while back, Harald Brandt mentioned that Symbol Std was installed with FM 8.   Does anybody know if it's also installed with FM 9 or Acrobat Pro 9? I'm trying to troubleshoot somebody else's FM9 install, but I don't want to have to rein

  • Color shift on Export

    I am getting a slight color shift when I export or open in Photoshop CS3. It is very similar to the shift that happened with Bridge CS3 beta before they updated it. The shift seems to be a decrease in brightness, color and contrast. My settings in Li