Dynamic Parameters - DB Connections

<p class="ssiBODYCOPY">Hello...<br /><br />I am using CR XI with Oracle 9i DB.<br />I have multiple reports using Dynamic parameters.<br />When i run the report it&#39;s creating separate DB <br />connections for each parameter. Is there anyway i can <br />setup the report so it will use only one connection for <br />all the dynamic parameters..<br />Appreciate your input!<br /><br />Thank you</p>

If this is the same as the problem I had a few years ago, it was a parameter in the database setup rather than an option you could control from your client end.  Although it appeared that I was establishing multiple connections, the connections were actually being created inside the Oracle server.  The effect of the setting on the tables was to establish additional connections for processing transactions when it looked like parallel processing would speed up the system. I don&#39;t remember the full details, but I do remember it got very nasty between the DBA&#39;s and the application developers.

Similar Messages

  • Will Dynamic Parameters remain connect if source system rebuild.

    Hi Experts,
    Will dynamic parameters remain connected if the source SAP system is formatted and rebuild.
    Our Scenario
    Now we pointed our Crystal Reports to SAP Ecc Tables.
    SAP Systems : A
    Client : 10;
    IP : 192.xxx.xx.xx
    Now the SAP Source system is formatting and going to rebuild with Production COPY.
    but the system information (IP,SYS NO, Client No) will remain same .
    My Question is : Do we need to re-point Dynamic parameters in the Crystal reports again? or connection remain.
    Thanks,
    BharathU

    Hi Frischer,
    If the copy is the exact same, meaning the query id, as well as the properties of the query are exactly the same, then it would work, as far as I know.
    Even the prompts have id's and measures and dimensions too. If those are not the same, then I believe that you would need to remapp.
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • Crystal Reports Dynamic Parameters with SAP Business One

    Okay, I've got this very strange issue with dynamic parameters in Crystal Reports connected to SAP Business One.
    Let's start with the software versions:
    - Crystal Reports 12.3.0.601
    - SAP Business One 8.8 (8.80.231) SP: 00 PL: 13
    - Windows XP SP3
    (SBO Server on Windows 2003 and SQL 2005)
    What I'm about to describe is something I've tried in several reports and for which I created a very, very simple test report to see if it was reproducible in a very simple situation.
    - I connected to a Business One server through CR's SBO connection type. Logon is successful, tables are shown.
    - I pick OCRD and plac CardCode and CardName in the details section on the report. Previewing the report shows data.
    - I create a dynamic parameter on CardCode and in the Select Expert I select the CardCode field and define that that should be equal to the parameter.
    - I preview the report again. Now it asks me in such a parameter screen for logon credentials. It shows the server and database it tries to connect to and in the username it shows the SQL Server username I used to connect to the SQL Server in the first place. However, the password for that user is not accepted. I also tried to login with the Windows administrator user and with the SBO manager user, but no success with any attempt.
    I also tried to add a static parameter and add all database values to the list. Same screen, different result:
    Crystal Reports 2008 wrote:
    Logon Failed.
    Error in File UNKNOWN.RPT:
    Unable to connect: incorrect log on parameters. (rptcontrollers.dll)
    (On a side note: the report is saved as report1.rpt)
    Anyone else got similar issues and found a solution?

    Hi,
    When you have fixed your crystal installation following the note posted earlier, please take a look at the [how to guide|http://service.sap.com/sapidb/011000358700000882232009E.pdf] and also at the [e-learning|http://service.sap.com/sapidb/011000358700001370262010E] about SAP Business One 8.8 and Crystal Reports.
    There are so called "tokens" which you need to use instead of dynamic parameters.
    Dynamic paramters don't work in SAP Business One 8.8, if they are not defined as a static paramter with token.
    Best regards,
    Darius

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

  • How to query repository to determine Dynamic parameters used by a report

    Using BOXI 3.1 SP3
    Windows 2008
    .NET
    SQL 2008 Database
    I would like to query the repository to figure out which report is using which a dynamic parameter and then to figure out the name of that dynamic paremeter.
    The issue is the when I publish a report with Dynamic Paremeters from CR2008 to BOXI, BOXI will automatically create all the underlying connections and also rename the parameters if there is a duplicate.  I have a situation where there were over 100 +reports published and thru repository explorer in CR2008, it's impossible to tell which parameter belongs to which report.
    I would like to find in the repository the name of the dynamic parameters being used by the report.
    If I query CI_INFOOBJECTS, it does have the prompts and the original name (SI_NAME).  I don't know if it's possible thru Query Builder to query and find this result, or whether I need to write some .NET code.  The only hint in CI_INFOOBJECTS that a report has dynamic parameter is thru SI_GROUP_ID = eor://HOECRS02.NA.XOM.COM:6400/AVDGc3Df_G5Ej9HoJqO3V2g
    All dynamic parameters have SI_GROUP_ID populated.....but not sure how to use this unique value AVDGc3Df_G5Ej9HoJqO3V2g  which appears to be a SI_CUID but not sure what to query next to get more information.
    If anyone has a query built already or some code to point me in the right directiion, that would be greatly appreciated.

    The best way to determine what your wattage draw is is to purchase a killawatt meter. They are relatively inexpensive (20-30 bucks).
    http://www.amazon.com/P3-International-P4400-Electricity-Monitor/dp/B00009MDBU/r ef=pdbbs_sr1?ie=UTF8&s=hi&qid=1209640995&sr=8-1
    Glor

  • Scheduling Repot in InfoView - Dynamic Parameters.....

    If I have some parameters set as dynamic and I try to schedule the report through InfoView....the login prompt appears.  I do not want my users to have to log in ever.
    I have the database configuration set - To Use original database logon information from the report and To Use same database logon as when report is run.  When I view a report on-demand I don't get the prompt.
    Does anyone know how I prevent the login prompt from appearing when a report is scheduled and has dynamic parameters?  We do not want our users to have SQL id's to the database - only Infoview logins.
    Thanks in advance for your help!

    Hi Lisa,
    When you create a dynamic prompt in Crystal and save the report to enterprise a business view will be created in the repository automatically. This Business View will have a datasource associated with it (used to connect to and obtain the dynamic list of params from the DB).
    It is on this datasource that you need to manually code the login details and select do not prompt at runtime. You can do this by using the Business View Manager Tool. Best practise for managed reports is to create your dynamic lists first in Business View Manager not Crystal and then present these to your report developers - this will give you some central control over the lists.
    See Crystal Reports user guide/Business View administrator guide.
    Hope this helps.
    James

  • Last value in hierarchy of Dynamic parameters is not working in BO CMC

    I have a crystal report with dynamic parameters up to 4 levels (Hierarchy of 4 levels) that is developed on version 12.3.0.601 which is working fine on my system... But when the same was uploaded on Business Objects Central Management Console version is 3.1x first 3 hierarchies are populating fine but when comes to 4th hierarchy I am only getting the values that are linked to First Value of 2nd hierarchy.
    Example:
    If I take the example of the organization following is the hierarchy.
    1st : business head  // One Value
    2nd : Project head  // 4 values (p1,p2,p3,p4)
    3rd : Team head     // 1 value
    4th:  developer       // 2 values for every project head  that means total of 8 values.
    If 2nd hierarchy is p1,p2,p3,p4 then I am getting only 2 values of P1, In the same way if 2nd hierachy is p2,p1,p3,p4 then I am getting only 2 values that is of P2... but in real I need to total of 8 values because of all 4 parameters are selected at run time in 2nd level of hierarchy.
    I have tried all possible combinations of dynamic paramters but nothing was working for me...
    Problem is only in Business Objects CMC where the dynamic parameter is prompt is wrong in dev system everything is correct.
    Experts please help me in this.. I hope I have explained it clear... If not please let me know will provide more information.
    Thanks for your time.
    Siva
    Message was edited by: siva kumar

    " there are more than 170 similar list of values as _1, _2..._170"
    That's what happens when you build your prompts in the report and chose "update the repository" every time you save it to BO.
    For the future, you have a couple of options for initially creating dynamic prompts:
    1.  Create them directly in the BVM (all of the various pieces...)
    2.  Create them in Crystal, publish them to the repository only the first time you save the report, and then use the BVM for any maintenance.
    3.  Create a "dummy" report that just has in it the data you need for a single dynamic prompt.  Then create a dynamic parameter in the report based on that prompt.  Save it to your favorites folder, making sure that you update the repository so that the LOV gets created.  Again, use the BVM for any maintenance. (My personal favorite way to do these...)
    For options 2 and 3, a _DC will be created each time you update the repository.  However, best practice is to have a single "common" _DC for each database you connect to.  So, after saving the LOV you would then open the BVM, modify the _DF so that is points to the correct "common" _DC and then delete the new _DC.
    What I would do in your current situation depends on how many reports you have that access the same type of dynamic parameter.  If you have one or just a few reports using this same 4-level hierarchy prompts, I would do the following:
    1.  Delete all but the first set of BVM objects for the LOV (the ones without any numbers on the end).
    2.  Edit this set of BVM objects so that it has all of the information you're looking for.
    3.  Edit each report and set the dynamic parameter to point to this single LOV.
    If you have more reports than you can comfortable edit right now, I would still modify the first set of BVM objects to set them up as the common LOV.  Then you can do this:
    1.  As you edit each report, log on to the repository (on the File menu or in the Repository Explorer).
    2.  Edit the parameter and determine which set of objects it's pointing to.
    3.  Point the parameter to the common LOV.
    4.  Open the BVM and delete the set of objects that you found in step 2.
    -Dell

  • Published report requesting DB Login for Dynamic Parameters - V2008

    I have a report that is setup as a main report with many sub-reports. The Main report request a set of parameters all are dynamic and 4 are cascading. The sub-reports access one of 2 database connections and the dynamic paramters come from only one of those.
    It works fine in design mode and asks for the DB Credentials only once, but when I published it (Crystal Reports Server 2008) and I set the default DB Configurations (I make sure the Use same database logon as when report is run is checked) , it still prompts for the DB Login in InfoView when you go to View the report, but only the connection for the dynamic parameters.
    Have I just totally confused Crystal or is there a setting I am missing.
    Thanks,

    Bumping this to the top since I have not received any replies.

  • I'm getting the below issue when I try to deploy a report with Dynamic parameters, when I deploy it with static parameters I'm not getting this issue.

    I’m getting the below issue when I try to deploy a crystal report with Dynamic parameters in BI Launch Pad, when I deploy the same report with static parameters I can deploy and run it. I have Restarted the BI server, still the issue exitno use. kindly help me on this issue.
    “This error occurred: Adding Crystal Report "CrystalReport1.rpt" failed. The server with kind rptappserver returned an error result. Failed to copy the report file to the report object. Refreshing the report object properties might have failed. Failed to read data from report file CrystalReport1. Reason: Failed to read parameter object”.

    BO does not run dynamic params through the report as would happen without BusinessObjects (BO) or Crystal Reports Server (CRS).  When you publish a report with dynamic parameters to BO/CRS, the prompt is published to the repository so that it can be accessed through the Business View Manager (which can be installed as part of the client tools).  In order for this to work a couple of things need to happen:
    1.  You need to be sure that you check the "Update Repository" box on the Save As screen the first time you publish the report.
    2.  Your BO/CRS user needs to have "view" access to the Crystal2013ReportApplicationServer in the Servers section in the CMC - in fact, the Everyone group should be given view access to the server in order for dynamic prompts to work correctly.
    3.  In the Business View Manager, the Administrator user needs to give your user, or, even better, a Crystal Developers group full control access to the "Dynamic Cascading Prompts" folder.
    Best practice for dynamic prompts in a BO/CRS environment is to actually create the prompts in the Business View Manager.  This will allow you to create a single data connection that can be reused and also create lists of values such that the same list or prompt can be reused by multiple reports.  If you just create the prompts in Crystal, you will end up with multiple data connections to the same database, the prompts will use the whole query for the reports to get the dynamic values instead of just a focused query to the lookup table that contains the values, and there ends up being lots of duplication and chaos.
    -Dell

  • Dynamic parameters data source

    Database: Sybase ASA 9
    Crystal: Developer 11 SP4 , activex viewer
    Application: Powerbuilder 11
    I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
    Following is in short the code I use:
    FOR li_table = 1 TO iole_crx_report.database.tables.count
    // get connection properties collection for this table
    iole_crx_connection_info = iole_crx_report.database.tablesli_table.connectionproperties
    iole_crx_connection_info.DeleteAll()
    iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
    iole_crx_connection_info.add("User ID",itrx_database_info.userid)
    iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
    iole_crx_connection_info.add("UseDSNProperties",TRUE)
    iole_crx_connection_info.add("AllowCustomConnection", TRUE)
    NEXT
    iole_crx_Database.Verify()

    Hi Ludek,
    Thanks for the reply.
    The machine that I am testing on have an installed version of CR 11 SP4 development. I can change the report source for any report that does not have dynamic parameters. At the moment the reports that I am testing does not have subreports. It is a very simple two table report using dynamic parameters.
    Changing the datasoure programmatically with both data sources (DB servers) running on the machine eveything works fine. When I refer to the two data sources I mean the data source that was used to create the report and the datatsource that I want to change to in the application to retrieve data from.
    Does reports with dynamic parameters auto create subreports for the dynamic parameter(s) ?
    I have tested this and it does not seem so. That could have possibly explained this.
    I hope this gives you a clearer idea of what is happening?

  • Crystal Reports dynamic parameters data source

    Database: Sybase ASA 9
    Crystal: Developer 11 SP4 , activex viewer
    Application: Powerbuilder 11
    I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
    Following is in short the code I use:
    FOR li_table = 1 TO iole_crx_report.database.tables.count
    // get connection properties collection for this table
    iole_crx_connection_info = iole_crx_report.database.tables[li_table].connectionproperties
    iole_crx_connection_info.DeleteAll()
    iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
    iole_crx_connection_info.add("User ID",itrx_database_info.userid)
    iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
                                                  iole_crx_connection_info.add("UseDSNProperties",TRUE)
                                  iole_crx_connection_info.add("AllowCustomConnection", TRUE)
    NEXT
    iole_crx_Database.Verify()

    Hi, Johan;
    There is no SDK option to change the datasource that the dynamic parameters are based on. Your only option would be to change the DSN itself to point to the new database. Or, not use dynamic parmeters.
    Regards,
    Jonathan

  • Showing Dynamic parameters depending on Static parameter

    Post Author: Relais
    CA Forum: General
    Is it possible to show dynamic parameters depending on the selection of the static parameter?For example, I would like to show a dynamic list of Departments, only if u201CDepartmentu201D is selected from the static parameter list.
    Or if u201CCategoryu201D is selected from the static list, then I would like to prompt the user with a dynamic list of available Categories.
    Is this possible or must you always show all parameters?Any feedback would be appreciated.
    Thank you.

    Hi,
    What i would do is in addition to what you already have,  create a new view V-Channel and embed this view as default view in the Window.
    Create 2 outbound plugs (to_view1 , to_view2)
    Create a event in component controller  like event_name is NAVIGATE and the parameter is TO of type string.
    Create a method go_navigation with parameter destination of type string.
    Write your code in this method to fire the Navigation event filling the TO parameter with destination.
    In the V_Channel subscribe to this event NAVIGATE. and write the code for firing outbound plug to_view1 or to_view2 based on the TO parameter value.
    Remember to connect these outbound plugs to the right inbound plugs in the ViweContainerUIElement views.
    In the start-up plug event handler method, retrieve the URL parameters and call the Go_NAvigation method  filling the right value for the destination parameter.

  • Do we have Tool to re-point Dynamic Parameters in multiple crystal Reports

    Hi Experts,
    Do we have any tool to re-point Dynamic Parameters of Multiple reports in a single shot.source of crystal reports is SAP ECC tables.
    Thanks,
    BharathU

    Hello,
    Not sure what this has to do with Database connectivity but the answer is no.
    If you have access to a .NET or Java Developer you can write your own using the SDK.
    Don

  • Running a SQL Stored Procedure from Power Query with Dynamic Parameters

    Hi,
    I want to execute a stored procedure from Power Query with dynamic parameters.
    In normal process, query will look like below in Power Query. Here the value 'Dileep' is passed as a parameter value to SP.
        Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData 'Dileep'"]
    Now I want to pass the value dynamically taking from excel sheet. I can get the required excel cell value in a variable but unable to pass it to query.
        Name_Parameter = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
        Name_Value = Name_Parameter{0}[Value],
    I have tried like below but it is not working.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData Name_Value"]
    Can anyone please help me with this issue.
    Thanks
    Dileep

    Hi,
    I got it. Below is the correct syntax.
    Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData '" & Name_Value & "'"]
    Thanks
    Dileep

  • How to schedule a report with dynamic parameters

    We need to schedule a Webi report with dynamic parameters then email the different result to different email groups.  Is it possible to do this in scheduler? Please advise. Thanks.

    there are 2 schedulers
    1st  CMS
    the reports which does not have any input parameters, only then t can be scheduled in CMS
    2nd in Infoview
    if report has input parameters and if you want to schedule it, then you may need to schedule the report from Infoview
    To have a email notification
    configure the SMTP server in report JOB Server
    Thanks,
    Ganesh

Maybe you are looking for

  • PDF's open up in a new window

    Hi, We have a implementation of Oracle Reports for a new web application. The parameter page is presented using Oracle Reports. When a PDF report is generated it opens up within the browser replacing the parameter screen. The users would like the par

  • Trial version of adobe acrobat 9 pro

    My question is, I am trying to get the program to the read a loud feature, How do I do that? I have text on a PDF file and I need to hear it read to me.

  • Having trouble downloading the update to iTunes?

    After a lot of frustrtaion, I restored my computer to a date before I tried the initial install. Works great - don't need the update.

  • Detecting f10 key

    I'm trying to detect the f10 key but it's just not working. All other function keys are ok, but f10 just hilights the FILE menu item. I've set trapallkeys to true but still no good. Am i doing anything wrong? Thanks

  • Upgrading from SJSE8 to SJSE8.1

    running windows XP SP2 will the 8.1 upgrade recognize the 8 installation and actually upgrade w/o removing the existing projects?? Anything I need to be especially aware of before upgrading?? anything I need to move to ensure it doesn't get deleted i