Crystal Report - Set Parameter Value - Case sensitive

Hi,<br><br>
We are using Crystal report 2008 CR4E API to implement the crystal report in our application. When we use parameter report with different cases, the code is not setting values for all the parameter fields in the report. Kindly help us in achieving the solution.
<br><br>
In Report, SQL Command is used and a parameter is passed to the SQL. The name of the parameter is given uppercase but in the SQL Command it is given in lowercase. The report still pass the parameter to the query and it is running fine in designer.
But in our application it throws the below exception. If the parameters are defined in same case then it works fine.
<br><br>
Code:<br><br>
reportClientDocument = new ReportClientDocument();<br>
reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);<br>
reportClientDocument.open(reportName, OpenReportOptions._openAsReadOnly);<br>
DatabaseController dbController = reportClientDocument.getDatabaseController();<br>
Tables tables = dbController.getDatabase().getTables();<br>
ITable table = tables.getTable(0);<br>
IProcedure command = (IProcedure)table;<br>
ParameterFieldController paramController = reportClientDocument.getDataDefController().getParameterFieldController();<br>
for (int i=0; i< command.getParameters().size(); i++) {<br>
        ParameterField commandParam = (ParameterField) command.getParameters().get(i);     <br>                         
     String paramName = commandParam.getName();<br>
        String paramValue = getParmeterValues(paramName);<br>
        paramController.setCurrentValue("", paramName, Integer.valueOf(paramValue)); <br>
}<br>
<br><br>
Exception:<br>
<br>Assertion Failed:
<br>java.lang.Throwable
<br>     at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
<br>     at com.crystaldecisions.reports.common.asserts.CrystalAssert.ASSERT(Unknown Source)
<br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:2558)
<br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:645)
<br>     at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
<br>     at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
<br>     at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
<br>     at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
<br>     at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
<br>     at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
<br>     at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
<br>     at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
<br>     at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
<br>     at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
<br>     at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
<br>     at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
<br>     at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
<br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
<br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
<br>     at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
<br>     at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
<br>     at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
<br>     at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
<br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
<br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
<br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
<br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
<br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
<br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
<br>     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
<br>     at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
<br>     at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
<br>     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
<br>     at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
<br>     at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
<br>     at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
<br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
<br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
<br>     at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)
<br>     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)
<br>     at com.mysystems.myapp.common.CrystelReport.print(CrystelReport.java:387)
<br>     at com.ibm._jsp._ShowReport._jspService(_ShowReport.java:316)
<br>     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
<br>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
<br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
<br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
<br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
<br>     at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)
<br>     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
<br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
<br>     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
<br>     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:837)
<br>     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:680)
<br>     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:588)
<br>     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
<br>     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
<br>     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:232)
<br>     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
<br>     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
<br>     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
<br>     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:122)
<br>     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
<br>     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
<br>     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
<br>     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
<br>     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
<br>     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
<br>     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
<br>     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
<br>     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
<br>     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
<br>     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
<br>Rowset restart: moveToStart true
<br>Rowset execute
<br>Executing query using command text:
<br>Select DeptName from Dept where DeptNo = {?deptno}
<br>
<br>detected an exception: Unexpected database connector error
<br>...
<br>Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
<br>     at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)
<br>     at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)
<br>     at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)
<br>     at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)
<br>     at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)
<br>     at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)
<br>     at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)
<br>     at com.crystaldecisions.reports.queryengine.Table.for(SourceFile:709)
<br>     at com.crystaldecisions.reports.queryengine.b.yk(SourceFile:512)
<br>     at com.crystaldecisions.reports.queryengine.b.yl(SourceFile:878)
<br>     at com.crystaldecisions.reports.queryengine.QueryInfo.vE(SourceFile:241)
<br>     at com.crystaldecisions.reports.datafoundation.DFQuery.for(SourceFile:628)
<br>     at com.crystaldecisions.reports.datalayer.a.do(SourceFile:1621)
<br>     at com.crystaldecisions.reports.datalayer.a.a(SourceFile:1404)
<br>     at com.crystaldecisions.reports.dataengine.m.b(SourceFile:334)
<br>     at com.crystaldecisions.reports.dataengine.j.b(SourceFile:515)
<br>     at com.crystaldecisions.reports.dataengine.m.o(SourceFile:408)
<br>     at com.crystaldecisions.reports.dataengine.m.a(SourceFile:173)
<br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:114)
<br>     at com.crystaldecisions.reports.dataengine.ContextNode.a(SourceFile:95)
<br>     at com.crystaldecisions.reports.dataengine.j.case(SourceFile:1080)
<br>     at com.crystaldecisions.reports.dataengine.h.<init>(SourceFile:108)
<br>     at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:254)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4660)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:4574)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.new(SourceFile:2652)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.byte(SourceFile:2610)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.try(SourceFile:2282)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.int(SourceFile:2442)
<br>     at com.crystaldecisions.reports.dataengine.DataProcessor2.I(SourceFile:1013)
<br>     at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fo(SourceFile:526)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(SourceFile:613)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:578)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.X(SourceFile:387)
<br>     at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(SourceFile:339)
<br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:78)
<br>     at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:247)
<br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
<br>     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
<br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
<br>     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)
<br>     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
<br>     ... 49 more
<br>Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
<br>     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
<br>     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)
<br>     at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)
<br>     ... 91 more
<br>Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '?'.
<br>     at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source)
<br>     at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
<br>     at com.mysystems.myapp.connection.StatementImplementaion.execute(StatementImplementaion.java:269)
<br>     ... 94 more

Hi,
Can some one please help with the solution

Similar Messages

  • URL Reporting Time parameter value.

    We have installed Business objects XIR2 and one of our application uses URL reporting to call a crystal report. Parameter values are retrieved from the database and used in the url.  Reports that do not have a time parameter works fine.  Even though I pass the time parameter value Im still prompted for the value.  The format of the url I use is http://hostname/businessobjects/viewrpt.cwr?init=dhtml&apstoken=<token>&prompt0=02:02:20&prompt1=LOCCODE
    where prompt0 is of type par_time.  Could someone please help me with the correct format to use for parameter type time?

    Ted, I checked the prompt order and the prompt type and they are correct.  These reports are working fine on Crystal 9.  Also reports that do not have a time parameter works fine in Crystal 11. Its only when reports with time parameter are called Im prompted for a value to be entered in hh:mm:ss format although I tried passing the value in hh:mm:ss format and Time(hh, mm, ss) format in the url.  The report comes up fine after entering the value in hh:mm:ss value in the prompt.  I tried encoding the url but it didnt work.  If I encode the entire url Crystal prompts me to enter values for all parameters.

  • Does BOXI support crystal reports with parameter references in formulas?

    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.

    Hi,
       In Crystal Reports under File -> Report Options >check convert Null Values to default > Verify on first refresh > Verify stored procedures on first refresh.
    This corrected the issue by allowing the query engine time to locate those columns and map them to the query being sent by the report.
    The convert null values was added because those field were being used in the record selection and grouping.
    Regards,
    Vinay

  • Adapter Modules: Set parameter values dynamic?

    Hi everybody,
    is it possible to set parameter values in adapter modules dynamic?
    Thanks Regards
    Mario

    Hi all,
    thanks for your replies.
    My problem is not solved.
    To make it clear,
    I want to set an attachmentName in Mail receiver adapter WITHOUT using the MailPackage.
    This is possible:
    ModuleName:        localejbs/AF_Modules/MessageTransformBean
    ModuleType:        LocalEnterpriseBean
    ModuleKey:        CHAN
    Parametername:        Transform.ContentDisposition
    ParameterValue:        attachment; filename="NameOfAttachment.txt"
    I want to set "NameOfAttachment.txt" dynamically. How can I achieve this? Thanks, regards
    Mario

  • Paramenter Value Case Sensitive Setting

    Is there a setting in the pref.txt file (or any place else) to change the actions of the case sensitive setting for entering parameter values? Turning it off/on. Changing the case sensitive setting in the condition that contains the parameter does not modify the parameter value entry window functionality.
    Thanks,
    Jerre

    Hi Jerre
    I'm afraid there is no preference that can be set to control the casing of the values keyed in a parameter. You would have to do this yourself by embedding the value of the parameter into a calculation and use UPPER or LOWER accordingly.
    The option you are referring to controls whether Discoverer should literally take the value keyed in the parameter as the filter for the condition or not. It does not change the casing of the parameter for other uses.
    Best wishes
    Michael

  • Crystal Reports Date Parameter Default Value OPtion Empty

    Is there a way to set a default date value for a Date Parameter? It is shown empty, it only allows to set a fixed date, i.e. 10/10/2013. But it doesn´t allow me to use a formula (which has a CurrentDate inside), so I can set, for example, today's date as default.
    How can I achieve this? I´m not using Crystal for Enterprise. I'm using Crystal Reports, the normal version.

    Hi Erika,
    The feature is only available in CR for Enterprise at the moment.
    If you're OK with selecting the currentdate from the dropdown, here's a workaround:
    1) Go to the Database Expert > Click the Connection Name > Select 'Add Command' > Type in a simple sql query that returns today's date. Example for oracle would be:
    Select SYSDATE from DUAL
    2) Don't link this Command Object with other tables on the report
    3) Create a new Parameter > Select 'Dynamic' under 'List of Values' > Under the 'Value' column choose 'SYSDATE' from the command object > Click create parameter > OK
    -Abhilash

  • Crystal Report XI: Parameter Field Dynamic Default Values Limitation?

    Post Author: Elie_123
    CA Forum: General
    Hi,Using Crystal Report XI.I have a parameter field with Dynamic values that Queries the company field of an SQL Database.I have around 3500 companies in my DB. But when running my report (Using Crystal), only the first 1300 companies are being displayed in my pick list.I need to see the whole 3500 records. Any idea how to fix that?regards

    Post Author: V361
    CA Forum: General
    Check out this link
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=2DA9FC849962062053477D134AAAA672?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=5618074&stateId=1%200%205616180

  • Crystal Reports 2008 parameter panel discrepancy.

    Hi,
    I have a report designed using Crystal Reports 2008. The report has a dynamic parameter called Location which is populated from a table. It is a Value - Description pair so it is:
    Value = LocID
    Descripition = LocationName.
    The Show on Viewer(Panel) attribute is set to Editable.
    The Prompt with Description Only attribute is set to true.
    In the Crystal Reports stand-alone Designer everything works fine. It prompts with the Description. After making a selection, the Parameter Panel shows the selected items(the Description, NOT the value) correctly. This is the desired behavior.
    But  when the report is viewed in the Crystal Reports Viewer that comes with .NET 2008 the Parameter panel shows the Value, which is LocID and not the description which is LocationName. This is NOT very useful.
    I have tried other third party Crystal Reports viewers as well. They all exhbit the same discrepancy.
    How can this be resolved?
    Any help is greatly appreciated.
    Thanks in advance.
    - Rajan.

    Hi Don,
    Thank you for your response. The assemblies and their versions are as follows;
    CrystalDecisions.CrystalReports.Engine - 12.0.2000.0
    CrystalDecisions.Enterprise.Framework - 12.0.1100.0
    CrystalDecisions.Shared                         - 12.0.2000.0
    CrystalDecisions.Windows.Forms          - 12.0.2000.0
    Thanks,
    - Rajan.

  • Crystal Reports 2008 parameter panel

    Hello,
    I'm using Crystal Reports 2008 stand-alone application to design reports. I'm wondering is there a possibility to change information display on parameter panel?
    The problem is that I've created a parameter with option "prompt with description only" set to true. This parameter has value and description. When it's prompting for parameter everything goes fine, it prompts with description only, but in parameter panel it's only values (not descriptions) displayed. This is confusing for report users as the value is key (int type) and description is name (string that actually says something to user).
    Maybe there is something to be set in Crystal Reports Viewer component properties?
    Thanks in advance.

    Hello Gemi,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Crystal Reports dynamic parameter does not work in InfoView

    Hello,
    We have developed Crystal Reports in CR2008 on top of SAP infoset and we have one of our selection parameter as dynamic parameter. It works fine in the CR Dev tool but when i upload the report in the InfoView, report does not show any value in the "Available Values"
    Any input will be much appreciated.
    Thanks.

    I did found the solution for this, i had to go into Business View Manger (BO Client Tools) and Schedule the LOV (List of Values). This is odd setting! but it works....

  • How to parse crystal report query prompt value via url parameters

    HI All,
    I am creating a employee detail report in crystal report. The recordset is huge and i have created a parameter prompts in the query and thinking to parse the prompt value via url parameters. Not sure why i still could not make it works.
    for example, in my query panel i have created a prompt called "pwwid"
    and this is how i parse the prompt value via open document url.
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpwwid=12345678
    I read the sap documentation, this is how it parse the prompt value via url parameter. but it is not working for me and i am getting prompt to fill in the wwid whenever i run the reports.
    any idea why i am not getting this works?
    Regards,
    KeatAun

    Could you try:
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpspwwid=12345678
    -Abhilash

  • Database logon failed when opening report with parameter values in CrystalReportViewer

    Hi,
    I designed 2 crystal reports: report A contains parameter fields and report B did not contain any parameter
    I can open both reports in development site using CrystalReportViewer control. When I open the reports in testing site,
    I can open report B but can't open report A. It display error message "Database logon failed". When I set EnableDatabaseLogonPrompt
    to true and try to open the report A again, it shows database connection data which was created on report.
    In addition, it is strange that it displays error "Database logon failed" when I click an item in group tree panel of the report B. This indicates that it can load data from database
    in testing site but it connect to development database when clicking items in group tree panel
    All reports connect to database using Windows Authenication. It use dynamic database connection at runtime
    How to ensure the report always connect database using login data dynamically at runtime?
    Below is my code about database connection:
    string strServerName = null;
    string strDatabaseName = null;
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strFilePath);
    ConnectionInfo connInfo = new ConnectionInfo();
    TableLogOnInfo logonInfo;
    for (int i = 0; i < rptDoc.Database.Tables.Count; i++)
    logonInfo = rptDoc.Database.Tables[i].LogOnInfo;
    ReportHelper.GetReportConnection(ref strServerName, ref strDatabaseName, strSystemType);
    logonInfo.ConnectionInfo.ServerName = strServerName; 
    logonInfo.ConnectionInfo.DatabaseName = strDatabaseName;
    logonInfo.ConnectionInfo.IntegratedSecurity = true;
    rptDoc.Database.Tables[i].ApplyLogOnInfo(logonInfo);
    rptDoc.Database.Tables[i].Location = rptDoc.Database.Tables[i].Location.Substring(0, rptDoc.Database.Tables[i].Location.Length - 2);
    crvViewer.ReportSource = rptDoc;
    crvViewer.DataBind();
    Development environment:
    - SAP Crystal Reports 2013 Support Pack 1
    - Visual Studio Professional 2012
    - .NET Framework 3.5
    - DDL
    CrystalDecisions.Shared (v 13.0.8.1216)
    CrystalDecisions.Web (v 13.0.8.1216)
    CrystalDecisions.CrystalReports.Engine (v 13.0.8.1216)
    Database connection in crystal report:
    - Database Type: OLEDB (ADO)
    - Provider: SQLOLEDB
    - Integrated Security: True
    Thanks and Regards,
    Tony

    Hi Tonylck
    Try  to pass login info to crystal report dynamically as follows:
    using System;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    namespace WindowsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    ReportDocument cryRpt = new ReportDocument();
    TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
    TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    Tables CrTables ;
    cryRpt.Load("PUT CRYSTAL REPORT PATH HERE\CrystalReport1.rpt");
    crConnectionInfo.ServerName = "YOUR SERVER NAME";
    crConnectionInfo.DatabaseName = "YOUR DATABASE NAME";
    crConnectionInfo.UserID = "YOUR DATABASE USERNAME";
    crConnectionInfo.Password = "YOUR DATABASE PASSWORD";
    CrTables = cryRpt.Database.Tables ;
    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
    crtableLogoninfo = CrTable.LogOnInfo;
    crtableLogoninfo.ConnectionInfo = crConnectionInfo;
    CrTable.ApplyLogOnInfo(crtableLogoninfo);
    crystalReportViewer1.ReportSource = cryRpt;
    crystalReportViewer1.Refresh();
    Ref
    http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
    Mark as answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • Crystal Report Dynamic Parameter for SAP B1 version 8.8

    Hi, does anyone have problem with the dynamic parameter prompt for Crystal Report in SAP B1 version 8.8?
    For example:
    1. For static parameter that allows multiple value --> In SAP B1 v8.8, there is a check-box and a "..." button next to it. When you click the "..." button, a new window appear with a list of values to choose.
    2. For static parameter that does not allow multiple value --> In SAP B1 v8.8, there is one field with a drop-down menu.
    3. For dynamic parameter that allows multiple value and does not allow range values --> In SAP B1 v8.8, just one field for us to key in the value. Shouldn't this be the same as No. 1?
    4. For dynamic parameter that does not allow multiple value  and does not allow range values --> In SAP B1 v8.8, same as No.3 above. Shouldn't this be the same as No. 2?
    How do I get no. 3 dynamic parameter that allows multiple value and does not allow range values  to have a check-box and a "..." button next to it to allow us to select multiple values?

    Hi Shwu Hua Gan,
    Thank you for your reply.
    Please forgive me as I don't really understand what you are saying here. To be honest, I'm very new to Crystal Report and my understanding of CR is just the very basics. I'm actually not from a technical background which makes it more difficult.
    In your reply:
    Ie, you create a parameter in Crystal report, and by using the token eg:Mytest@select * from OCRD, it gives you the benefits of selecting the list from the database.
    How do you do this by using the token? All I did is just select the parameter type (dynamic) and then select the table. When I preview the report in SAP B1 8.8, it doesn't prompt me like how I expect it to be. It is a blank field that I have to key in the value myself and then only the report will generate. Sometimes I don't remember what value to key in, so I have to do a formatted search for the blank field. After the report is generated, I can reselect the value (multiple values) from the CR viewer panel toolbar and refresh the report.

  • Setting parameter value using hyperlink

    I have a jsp search page which shows records in an html table. In each table row I have the id of the record. I would like to use this id value as a hyperlink and set the value of a hidden field to the id and then submit the form. my idea is to open a new page showing all the details of the specified record by the id which is sent as a parameter from the search page as soon as I click the id hyperlink. I am trying to use javascript, but I am a bit green in this area. I would appreciate any help.

    You could easily do this with JSPs, HTML and JSTL - there's no need for JavaScript in this case.

  • Report in Crystal reports has different values in Infoview

    I have uploaded a Crystal Report into BO Enterprise using the CMC.
    The logging into the Infoview to view the report and the results are different to those in the report when run against the same data in Crystal reports.
    It is pulling up data, but not the correct figures. I dont know where it is getting its data from.
    Any help would be appreciated.

    I deleted the ODBC connection and recreated it with a new name.
    I then relinked the report in crystal reports, and it suddenly decided to give updated values.
    Thanks

Maybe you are looking for

  • I wanted to keep my locked screen display with the time and date from turning off is that possible

    So I enjoy my locked screen display with my chosen picture because it has the time displayed nice and big and its a cool nightlight but the locked screen display/wallpaper/time with date always goes black after 13ish seconds of locking it is there no

  • NI PCI 7342 and UMI 7764

    Hello All, I am using the PCI-7342 to control 2 servos for co-ordinated motion. I am using UMI7764 to breakout Motion IO to connect to my Servo Amplifiers. I am confident that the system will work fine because I have used a similar setup before. The

  • Dont want to lose music

    My iPod was formatted on a PC and has about 2,000 songs on it. Now I want to use it on my Mac but i dont want to lose all of the music that is on there already. How do I add more music with my Mac without losing the music that is on there already?

  • New Keynote and Music Videos

    I recorded a friend using Logic Pro, and then after bouncing the song to mp3, I added it to a Keynote slide (the new Keynote that came with Mavericks).  After that, I added a video and matched up the audio and video.  In order for me to upload this v

  • HLOG Queue? Manager to see users status?

    Hello, My Company has CM 6.01. We are too small to have UCCX so it is just a straight out Call Manager Deployment. I've sent up Hunt groups for inbound calls to our sales group.  I have two groups (one 6 and one 8 members) that get routed to based on