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

Similar Messages

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

  • How to set Parameters in RRW3_GET_QUERY_VIEW_DATA

    Hello All,
    I am trying to use RRW3_GET_QUERY_VIEW_DATA function module for executing a query. Currently i am stuck big time figuring out how to set the parameters in  I_T_PARAMETER.
    I my case i need to run a query with the following key,value pairs
    1. 0I_FY_OP    =  001.2004
    2. ZHWORKCT = ABC
    Can some one throw more light into how to set the above parameters into I_T_PARAMETER??
    Thanks a  lot,
    Naveen

    Hello Prathibha,
    Thanks for the quick respone. I did go though the weblog and am trying to find my way through the documentation. I was wondering if the BW gurus could point me to some useful tips or examples.
    Thanks a lot,
    Naveen

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

  • Can't set parameters for embedded audio files using css

    I'm embedding numerous audio files in Dreamweaver CS3 using
    the <embed> tag. I'm using CSS to control the box size and
    other attributes relating to how the file displays on the page, but
    I'd also like to set the parameter "autoplay" to false, and
    controller to "true," for all of the audio files. I've been doing
    this individually for each file (very time consuming), because I
    can't figure out a way to do it with CSS. Is there a way to set
    those parameters in CSS and apply it to all files?

    .oO(teachAA)
    >I'm embedding numerous audio files in Dreamweaver CS3
    using the <embed> tag.
    >I'm using CSS to control the box size and other
    attributes relating to how the
    >file displays on the page, but I'd also like to set the
    parameter "autoplay" to
    >false, and controller to "true," for all of the audio
    files. I've been doing
    >this individually for each file (very time consuming),
    Search & replace exists.
    >because I can't figure
    >out a way to do it with CSS. Is there a way to set those
    parameters in CSS and
    >apply it to all files?
    No. CSS is for presentation, but these parameters belong to
    the HTML and
    have to be written there.
    BTW: The 'embed' element is invalid HTML. If you care about
    valid markup
    and your site doesn't have to be compatible with really old
    browsers
    like NN 4 or IE 5.5, then you should use the valid method
    using 'object'
    elements.
    Micha

  • 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

  • Data subsetting setting parameters

    I'm new to Oracle and have just taken over a project using Oracle Lite 10g.
    I'm trying to implement data subsetting. I've set up the snapshot using the packaging wizard:
    SELECT * FROM DEVELOPMENT.PERSONNEL p WHERE p.TestingCompanyUniqueID = TO_NUMBER(:companyID)
    where companyID is the parameter I want to use. I now want to set values for that parameter for each user. When I go into the web to go interface, this parameter does not appear. From my understanding it is created up when the application is published. Am I missing something here?
    Thanks
    Lynne

    I don't know if subscription parameters are supported in the MDW (mobile database workbench), I don't use it, but you can try it.
    But the most reliable method IMO is the Java API (you can find the API documentation in olite\Mobile\doc\javadoc directory). To create and set a parameter for given user, try to use this method:
    ConsolidatorManager CM = new ConsolidatorManager();
    CM.openConnection(CONS_SCHEMA, PASSWORD, JDBC_URL);
    CM.setSubscriptionParameter(publication, clientid, param_name, param_value);

  • CachedRowSetXImpl doesn't set parameters

    Hi guys.
    I'm using Studio Creator and getting crazy about the couple CachedRowSetXImpl and CachedRowSetDataProvider. I've set the command in the project time with one parameter. In the run time I try to set the value into the command and then refresh the data provider. But It doesn't work:
    getGlb_usuariosRowSet().setString(1, (String)getTxtUsuario().getText());
    getGlb_usuariosDataProvider().refresh();
    After this, if I try to see getGlb_usuariosRowSet().getCommand() it returns the original query with the ? parameters without changing.
    Thank you

    After a long time of work trying to find a solution in the internet, I've discovered what's going wrong with my code. I was attempting to send a Stored Procedure against MySQL through CachedRowSetXImpl's command. This class doesn't support Stored Procedures at all.
    Thks anyway.

  • Module development setting parameters

    Hi all,
    in a scenario I get a flat file in. The problem is that not all fields are delivered by every flat file. In the second line of each flat file are the field names stored, that are within each following line.
    So my idea was to create a module that reads the second line and set this information to the parameter of the content conversion (e.g. "data.fieldNames"), but it seams like I don't have access to these parameters. I tried to use "inputModuleData.setSupplementalData("module.parameters", hashTable)", where hastable contains all the parameters, but it is ignored.
    Can someone help me? Do I have to go over an other object?
    Thx
    Olli

    Hi Satish,
    I thought also that the conversion is called before. But I tried to set the message to the payload and it was the flat file, no xml.
    I tried also not to use conversion by the file adapter directly, but to use the Transform bean as a module in the sequence after my module. But the problem is always the same. The parameters, witch I typed in on the module tab for the transform bean are also not visible in my module called before.
    An other Idea is to see my module as a wrapper and make a lookup to the local interface of the transformbean. But for this solution I have to know witch classes to import.
    Can you give me a hint how to determine such libraries out of the name of a bean?
    Thx.
    Olli

  • Using external XML to add and set parameters for AS cue points.

    Hi there. I am trying to use external xml to set cue point
    times (for video), titles, and other parameters. I have everything
    set up, except getting the proper data from the xml file to set the
    parameters for my cue points. I am researching hard and learning
    quickly - at this point, I need help. Thanks!

    Anyone?
    Still working on this if anyone has advice. Still haven't
    been able to figure out how to put xml data in the right place:
    addASCuePoint(//data from xml here to set name and time of
    cue point - HOW??//);
    Thanks!

  • Set parameters from event

    I need set render parameters from event. From backing file cant find how set render paramters.

    Hello,
    I assume you are using JSR168 portlets and trying to set the render parameters when you receive an event? If so, you can't do that from the backing file; you will need to handle the event in your portlet instead of a backing file. For example, the following code would go in your portlet's java source:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import com.bea.netuix.events.Event;
    public class JavaPortlet extends GenericPortlet
    // This method will receive the event. It can have any name but must
    // have this signature
    public void handleEvent(ActionRequest request, ActionResponse response,
    Event event)
    // Event handling code goes here
    // To set a render parameter, make calls like this:
    response.setRenderParameter("paramName", "paramValue");
    Then, in your .portlet file instead of a tag for "invokeBackingFileMethod" use the tag "invokeJavaPortletMethod" and specify the name of the method to call, just like the "invokeBackingFileMethod" did.
    Kevin

Maybe you are looking for

  • Export to Text format

    When a report is exported to Text format, trailing spaces do not appear in the exported file. How do you resolve this issue? 1. Create a report. 2. Include 3 fields 3. Export ->txt After the end of 3rd field we require 200 spaces...any idea...

  • Lost AM when browsing on new opened window

    Hi All, I have a custom OAF page with couple subtabs for user entering order. There is a checking button I created to open a new java script window with a jsp page for user checking inventory. When I opened the window, I retained AM and user have no

  • SQL Server Setup Failure 0x84B10001 (SQL 2012 SP2 and SQL 2014 Standard)

    I'm having a problem with SQL Server Setup. I had SQL Server 2012 R2 SP1 installed, and the SP2 installer would fail. I decided to just get SQL Server 2014. The setup (and system configuration checker) for that fails with the same error. SQL Server S

  • /dev/dsp on Solaris 10

    I'm running Solaris 10 3/05 on a Dell Optiplex GX260. I installed the audio drivers for my hardware and have a /dev/audio device that gives me basic sound. However, when I start up xmms it complains that there's no /dev/dsp device. Sure enough, there

  • Unable to attach devices to personal cloud

    Hello,  We are having an issue where I cannot attach devices to the personal cloud.  The option to "allow this user to attach devices to my Personal Cloud" does not stay checked after apply.  I have tried local users and AD users.  I have also update