Setting parameters optimizer_index_caching and OPTIMIZER_INDEX_COST_ADJ

Hi Guys!!
I have to change the OPTIMIZER_INDEX_COST_ADJ and optimizer_index_caching parameters at the system level . is there any way to do that apart from shutting down the database. Version 9.2.0.8 , OS HP-UX . and please give me the procedure for that
Thanks in advance
Vicky

vivky,
I believe both the parameters are dynamic and can be changed without bouncing the db.
I have done it here on my system and it works fine,
SQL> show parameter optimizer
NAME                                 TYPE
VALUE
optimizer_capture_sql_plan_baselines boolean
FALSE
optimizer_dynamic_sampling           integer
2
optimizer_features_enable            string
11.1.0.6
optimizer_index_caching              integer
0
optimizer_index_cost_adj             integer
NAME                                 TYPE
VALUE
100
optimizer_mode                       string
ALL_ROWS
optimizer_secure_view_merging        boolean
TRUE
optimizer_use_invisible_indexes      boolean
FALSE
optimizer_use_pending_statistics     boolean
FALSE
NAME                                 TYPE
VALUE
optimizer_use_sql_plan_baselines     boolean
TRUE
SQL> alter system set optimizer_index_caching=100;
System altered.
SQL> show parameter optimizer
NAME                                 TYPE
VALUE
optimizer_capture_sql_plan_baselines boolean
FALSE
optimizer_dynamic_sampling           integer
2
optimizer_features_enable            string
11.1.0.6
optimizer_index_caching              integer
100
optimizer_index_cost_adj             integer
NAME                                 TYPE
VALUE
100
optimizer_mode                       string
ALL_ROWS
optimizer_secure_view_merging        boolean
TRUE
optimizer_use_invisible_indexes      boolean
FALSE
optimizer_use_pending_statistics     boolean
FALSE
NAME                                 TYPE
VALUE
optimizer_use_sql_plan_baselines     boolean
TRUE
SQL>That said,I shall suggest to be extremely careful when you play with these parameters.
HTH
Aman....

Similar Messages

  • How much OPTIMIZER_INDEX_CACHING and OPTIMIZER_INDEX_COST_ADJ should I set?

    Dear all:
    I use CBO and the default parameter of the "OPTIMIZER_INDEX_CACHING" is 0 and "OPTIMIZER_INDEX_COST_ADJ" is 100 these two parameters will impact of CBO. how much OPTIMIZER_INDEX_CACHING should I set?
    my environment is Oracle 9.2.0.8 (64bit)
    Regards
    Terry

    Terry Chen wrote:
    Dear Nicolas:
    Thank you for your quick reply, I have to say I have to modify the default setting of these parameters ,because we use EBS 11.5.9 and the database is more powerful then ever before and the SQL explain plan still show to do sorting with high cost.So I think I will refer to the articles of the provided and find the answers.
    Before you start playing around with these parameters, have you checked very carefully that you are conforming to the suggestions offered for all the parameters listed in the installation notes for EBS, and doing what you're supposed to do with system statistics ?
    Regards
    Jonathan Lewis

  • Set parameters input automatically in my report and connection to my base

    Hello
    this my programmes , it work it's ok ( see bottom of the page )
    Now i have a rapport rpt with a input edit (example number customer )
    I want by my file jsp that the number customer display automatically
    in my rapport rpt ( variable string or integer or date) and after validate automaticcaly
    and connection to my database automartically ( database oracle 8 user and paswword)
    (by example with my url , i pass a parameters input and automatically i will see
    the rapport rpt ) it's possible , How to make in jsp ?
    thanks to help me
    regards
    Michel
    Ps : Notes fresh  for the connection in my database oracle
    i have modified CrystalReportViewer.jsp but i have an message
    "Information is needed before this report can be processed " why ?
    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%
    CrystalReportViewer viewer = new CrystalReportViewer();
    ConnectionInfos connInfos = new ConnectionInfos();
    IConnectionInfo connInfo1 = new ConnectionInfo();
    connInfo1.setUserName("user");
    connInfo1.setPassword("pass");
    viewer.refresh();
    Object reportSource = session.getAttribute("reportSource");
    viewer.setReportSource(reportSource);
    viewer.setDatabaseLogonInfos(connInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.processHttpRequest(request, response,getServletConfig().getServletContext(), out);
    viewer.dispose();
    %>
    this programmes are ok (but now i search to display a variable on my report)
    via url
    http://pa-81b36a7e9d/businessobjects/enterprise11/desktoplaunch/opendoc/view_report.jsp?sdoc=axeriatest&user=Administrator&pass=&cms=pa-81b36a7e9d
    CrystalReportViewer.jsp
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
         CrystalReportViewer viewer = new CrystalReportViewer();
         viewer.setName("CrystalReportViewer");
        viewer.setOwnPage(true);
        //Enable Active-X print mode. 
        viewer.setPrintMode(CrPrintMode.ACTIVEX);
        //Obtain report source of the report that the viewer will display.   
        Object reportSource = session.getAttribute("reportSource");
        viewer.setReportSource(reportSource);
        viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    view_report.jsp
    <%
    Applies to Versions:     XI
    Creation Date:     Febuary 28 2005
    Description:
                             This sample to demonstrates how to view a Crystal Report on demand in
        *                         the zero-client DHTML viewer. 
    Author:               CW.
    %>
    <%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
                       com.crystaldecisions.sdk.plugin.desktop.common.*,
                       com.crystaldecisions.sdk.framework.*,
                       com.crystaldecisions.sdk.occa.security.*,
                       com.crystaldecisions.sdk.exception.SDKException,
                       com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,
                       java.util.Locale,
                       com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"
    %>
    <%@ include file = "logonform.jsp" %>
    <%
         String cms             = request.getParameter("cms");
         String user             = request.getParameter("user");
         String pass             = request.getParameter("pass");
         String sdocName       = request.getParameter("sdoc");
         try {
             //If logon information is required, display the logonForm and exit.
              //Create a special logon form that requests 2 Report Names
              //(code for LogonForm class is included).
              LogonForm logonform = new LogonForm(response, request, LogonForm.REPORT_NAME);
              //if (logonform.display_if_needed()) return;
              // ici doit recuperer le nom du document
              logonform.reportname[0] =  sdocName ; //"diagramme";
              //Log in.
              IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(user,pass,cms,"secEnterprise");
             //Grab the InfoStore from the httpsession
             IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");
             //Query for the report object in the CMS.  See the Developer Reference guide for more information the query language. 
             IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT TOP 1 * " +
                                                                                     "FROM CI_INFOOBJECTS " +
                                                                                "WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_INSTANCE=0 AND SI_NAME='" + logonform.reportname[0] + "'" );
             if (oInfoObjects.size() > 0) {
                  //Retrieve the latest instance of the report
                  IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0);
                  //Use the PS report factory to obtain a report source that will be processed on the Page Server.   
                  IReportSourceFactory factoryPS = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory");
                  Object reportSource = factoryPS.openReportSource((oInfoObject), Locale.ENGLISH);
                  session.setAttribute("reportSource", reportSource);
                  //View the report in the standard DHTML viewer.        
                  response.sendRedirect("CrystalReportViewer.jsp");
             else {
                  out.println("Report " + logonform.reportname[0] + " not found.");     
        catch(SDKException sdkEx) {
              out.println(sdkEx);  
    %>
    logonform.jsp
    <%!
    /**************************** class LogonForm ***************************
    This logon form is used to gather the logon information needed
    to login to Enterprise
    private class LogonForm {
         HttpServletResponse response;
         HttpServletRequest request;
         int num_reports_needed = 1;
         String[] reportname;
         public static final int NONE = 0;
         public static final int REPORT_NAME = 1;
         public static final int REPORT_NAME_X2 = 2;
    Constructor - Save the response and request objects
         LogonForm(HttpServletResponse response, HttpServletRequest request)
              //this.response = response;
              //this.request = request;
    Constructor with options - Add some optional boxes to request other
                               input from the user such as reportnames.
         LogonForm(HttpServletResponse response, HttpServletRequest request, int extra_requests) {
              this.response = response;
              this.request = request;
              switch (extra_requests) {
                   case NONE:
                        break;
                   case REPORT_NAME:
                        num_reports_needed = 1;
                        reportname = new String[1];
                        break;
                   case REPORT_NAME_X2:
                        num_reports_needed = 2;
                        reportname = new String[2];
                        break;
    %>

    oh thanks but i have an error on this example  Viewingview_report_parameters
    but where is my connection to my database in file jsp ?
    thanks
    windows
    CMS  NAme  = MyCMS
    user = myuser
    pass = password
    aut = enterprise
    doc = my doc
    ok
    after enter values : i Put my values
    ok
    after click on button view report this is error
    Etat HTTP 500 -
    type Rapport d'exception
    message
    description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    cause mère
    java.lang.NullPointerException
         org.apache.jsp.opendoc.CrystalReportViewer_jsp._jspService(CrystalReportViewer_jsp.java:80)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/5.0.27.
    Apache Tomcat/5.0.27

  • How to set parameters in CR4E

    Hi,
    Need:
    To generate PDF reports from standalone java program using CR4E runtime engine. Reports will be designed using CR4E. The java program will use CR4E engine APIs to open the report and populate date in it from database.
    Scenario:
    I have created a report and mapped the report fields from SQL file (similar to using it as SQL command). I have also created 2 parameters and also included in the SQL file.
    Problem:
    1) These parameters don't prompt when run within CR4E designer & i see no way to set these values to work in preview mode and it appears as a blank page. Bcos of above reason, my java application when executed also gnerates blank report as the parameters are not set. How to resolve this?
    2) Then i tried using record filters to map the SQL file field name to parameter name in the report. Now, when previewed the prompts for parameters appeared and the report was displayed as expected. But, when the java application gave 'FormulaException: Field name not known' error (with mention to SQL field names used in filter). I am not using any formula in my report so this error is bcos of using record filter. How to resolve this error?
    Finally, i need a design & runtime solution to execute my reports with parameters.
    TIA,
    M.Ravi

    Ravi,
    Have you tried searching through the rest of the threads in this forum, I am sure all your questions have
    been asked and answered before.
    As to your last comment, I personally try steer away from people demanding help so maybe not
    putting such comments in the forums would help get people to reply to you. Sometimes the people who
    know the answers are busy doing other things for a day or two, so sometimes you need to be patient.
    Just a thought.

  • Report Generation broken after deployment - Excel Set Cell Color and Border.vi

    Upon deployment, the Excel Set Cell Color and Border.vi became broken.  After installing LV2010 SP1 to view the VIs in the deployment, I noticed that in the second case structure where the code draws the border using the BorderAround invoke node, there is an extra variant input parameter named 'Parameters'.  Upon right-clicking, an option to 'Relink Invoke Node' appeared and after selecting this, the extra input disappeared and the VI was no longer broken.
    Why does "Relink Invoke Node" appear?  How do I create a deployment with this issue?  Has anybody else experienced this?  Why is the TestStand deployment so buggy?  

    Hi Ching-Hwa,
    I have set up a test deployment here where I am deploying a workspace that contains a sequence file.  This sequence file has a LabVIEW Action Step calling a VI that opens a new Excel file and simply calls the Excel Set Cell Color and Border VI.  After deploying this, both the VI and my test sequence ran on the deployment machine without error.  Therefore, I do have some more questions to more accurately reproduce what you are seeing.
    First, what operating systems are you developing on and deploying to?  Also, what license do you have for TestStand on the machine you are deploying to?  If you have a development version, can you manually take the sequence file and VI to this machine and run it?  I know you now have LabVIEW 2010 SP1 on your development machine, but if you have the development version of TestStand as well, it would be interesting to see if you copy the files over if you still see this behavior.  Are you including the TestStand Engine in the deployment?
    Can you open a blank VI on the deployment machine and add the Excel Set Cell Color and Border VI?  It would also be interesting to see if this is not a product of the deployment, but rather an issue with something on the deployment machine itself.  What version of the Report Generation Toolkit do you have on each machine?  Also, what versions of Excel are you using on the development and deployment machine?  Again, it would be helpful for me to know exactly what versions you have installed on both the development and deployment machines so that I can reproduce this as accurately as possible.
    One last thing to try, too, would be to try deploying the VI by itself just to see if it also has the same behavior.  Do you have the Application Builder in LabVIEW?  If so, could you also try building an executable from the VI, create an installer, and deploy this to the deployment machine?  
    In regards to the "freezing" of code by removing the block diagrams, I do not believe this will be a proper work around in this case.  While this removes the block diagram from actually being deployed along with the VI and restricts users from editing the code on the deployment machine, if something is getting changed in the compiled code upon deployment, this will not stop this from happening.  This option is available more as a memory option to lower the size of the deployment as well as prohibit any users on the development machine from editing the block diagram themselves.    
    Thanks, Ching-Hwa!  I look forward to your response so that I can continue trying to reproduce this issue.  Have a great day! 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Set PF-STATUS and use SY-UCOMM in an Exit FM

    Hi,
    I am working on an Exit function, and I am trying to read the screen status and then the user's actions, so that I could code for the SY-UCOMM. For some reason, my program is not working. Is it possible to add the PF-STATUS and SY-UCOMM to the Exit function to process the user's actions? Please advise.
    Thanks,
    RT

    Hi Ravikumar,
    I was able to use the parameters in the Exit provided in the Exit FM to process the necessary data. I have other requirements where I would have to code in the Exit FM to detect the user's actions and process them within the Exit to manipulate the tables. I added some code specified in the previous post, but it doesn't seem to get the OK_CODE; therefore, no processing of the data was happening when I tested by clicking on the yellow arrow to exit. I am able to determine the OK_CODE though.
    Would you have any sample code suggestions when using the Exit for SET PF-STATUS and SY-UCOMM?
    Thanks so much.
    RT

  • Setting up SCM and Procurement

    Hi,
    I have SCM installed in R12 and I need to set  up SCM and Procurement.
    Could someone advice me whcih document I need to follow.
    Expectgin help from experts.
    Thanks
    Seb

    Hi Seb,
    If you are looking for some sort of manuals....i will advice you to check SCM implementation manuals.
    If you checking for basic setups then
    After completing KFFs and DFFs setup these
    PO
    OM
    INV
    Buyers
    Credit Check Rules
    Shipping Networks
    Line Types
    Holds
    Categories
    Organizations
    Oracle Order Mgmt Lookups
    Cross Reference Types:Detail
    Locations
    Order Import Sources
    Master Items
    Purchasing Lookups
    Shipping Lookups
    Movement Statistics Parameters
    Suppliers
    Release Rules
    Movement Statistics Validation
    Jobs
    Attribute Defaulting Rules
    Oracle Inventory Lookups
    Approval Groups
    Freight Carriers
    Unit of Measure Classes
    Document Types
    Release Sequence Rules
    Units of Measure
    Purchasing Options
    Processing Constraints
    UOM Conversions-Inter Class
    Receiving Options
    Document Sequences
    UOM Conversions-Intra Class
    Approval Assignments
    Sequence Assignments
    UOM Conversions-Standard
    Supplier Sites
    Modifiers
    Category Sets
    Qualifier Groups
    Stock Locators
    Attachment
    Attachment Document Categories
    Shipping Documents
    Ship Confirm Rule
    Choose Printers
    OM Parameters
    OM Transaction Types
    Shipping Parameters
    I have mentioned only basic setups and may differ according to the requirements.

  • Why i have to specify the parameters (property and name) in both tags?

    Recently i learned how to populate a html:select with data from a DB table with a int value and a String value (value and label of an option). For that i create a business object that represent one pair value&label (i called categoryBO) and another business object that contains a list of the business objects categoryBO. So in my JSP i have the next code:
    <html:select name="lista" property="listaPropiedades">
    <html:optionsCollection name="lista" property="listaPropiedades" value="varValor" label="varLabel" />
    </html:select> Well i understand the next: name is the name of the business object that contains the list with the objects that represents the options in the select tag; property is the name of the list object, in the business object i need to have the getters and setters for that list; then value is the name of the variable that contains the data that will be the value of each option and label is the name of the variable that contains the data that will be the value of each label.
    But i have the next questions:
    1. Why i have to establish the parameters property and name for bot html:select and html:optionsCollection? Why not only in html:select or only html:optionsCollection?
    2. In the ActionForm for my JSP i don�t know what data type have to use to declare the variable that's linked with the option or with the select. I'm using Object for now.
    3. Why the only way to populate the html:optionsCollection in the Action is passing the object in the request object as an atribute in the next way:
    request.setAttribute("lista", objectThatContainsList);instead
    ((ActionForm)form).setListaPropiedades(objectThatContainsList);why's that? I have the same question when i'm populatina a normal html table using a logic:iterate tag or using a display:table tag from displaytag library.

    Ok, you have one big misconception here - you're using the same name/property for both the select component and its contents.
    The html:select should refer you to ONE selected value (in this case an int). It should tie to a field on your action form.
    The html:optionsCollection should refer to a list of beans used to populate this select component.
    <html:select property="selectedItem">
    <html:optionsCollection name="myList" property="listOfProperties" value="varValor" label="varLabel" />
    </html:select>
    1. Why i have to establish the parameters property and name for bot html:select and html:optionsCollection? Why not only in html:select or only html:optionsCollection?Because they actually refer to two different things, and should be two different values.
    html:options gets the list of possible values
    html:select stores the "selected" option. (consider what you would have if you just used a standard html:input here, and typed the id directly in - THATS the property to bind to)
    2. In the ActionForm for my JSP i don�t know what data type have to use to declare the variable that's linked with the option or with the select. I'm using Object for now.You do now - because it is declared/mapped seperately
    3. Why the only way to populate the html:optionsCollection in the Action is passing the object in the request object as an atribute in the next way:Its not.
    The way you mentioned is also valid. If both the "selectedItem" and "listOfItems" are properties on your action form, you can leave out the "name" attribute, and they will be found there.
    However if you are dealing with request scoped beans, you will have to populate the list on each access of the page - you will need a "load" action to poupulate the bean with the items for the dropdown, and make sure that it is always populated when you return to it (eg on an error condition).
    That is why setting it as an attribute is sometimes preferable.
    Cheers,
    evnafets

  • Set parameters for dynamic selection report

    Hi all,
    Please find below code.. parameters KS7 and KS8 are on static slection parameter and GJR, VPE, BPE are on dynamic selection parameters for transaction KSB2. But, when I run program, values are passing to parameters KS7 and KS8 but not to GJR, VPE, BPE.
            set parameter id 'KS7' field co_podat-low.      "from date
            set parameter id 'KS8' field co_podat-high.     "to date
            set parameter id 'GJR' field P_RYEAR.
            set parameter id 'VPE' field SO_PERIO-LOW.
            set parameter id 'BPE' field SO_PERIO-HIGH.
                 submit rkaep000
                 with p_tcode = 'KSB2'            "non display param
                 with p_kokrs = p_kokrs           "non display param
                 with kostl = it_outputsum-profctr
                 with kstar = it_outputsum-acct
                 with p_disvar = '1SAP'           "non display param
                and return.
    What would be reason?
    Thanks
    Shashi.

    at the time of you code being executed the fields may not be available (Defined)..
    You can put a breakpoint on the same & check the RC (Sy-Subrc) for the SET PARAMETER statement
    Regards,
    Gaurav

  • Setting Parameters

    Post Author: Laxman
    CA Forum: JAVA
    Hi        i am using Crystal Reports Release 2 JRC and i am changing the database name dynamically...It shows fine when the reports have no parameters...But fails to load values from the database when there are discrete parameters(ie displays a blank report)...How to set the parameter values when changing the database dynamically...Please help me...

    Post Author: Ted Ueda
    CA Forum: JAVA
    Are the parameters stored procedure parameters or SQL command parameters?  If so, then dynamically changing the connection may be removing those parameters.
    What happens if, when you're viewing the blank report in the viewer, you export to rpt?   If you open the rpt in the Designer, are the parameters there, and set to the correct values?
    Sincerely,
    Ted Ueda

  • Unable to set parameters for "Act as Prox" in OBI11g

    Hi Gurus,
    following Mark Rittman's blog I was able to set parameters and I could use this feature in OBI10g.
    However, in OBI 11g I was not able.
    1. In the init block of Proxyblock I am not able to add SET_RUNAS to Execution Precedence
    The Add button is inactive.
    2. In the init block of Proxylevel I am not able to add Proxyblock to Execution Precedence .
    Only the SET_RUNAS available.
    What to do?
    Any ideas and help are appreciated!
    Thanks
    Laszlo

    Hi Laszlo,
    Check this,
    Re: Unable to select Connection pool when creating init block for current_month
    Regards,
    Dpka

  • Setting Application Set Parameters For Variable

    Hi Guys,
    When I've read the BPC help about "Setting application set parameters" and the statement likes this : 
    Allows you to define a custom email message that is sent when a work status code is changed. The message is applicable to all applications in the application set. You can customize the message using the following variables:
    %USER% - name of user who changed the status
    %ED% - Entity dimension
    %EM% - Entity member
    %CD% - Category dimension
    %CM% - Category member
    %TD% - Time dimension
    %TM% - Time member
    %STA% - Work status
    %OWNER% - Entity owner
    %TIME% - time of change
    For example, you can enter "This is to inform you that %USER% has updated the work status for %EM%, %CM%, %TM% on %TIME%". The message can be up to 255 characters, and there is no need for quotes or brackets around parameters.
    The Questions:
    When I put the "%ED" into the textfield "APPROVALSTATUSMSG", after that I try to send email from BPF and the "%ED" still same into the email message. But it should describe the value of variable.
    Could you help me how to view the value of variable ?
    Thanks,

    If I look at the available parameters in the helpfile 2 things are strange in my opinion:
    1)the parameter is called approvalstatusmsg, approval status was the V4 naming convention of the function, right now it is called workstatus, so it might be a V4 function. Never used it myself but maybe it is something not correctly migrated to v5.
    2) Even if it is working in V5, which I don't know for sure, then it is strange that you only have variables for Categroy, time and entity, since you can setup the workstatus for more then these 3 dimensions in V5 which you would also like to have in a case you set it up for more then 3 dimensions. For example for if you want to use Category,time,Entity & Product dimension in the workstatus, you would also like to inform the people which product is updated, since only just category,time and entity won't say that much.
    So I think you best check with support if this function is still usable in V5 or if it is an old function from V4. and if it is working in V5, how do you get the right parameters in the variables when you setup workstatus for other dimensions then just Category/time/Entity.
    I would like to know the results!
    Joost

  • Set Parameters in sub reports - can't know which parameter is in sub report

    Hi,
    I am trying to set parameters in reports that some time build from sub reports, the only input that I got is the parameters name(key) and there values.
    What I need is a way to retrieve the parameters from report and set them by the parameter name(key) with it's value.(when I am handle the case of parameter in sub report)
    and hope it's work!!
    any idea how to do this?
    My code is below, and I am using CR/VS2008.
    Thanks,
    Amos
    public class reportGenerator
        public reportGenerator(string reportTemplate, string reportResults, ListDictionary parameters)
            //Instantiate variables
            ReportDocument reportDocument = new ReportDocument();
            reportDocument.Load(reportTemplate);
            // Database Access
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "ServerName";
            connectionInfo.DatabaseName = "DBName";
            connectionInfo.UserID = "UserId";
            connectionInfo.Password = "UserPassword";
            connectionInfo.IntegratedSecurity = false;
            SetDBLogonForReport(connectionInfo, reportDocument);
            reportDocument.SetDatabaseLogon("UserId", "UserPassword", "ServerName", "DBName", false);
            double Num = 0;
            bool isNum = false;
            ParameterDiscreteValue paramValue;
            foreach (System.Collections.DictionaryEntry param in parameters)
                isNum = double.TryParse((string)param.Value, out Num);
                if (isNum)
                    paramValue = new ParameterDiscreteValue();
                    paramValue.Value = Convert.ToDecimal(param.Value);
                    reportDocument.SetParameterValue((string)param.Key, paramValue.Value);
                else
                    reportDocument.SetParameterValue((string)param.Key, param.Value);
            reportDocument.SaveAs(reportResults, true);
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);

    You should review the SDK guide online because it answers all your questions.
    The [SetParameterValue |http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crlrfCrystalDecisionsCrystalReportsEngineReportDocumentSetParameterValueTopic2.htm]method is overloaded 3 times. One of the overloads takes the name of the parameter, its value, and the name of the subreport it is in.
    public virtual void SetParameterValue(   string name,    object value,    string subreport);
    [Reading and Setting Discrete Parameters|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialsrdparametersdiscreteintro.htm]

  • Newbie (!) - created a report; have to set parameters to print? How to print it all, please?

    Hi,
    I confess I'm a newbie. I've created my first table and a report based on that table. When I try to print the report, I get a dialogue box asking for the parameters for certain fields. How do I indicate "print all"? Can I save this setting, to
    print all of this document, every time? Do I have to input the parameters for each field, each time I print the document?
    I see the value of setting parameters, but don't need to filter this report.
    Thanks so very much!  Endless gratitude!

    That would explain it.  Because the report no longer recognizes the references it contains to the div_cde column, it treats it as a parameter.  Hence the prompt.  You can change the report design so that every reference to div_cde becomes
    one to div.  This could be in a number of places such as the ControlSource property of a control in the form, or the name of a column (field) by which the report is grouped or ordered, so an easier solution might be to change the table design, renaming
    the div column back to div_cde.  The report should then work without amendment.
    Ken Sheridan, Stafford, England

  • I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vecto​r signal analyzer ) to measure such as RF frequency or power on the instrument​? Thanks

    I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vector signal analyzer ) to measure such as RF frequency or power on the instrument?
    I just want to set something on the front panel that will execute the Serial parameters first and then pass these settings to vector signal analyzer
    Thanks
    Phong

    You transfer data with wires.
    Frankly, I'm a little confused by your question. I can't think of any reason why you would want to pass serial parameters (i.e. baud rate, parity) to a GPIB instrument. Please explain with further detail and attach the code.

Maybe you are looking for

  • SG300 not authenticated in Configuration Assistant

    Hello, I am fairly new to the Cisco Switches and just recently received an SG300-28, I have changed it to L3 and setup the IP along with 3 LAGS and everything is working great, I am currently setting up 3 SG300-10P that will connect to the 28 and was

  • Updating Material and Total Quantity

    Hi All, We have a scenario in ISA7.0   B2B scenario , where we have certain products,say product1....then we have to configure the product and in configurations we select say material 1 and enter some Total Qty value as x, complete the configurations

  • Default Billing Type in Billing Plan

    Hi, How do I change the default billing type in my billing plan? Thanks!

  • Define Webservie in Configuration-Clarification.

    Hi, I have a web-service client to file scenario. The call is async. Is it possible to have async call in this scenario? I designed following interfaces: 1."studentList_outbound_async" under System_X_DEV (Sender ser vice). 2."customerList_inbound_asy

  • MacBook Pro Retina 15" Late 2013 Bottom Case £?

    Had my MacBook Pro Retina for just over 2 months. Very careful to look after it but unfortunately due to a freak accident I damaged the bottom case. It is just a bad scratch - but tried to polish it out but that took the mat finish off it. Contacted