Issue accepting sub-report parameters using Command queries

OK,
   I am using a query which accepts a linked parameter to create a sub-report. When I type the linked data straight into the query the data queries correctly. When I pass the same data through the parameter it doesn't pull any data. The query runs in SQL Management Studio so I know the data exists.
The query is:
select * from pmappedu Inner Join prmisccd on pmappedu.pmad_inst_cd = prmisccd.prms_code where  pmappedu.pmad_ssn='{?Pm-Command.pmaq_ssn}'
I can display the parameter value in the report and it's correct. All data types seem to match. I am not sure what else to do.
Sam

For some reason the sub-report would not accept the parameter passed from the main report in the Command feature so I got around it by taking out the where clause and using the Select Expert to do my where clause in the report itself. However, this seems very counterintuitive and not at all what I would expect for a SQL-based report. If I am understanding the process correctly, the SQL query is returning ALL data unfiltered and then filtering the report at run-time of the Crystal processes instead of with the SQL engine on the SQL server. This is actually pretty ridiculous because of the performance hit that we would take on say, a million records.
Sam

Similar Messages

  • Convert Sub-Report to Crystal Command

    I'm attempting to convert a sub-report and a shared variable from the report to a Command.
    Can someone help with the conversion
    Here is the part of the Crystal SQL I can't convert
    This is within last7days >>>  (ORDER_PROC.ORDER_INST>={ts '2014-06-18 00:00:00'} AND ORDER_PROC.ORDER_INST<{ts '2014-06-25 00:00:00'})
    AND ((ORDER_PROC.RESULT_TIME IS  NULL ) OR (ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST))
    ORDER BY ORDER_PROC.ORDER_INST
    Here is the code for the shared variable
    if (not isnull({ORDER_PROC_3.FREQ_UNSCHEDULED_C}) and {ORDER_PROC_3.FREQ_UNSCHEDULED_C}=1 ) then {ORDER_PROC.ORDER_INST}
    else {ORDER_PROC.PROC_START_TIME}
    Thanks
    Steve

    hi Steve,
    you'd need to give us some info...what database are you using? Commands use syntax native to your database.
    are you trying to get the last 7 days instead of a hard coded date range?
    the following may take care of the date range and the null should you be using sql server..not sure though as i don't have the db to check against. i would suggest that you search a forum for your database for the correct syntax though.
    WHERE
    DATEDIFF(DAY,ORDER_PROC.ORDER_INST, GETDATE()) <= 7
    AND
         ISNULL(ORDER_PROC.RESULT_TIME)
         OR
         ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST
    ORDER BY
    ORDER_PROC.ORDER_INST
    also you can't use a Shared Variable directly in a command object but you can certainly pass it in via a sub-report link. what is the variable supposed to do in the command? suggest that you create a Parameter in the command object and then link the subreport from your main report to the command parameter.
    cheers,
    jamie

  • Issue with Multivalue report parameters optional functionality

    I am using SSRS 2012 reporting services to develop my SSRS report. I came across that I cannot have multi-value parameters as optional. In a report I have 5 parameters and 3 parameters (Invoice Type, Markupcode, Accountnum has multivalue selection so user
    can select mutltiple accountnum or codes to get data). There is no option you can choose Allow null value. I went through various forums but unable to get worked. So I created this question. I am not doing any complex functionality, its very common functionality.
    In the past I have used various reporting tools and never came across this issue. so please help here. I appreciate all your kind help. thanks.
    Regards
    Nitin

    Hi Nitin,
    As per my understanding, it seems that you want to build a multi-value parameter including the NULL value. By default, when we configure the parameter with the two options: Allow null value and Allow multiple values, we will receive an error message. To
    work around this issue, we can use the ISNULL function to change null values to blank values (''). For more details, please refer to the following steps:
    1. Modify the dataset used to retrieve data for the tablix like below:
    SELECT id, invoiceType, markupCode, AccountNum FROM table WHERE ISNULL(invoiceType, '') IN (@InvoiceType)
    2. Modify the dataset used to retrieve values for @InvoiceType like below:
    SELECT DISTINCT ISNULL(invoiceType, '') AS invoice, ISNULL(invoiceType, 'NULL') AS InvoiceDescription FROM table
    3. Modify parameter @InvoiceType, check Allow blank values ('') and Allow multiple values check boxes. Change the available values: Value field: @Invoice, Label field: InvoiceDescription.
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Sub-reports DO NOT WORK in Crystal for Eclipse v2

    Hi,<br />
    <br />
    We have recently upgraded from Crystal JRC to CR4E 12.2.202. Our application updates the JDBC connections at runtime to supply credentials.<br />
    <br />
    Everything seems to be working except sub reports.  When using sub reports we get the error shown below.<br />
    <br />
    On reading other forum posts, the top error about PropertyResourceBundle just seems to be about trying <br/>
    to print an error message from the real exception, which is in the third stack trace below: <br/>
    <i>Error code:-2147217394 Error code name:missingParameterValueError</i><br />
    <br/>
    Any idea what has changed and how we can resolve this issue?<br />
    <br />
    Thanks for your help.<br />
    <br />
    <br />
    06-25@16:48:52 39545 [http-8280-3] ERROR com.crystaldecisions.reports.common  - Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@66afc4.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException<br />
         at java.util.ResourceBundle.getObject(Unknown Source)
         at java.util.ResourceBundle.getString(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResourcesFactory.getLocalizedMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
         at au.com.esriau.dekho.crystal.Report.export(Report.java:135)
         at au.com.esriau.dekho.crystal.CrystalService.exportReport(CrystalService.java:37)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)<br /><br />
    06-25@16:48:52 39545 [http-8280-3] ERROR com.crystaldecisions.reports.common  - Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@66afc4.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException<br />
         at java.util.ResourceBundle.getObject(Unknown Source)
         at java.util.ResourceBundle.getString(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalResourcesFactory.getLocalizedMessage(Unknown Source)
         at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
         at au.com.esriau.dekho.crystal.Report.export(Report.java:135)
         at au.com.esriau.dekho.crystal.CrystalService.exportReport(CrystalService.java:37)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)<br /><br />
    06-25@16:48:52 39545 [http-8280-3] ERROR au.com.esriau.dekho.crystal.CrystalService  - InternalFormatterException
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: InternalFormatterException---- Error code:-2147217394 Error code name:missingParameterValueError<br />
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
         at au.com.esriau.dekho.crystal.Report.export(Report.java:135)
         at au.com.esriau.dekho.crystal.CrystalService.exportReport(CrystalService.java:37)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
         at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    Edited by: pjoyce on Jul 7, 2009 6:00 AM
    Edited by: pjoyce on Jul 7, 2009 8:36 AM

    We raised a support issue on this and was given a work around.
    With Crystal for Eclipse, you can no longer use "dynamically" generated sub report parameters, you must manually add the parameter to the sub report and apply a record level selection formula.
    Steps for the work around:
    1. Open the sub report and manually add a parameter field in the field explorer.  You can call it whatever you want, but make sure the data type is correct.  It should match the datatype that will be passed in by the main report.
    2. Click Report -> Selection formula -> Record
    3. Enter in a formula like this: {MYTABLE.ID} = {?subreportparam}
    4. Save and close
    5. Go back to the main report
    6. Right click the sub report -> Change sub report links
    7. Drag a report field into the fields to link list
    7. In sub report parameter field to use, select you're newly created parameter and click OK

  • Report Parameters behaving strangely

    Hello,
    I just completed my report in the designer provided with visual studio 2008, it's a relatively complex report with 6 subreports and has multiple detail sections. The parent report has one parameter which is used in a Database command. The report works nicely when previewing from the designer and only shows up one required parameters as it should. All the subreports have parameters as well but these are all linked to things on the parent report.
    The problem is when I try to execute the report from code, it ignores my parameters and proceeds to ask for multiple parameters, both including the parent parameters and all sub report parameters. If I enter these manually just to test if it works, I then get a message saying there's an error in one of the subreport's record selection formula. However I'm not sure how much I believe this as the previewing works completely fine.
    I just have no idea what is happening and why I am getting requests for so many parameters?
    Marlon

    Update ***
    I have managed to work through towards getting the report to display in the .NET app now, I needed to check the IsLinked() fucntion before assigning parameters.
    However, I have now been presented with an even more weird problem: If I switch database in code, I now get asked to enter a parameter I know is a linked one, if I do I get a message saying the record selection formula references an unknown field. But if I get the designer to change database, then get it to preview, it works flawlessly (both in the previewer and in the application). Until I change the database back to the original one, where I get the same error.
    Our application needs to be used in many client organisations with each having different connection strings / databases (all have the same schema obviously) so I need this report to run independent of what the database it was designed / compiled on.
    Here is the code I use to switch database within the application, is there anything different to the way I do it to the way the crystal report designer does it? As the designer is obviously doing something behind the scenes.
    This code has worked on the 15 or so reports I've designed so far.
                   ReportDocument cryRpt = new ReportDocument();
                    TableLogOnInfo tLI = new TableLogOnInfo();
                    ConnectionInfo cI = new ConnectionInfo();
                    Tables tables;
                    cryRpt.Load(reportPath);
                        cI.ServerName = (string)builder["Data Source"];
                        cI.DatabaseName = (string)builder["Initial Catalog"];
                        cI.UserID = (string)builder["User ID"];
                        cI.Password = (string)builder["Password"];
                        tables = cryRpt.Database.Tables;
                        foreach (Table t in tables)
                            tLI = t.LogOnInfo;
                            tLI.ConnectionInfo = cI;
                            t.ApplyLogOnInfo(tLI);

  • Crystal Report Viewer - Sub Reports

    Hi Everyone,
                        I'm working with Crystal Reports(V13.0.7) Windows form viewer in VS2012(VB.Net). I have a sub report which is causing problems. I have set the link to the Main report parameter and Sub report. I have a total of 43 parameters getting passed(Main and Sub Reports including). While setting the ReportSource in code, I find that there are 43 parameter fields passed. But i constantly get an error "The parameter is incorrect". An important thing to note is that- Whenever i debug the code, the report gets displayed but it is not so when in release mode. Can anyone help me in this regard. I'm totally frustrated and its been weeks and i haven't solved the issue yet. I have attached the files below (FrmViewer - Used to add and set report source for Main and sub reports) and (Display-AR-REPORT( ) - for passing main report and sub report parameters). The AR.Rpt report

    Hi Sastry,
                   Firstly, thanks for replying to my post. I have checked all the parameters passed, did some changes(Had extra 0's after decimal point), but still no change. The same old Error. As i have mentioned before, Whenever i debug the code, the report gets displayed but it is not so when in release mode. The file (Original Report.png)image is a Perfect report. The report file (MyReport.png)shown below is my report.

  • Sub reports

    Hi All,
    I have a report having a command object where I have empno and some columns. And I have another command object which also having empno.
    The 2nd command object should get some empnos from 1st command object and should display countries based on the matched empnos . So I linked both command objects empnos in links tab.
    There is no parameter for both the reports
    Due to some performance issue I am doing like this
    Created a sub report with 2nd command object . Now in sub reports links tab I am passing main reports empno to sub reports empno
    But I am getting non matching empnos data.
    Please suggest
    Here what I observed in my 1st table have data like this.
    eno               name            division
    1                  aaa                 2
    2                  bbb                 2
    3                  ccc                 2
    In my 2nd table I have data like this
    eno               country            division
    1                 India                2
    2                 Aus                  2
    By using 1st method(linking command objects in links tab). I am getting result like this.
    eno               name            division        country
    1                  aaa                 2                Ind
    2                  bbb                 2                Aus
    By using 2nd method(Sub report approach). I am getting result like this.
    eno                  name            division        country
    1                  aaa                 2                Ind
    2                  bbb                 2                Aus
    3                  ccc                 2           
    Please suggest what is happening here ?I am doing anything wrong ?

    Hi Abhilash,
    I tired to suppress the records where there is no country.
    I did like this but not getting the result.
    Took a copy of sub report and placed it in report header as my sub report is in details section.
    In the sub report created a shared var like this.
    shared stringvar s :={sample1.country};
    And now in main report created a formula @Country to get country like this.
    shared stringvar s ;
    And in details section->suppress ->x-2 I wrote like this.
    isnull({@Country})
    Please suggest what is wrong here

  • Linking of Main and Sub Reports

    Hi,
    We have a requirement to integrate all the crystal reports (say 10 nos) into one single main report for the statutory purpose as per the client requirement. Basically client would like to view all these ten reports in single file by export them into single PDF. These sub reports are also going to work as an individual reports independently and having their own prompts. The data source for these reports is SAP BEx queries.
    Please let me know best approach for integrating these reports, since user doesnu2019t want to
    pass the values for duplicate prompts. Please note there are common prompts (BEx variables) across these sub reports.
    I have done the PoC for linking single sub report using Xtreme data base and here are my results.
    1.      Create a Blank Main reports and create a Country Prompt.
    2.      Link the sub report with main report using this Country Prompt.
    3.      Link the sub report with main report prompt and edit the sub report selection formula with the main report prompt u2013 u201C{Customer.Country} = {?Pm-?Which Country?}u201D
    4.      While refreshing the report, it will refresh the sub report based on the main report prompt value and shows corresponding data.
    5.      This approach works for single report and gives the expected results and asks only single time prompt selection.
    Challenges On the above approach while implementing using BEx Queries as a data source are:
    u2022      We need to equate the SAP BEx characteristics to this prompt:
    Ex:       = {?Pm-?Which Country?}
    That means we should have set of BEx queries which doesnu2019t have variables. At run time filters will be assign based on the main report crystal reports prompts. Again there could be some mandatory prompts and optional prompts and multi values etc.
    Will it affect the performance of the Crystal report while you apply filters at report level instead of BEx query level?
    u2022      We donu2019t want to modify the individual sub reports selection formulas and queries for linking purpose.
    Please let me know youu2019re best solution approach for the above issue.
    Thanks in Advance
    Regards
    Som

    If I understand correctly the main issue a report running as a sub report being run as a main report.
    I have a solution.
    for each of the sub reports build a new main report
    ie if you have
    sub report 1
    sub report 2
    then youhave a master report that calls them
    you would build
    Main report 1 ( which ONLY calls sub report 1)

  • How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9

    I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the MyReport.rpt there is two subreport name :
    1. MySubReport1
    2. MySubReport2
    My Question is :
    How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
    I try to using command :
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=thisform.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub=oRptOpen.OpenSubreport("MySubReport1")
    oRptSub=oRptOpen.OpenSubreport("MySubReport2")
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    but only show Main Report (view tab name : Preview)?
    Did I miss any command before I call oRptView.ViewReport?

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • Sub-report summary fields

    I have two sub-reports on a report. Each of these sub-reports have a quantity summary on them. I want to find the difference between these two summary totals.
    So let's say Sub(A) total is 200 and Sub(B) total is 25, is there a way to subtract the 25 from the 200 and bring that total to the main report?

    HI SD, 
    1.you have share the value to main report from both sub report by using formula .
    2.Sub Report Formula 
    For A Sub Report  
    shared numberVar Aqty; 
    Aqty := Sum ({Command.Qty})
    For B Sub Report  
    shared numberVar Bqty;  
    Bqty := Sum ({Command.Qty})
    3.Main Report Formula 
    Aqty  
    shared numberVar Aqty; 
    B Qty 
    shared numberVar Bqty;
    4.you can create final formula for different Aqty-Bqty
    5.you should put formula in both sub report and you should place the main report formula in below of sub report then only it will work. -Rajesh N

  • Any ideas for resolving IE "Page Cannot be Displayed" issues being encountered in Viewer using 11.1.1.7 in SSL mode, works fine w/Firefox & Chrome, or IE using nonSSL.

    Wanted to reach out to the community to see if anyone else is experiencing this issue.  We have tried to work an SR on it, but just have not been getting anywhere w/support.
    We recently upgraded from 11.1.1.6 to 11.1.1.7.
    When using a SSL connection (https://...8094), our Discoverer Viewer IE users are encountering "Page cannot be found" errors when running reports and when trying to export.  The problems are not encountered for users utilizing Firefox or Chrome, just IE.
    A couple notes:
    We've found that by dialing down the number of rows to display, that will most often allow the report to work, e.g. if the report is set to display 25 rows, the report will fail and we'll just get the IE "Page cannot be found".  If we change the display rows to 5, then the exact same report with the exact same parameters will work.  Although it would be nice to be able to display more than just 5 rows of data :-) .
    When the report runs successfully, we've also found that users get a lot of failures when exporting to .XLS.  Often they can be successful exporting to .csv instead of .xls, but some reports still fail to export .csv.
    We didn't have any of these issues prior to upgrading from 11.1.1.6 to 11.1.1.7, and again the issues only impact IE users when connecting in SSL mode.  If we test the exact same reports/parameters using a non-SSL connection (same web-server, just using http://....:8090 instead of https://.....:8094), everything works great.  Something just doesn't seem to be compatible between IE, SSL and the Web Server for the page calls over some certain size.
    Just wanted to reach out to see if any Disco Web Server gurus out there might have any ideas of things for us to try.
    Thanks a ton!
    Larry

    So, I did this:
    edited  $INSTANCE_HOME/config/OHS/ohs1/ssl.conf file.
    Commented/removed the following section (Took a backup of the file before modifying it)
    BrowserMatch ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    opmnctl stopall
    opmnctl startall
    The Viewer problem seems to be gone.  Oracle is adding a note to MOS for this issue, possibly with this solution.
    Tom

  • Passing Parameter from Main report to SQL command-based subreport

    I am trying to cut down the run time of my reports and have recently figured out how to write SQL commands to limit the data by filtering prior to being pulled into the reports.  However, many of my reports rely on multiple sub reports, which can cause a dramatic 'drag' on the report.
    I am trying to filter the SQL command used in my sub report by passing the group parameter, which is selected by the user in the main report, to the sub report's SQL command.  Without this parameter, the sub report has to sort through a lot more data than it would with this parameter, making the run time extremely slow.
    Any suggestions on how I can accomplish this?
    Thanks for any help you can provide,
    Marlene Allen
    Crystal Reports Developer
    Crystal Reports Professional;
    Product Type: Full;
    Product Version 11.5

    Hi Marlene,
    I don't believe you can pass a CR parameter to a Command object.
    I suggest replacing all of the Command Objects with a Stored Procedure so all of the data filtering is done server side. DB servers are much more proficient at collecting the data and filtering than CR will ever be. It will also allow you to replace subreports to also speed up your report processing. All depends on your layout of course but something to look at.
    Thank you
    Don

  • Web service report parameters

    Hi,
    just wondering is it possible to retrieve more info regarding report parameters using web service, I can only get following:
    multiValuesAllowed
    name
    values
    basically could a call register some other classes than call.setReturnClass(ReportDefinition.class) or call.setReturnClass(ParamNameValue [].class) which gives me the same info.
    The reason why I'm asking is because I'd like to be able to get:
    id / name
    data type
    label
    default value
    value set
    and so on... so I can create my own prompt page in which user could set/select desired values and then run report with those values. Is this making any sense?
    Looking at this document http://oraclebizint.wordpress.com/2007/10/25/oracle-bi-publisher-101331-web-services-first-impressions/ it looks like it is not possible, are there any workarounds.
    At the moment I'm doing this by parsing xdo and that way I can get parameters, value sets and so on, then using api I'm generating reports, but I don't like this approach...
    Any advices and help regarding this are welcome.
    Thanks in advance,
    Tomislav.

    Hi
    I hope you have already found an answer for your question, if not, please check the post Re: Getting null bytes using PublicReportService_v11.wsdl
    I've found and described an issue similar to the one you are facing.
    IHTH
    Please, let me know.
    Marco

  • Date ranges in sub reports

    I have a Crystal XI report pulling physician information by type of case (MS-DRG) for 6 months of discharges.  The report looks at cases and average length of stay for each physicians top 5 MS-DRGs.  I built a sub report to pull cases and average length of stay for ALL OTHER physicians for the same 5 MS-DRGs.  The goal is for each physician to be able to benchmark their average length of stay with other physicians in the same hospital.  This report will be accessed at the hospitals through Crystal Enterprise InfoView.  In InfoView, I can only see one set of filters instead of one for the main report and one for the sub report, so the end-users can't change the sub report select criteria.  Therefore, I need the parameters passed from the main report.  I can get everything to work except the discharge date range since the link creates and equal link.  We store our dates in number fields in the format YYYYMMDD.
    How can I get the sub report to run for the same date range as the main report?

    1.  I linked on the hospital ID field, but no date field because I don't want an equal join, I want a range of dates.
    2.  Yes, I want the main report and the sub report to use the same range of dates.
    3.  I didn't create additional parameters in the sub report or main report.  The only parameters being used are those created from the linking of the hospital ID. 
    Thanks.

  • Sub Report - Doubt

    Hi All,
    I am having 10 reports. And im imoprting all the reports as sub report into a main report.
    Hence, when i run the main report, how many times it will hit the DB.
    either only one time, or for all the subreport it will hit. ( that is 11 times including main report's hit).
    Main report as well as sub reports are using the same Stored procedure.
    I need minimum number of DB hit. How can i do this.
    Thanks in advance,
    saravanakumar.

    Are the parameter values to the stores procedure (assuming there are some) the same for all of the subreports too?  Obviously, if they are different, you'll have no choice but to hit the DB for each set of parameters.
    The only possible way that I can think of that you might be able to reduce the number of hits on the DB is by using shared arrays.  This would only be possible if one or more of the subreports are a high-level summary of the data (I assume the SP returns a lot of data, or you wouldn't really care very much as to the number of DB hits), such that there would be less than 1000 (array index limit) lines in the subreport.
    If this is the case, you could summarize the data in the main report into shared arrays, then the subreport could be written over a table that returns a single number per record, 1 to effective array size, which then could be used to drive the subreport and be used as an index to the arrays to print the subreport's detail lines.
    HTH,
    Carl

Maybe you are looking for

  • I restored from iTunes backup but it goes back to 'welcome to your new iphone'

    My iphone 5 was replaced today because of a faulty power button. I had done an iTunes backup this morning, choosing to backup iTunes purchases and the apps as well. In order to restore the backup to my new phone I had to set it up as a new phone and

  • JVM Crash..with SIGSEGV

    HI, In production boxes some of the JVM's are getting crashed while it's performing minor collections of gc. The trhead causing this crash is the GCTaskThread all the times. Using the following options.. -Xms2500M -Xmx2500M -XX:+DisableExplicitGC -XX

  • Error in Installing RCU for Oracle Webcenter Content Imaging

    Hi, I am comming across this error while installing RCU for Oracle Webcenter Imaging with Mircosoft SQL 2005 as the backend database. I am pasting the IPM.log file below which shows the error during the installation. Please help me from this. JDBC SQ

  • Mini display port wont work.

    I have bought an mini displayport to DVI adapter for my x1 Carbon, but when i plug it in the external display is just black. Do it need to some kind of special mini display adapter?  I have tryed to BIOS update, installed all the reqiuerd drivers and

  • Traversing HTML using JavaScript

    Can some one tell me if this is possible and point me to a good link to read up about this. I have a jsp page called MasterDeDisplay.jsp. It takes an object in and dynamically builds the page I want to display based on what was sent back from the dat