Failure of WhilePrintingRecords formula in JRC

Hi,
     I have a report which shows total number of records in its group header for its below group! It uses formula for total:
WhilePrintingRecords;
numberVar x
This report works fine when I set its datasource through XML in report designer CRXI Release 2. But when I run it through Java Reporting Component then its total field shows as zero. So is there any problem with jars used in java environment which fails the formula when run through my application?
Thanks,
Ameya

Hello Ameya,
The next version of the JRC - Crystal Reports for Eclipse version 2.0 - is currently in public alpha:
[http://beta.businessobjects.com/CR4EPreview|http://beta.businessobjects.com/CR4EPreview]
Developers of JRC are actively seeking comments especially about any runtime discrepancies between the Java Engine and the Crystal Engine. 
The best way to ensure your issue is heard - if you have the opportunity - would be to participate in the alpha.
Sincerely,
Ted Ueda

Similar Messages

  • Simple formula going nuts!

    Post Author: echoi
    CA Forum: Formula
    I've a very simple formula that... for the life of me, I can't figure out whats going on with it.
    It is in a subreport, and all it's supposed to do is look up a string for every record and if it matches, it adds on the value of a different coulmn.  So here's the formula:
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}else1234 // failure code
    What's weird about this is that there are three records that should match the "Closed Labor Charges" but the formula returned the value for only one of those records.  That's typical, I could have holes in my formula.
    What makes it even more odd from here on is that if I bring up 6 more records that have "Closed Labor Charges", the formula returns "1234" which is the failure code defined in the formula.  The records even contain the original match the formula found before and it's still returning a fail code.
    What is going on here?

    Post Author: V361
    CA Forum: Formula
    You may be able to peek into it a little by doing this.  add /0 to the formula, and save it. (You will get an error message, but save anyway)  run the report
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}  /0else1234 // failure code
    The formula should pop up in formula explorer, and should show some values.
    (Not a great way to trouble shoot, but sometimes it is handy to see what the Formula is doing. )  Also, after you remove the /0 and convert back to the orginal formula, add {Command.DESCRIPTION} to the report (next to the formula), or in the details, and unsupress them, this way, you should be able to see the value for {Command.DESCRIPTION} just before the formula is evaluated.

  • Charts with formulas

    Post Author: archon4239
    CA Forum: Charts and Graphs
    I'm using Crystal Reports XI and I can't seem to use the chart functionality with formulas.  I see detail formulas available in the chart wizard (data tab), but I don't see my sum formulas in the wizard.  The sum formulas are based variables that total numbers in the group footer. 
    Anyway I can create charts with these formulas that sum up values in the group footer?

    Post Author: acarey
    CA Forum: Charts and Graphs
    A big short coming with CR is that it doesn't let you chart WhilePrintingRecords formulas. I tore my hair out for a while with this one.
    Eventually I found a document with a work around on the Business Objects website. Its a SERIOUS pain in the *** but it does work.
    The Doc is for CR9 but I'm using XI and it works. The document is called cr9_charting_print_time.pdf. Unfortunately I can't remember the exact location but you should be able to search for it.
    If anyone knows an easier way don't hesitate to TELL SOMEONE. The thing with these forums is that questions like this don't seem to get answered to often.
    Good luck mate

  • Summary field of subreport used in main report formula calculation

    I have a summary field in a subreport that I want to use in a calculation of a percentage using a second summary field in the main report as the denominator.  How do I do this in a new formula?

    Thank You Ian Waterman,...
    Couple of questions:
    Where you say "... in subreport
    @ eval
    whileprinting records;
    shared number x:=your summary
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Should the "your summary" be:  "DistinctCount of Activated_Survey.Seq.Incident"  which I have showing in the Report Footer of the subreport?
    Where in the subreport should I place the formula?  Can it be hidden?
    Where you say "In subreport header..."
    @reset
    whileprintingrecords;
    shared number x:=0
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Where in the subreport should I place the formula?  Can it also be hidden?
    Where you say "In the main report in section after subreport..."
    I have the subreport sitting up in the main Report Header as I only want the subreport summary field showing. 
    In the subreport, I have the Report Header and Details section hidden.
    @calc
    whileprintingrecords;
    (shared number x / main report summary) * 100
    Am I correct that this is to be a new formula in the main report?
    However, what I need to have happen is that the main report summary field of: "Count of Answered_Survey.Seq.Incident" needs to be divided by the subreport summary field of "DistinctCount of Activated_Survey.Seq.Incident" * 100.
    What do I modify in the formula?
    Thanks.

  • Is it possible to pass a formula value from a sub-report to a main report

    Hi there,
    Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
    Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
    formula name=main_subIntRatePageCount
    Shared NumberVar subIntRatePageCount := TotalPageCount;
    and in the Main report Ive declared the formula variable as,
    formula name=subIntRatePageCount
    Shared NumberVar subIntRatePageCount;
    subIntRatePageCount;
    I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
    The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of  3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".

    Also thanks Raghavendra, Asha,
    I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
    I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
    The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
    Regards
    Robert.

  • Subreport linking problem after upgrading to JRC 2.0

    Here's a little background of my environment before I get to the problem.  We have a suite of reports that were developed with CR4E ~v1.04 in Eclipse 3.3.1.  I only used the plugin for setting up the pojo data sources and then did the report development in the standalone Crystal Reports Designer XI, and would then import the report back into Eclipse.
    This week I installed the new 2.0 runtime jars and also update the eclipse plugin to version 1.07(we aren't in Eclipse 3.4 yet).  We have a few reports with multiple subreports for things such as agent totals, weekly totals etc.  A report layout might look like this.
    Agent 1
         Day1 info
         Day2 info
         Day3 info
         Agent 1 Total  (this would be a subreport)
    Agent 2
         Day1 info
         Day2 info
         Day3 info
         Agent 2 Total   (this would be a subreport)
    After the upgrade, when a report is generated, the subreports only work the first time they appear in the report.  So in the above example, 'Agent 1 Total' would be normal, but 'Agent 2 Total' would have no data.  Any non data related formatting will show up, so the subreport is there, it's just not able to get the right data from the subreport links.  I have verified the data is there both by debugging the services(which haven't changed) and removing the subreport links, thus having all the data show up for each subreport.  The fields that are used to link from the main report to the subreport have the correct value at the time the subreport is used.  I have tried both regular pojo fields and formulas fields to link the subreports, and the problem happens either way.  Please advise.
    Thanks,
    Cameron

    Similar problem from old version to new version(there isn't change in the changeDataSource method..): same report with 1 subreport in old version work well but with new version there is that error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: InternalFormatterException---- Error code:-2147217394 Error code name:missingParameterValueError
         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 report.CRJ12.main
    i've use log4j to have better information about the error (that is the first part of the log)
    ERROR [main] (?:?) - Failed to load the resource 'InternalFormatterException' from the bundle java.util.PropertyResourceBundle@1cbf6bb.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key InternalFormatterException
         at java.util.ResourceBundle.getObject(Unknown Source)
         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 report.CRJ12.main(CRJ12.java:442)
    Edited by: Andrea Bonf on Feb 13, 2009 10:14 AM

  • Not able to clear out a formula field value when variables are equal to 0

    I am trying to calculate the difference between a formula field from a main report and a formula field from a subreport. When i run the report i get a correct difference calculation only when both formula fields have a value different than 0. When both values are 0 then the difference calculation shows the last item quantity from the formula field in the subreport that had different values than 0.  It looks like the difference calculation is not being clear out before jumping to the next value calculation.

    try to clear the variable values once done with calculation like
    whileprintingrecords;
    shared numbervar i:=0;
    regards,
    Raghavendra

  • Simple question on summing a formula field

    I am somewhat new to Crystal and have run across this need for the first time.  I have a simple report that allows for multiple quote numbers to be entered in a parameter, then groups lines by product # and then calculates in that group, the total quantity ordered for that pn.  In that group header, I then multiply the unit list for that pn by that total of qty ordered to come up with a total list for that pn.  I now simply need to Grand Total that group total.  I'm using Crystal 11.
    Thank you!

    Hmm, if you are using the SelectExpert to only report on the part numbers that you selected in the parameter, then a pair of simple formula would be the simplest way of doing it (although there are others!):
    //formula1 - place in details ection and suppress;
    whileprintingrecords;
    numbervar grandtotal:=grandtotal+(UnitPrice * Quantity);
    //formula2 - for the end of the report
    whileprintingrecords;
    numbervar grandtotal;
    If the items on the report are not determined by your parameter choice (ie: still display them, even if not picked), then change formula1 to:
    whileprintingrecords;
    if QuoteNumber in {?-ParameterList}
    then numbervar grandtotal:=grandtotal+(UnitPrice * Quantity);
    Or you could just setup a grand total variable, and in your existing formula that does "multiple... ...pn by that total of qty" have a line prior to the end of it that adds "pn * qty" to the grand total variable?
    Ideas to play around with at any rate...

  • JRC for Crystal Reports for Eclipse V2.0 Parameter Problems

    Scenario:
    I have a report that displays the Function Group Name for a certain individual and all the Functions included in that Function Group. The following are the tables involved:
    USER, FUNC_GROUP (contains description of the group) and FUNC_GROUP_LIST (the actual functions in the FUNC_GROUP).
    The SQL command for the main report is: select id, name, description from FUNC_GROUP, USER where FUNC_GROUP.id = USER.default_func_group_id
    The sub-report which lists the functions for the Function Group has the following SQL command: select id, name from FUNC where func_group_id = <main report's FUNC_GROUP.id>
    The problem is my current code still flags missingParameterValueError error whenever I changed the DB location and set the parameters.
    Code used for setting of db connection:
    private void setDBConnection(ReportClientDocument doc) throws ReportSDKException {
        IConnectionInfo newConnectionInfo = new ConnectionInfo();
        newConnectionInfo.setAttributes(new PropertyBag(connectionProperty));
        newConnectionInfo.setUserName(getLoginname());
        newConnectionInfo.setPassword(getPassword());
        //preserve subreport links
        SubreportController src = doc.getSubreportController();
        Map<String, SubreportLinks> linkMapper = new HashMap<String,SubreportLinks>();
        for(String subreportName : src.getSubreportNames()){
            linkMapper.put(subreportName,
                (SubreportLinks) src.getSubreportLinks(subreportName).clone(true));
        //If this connection needed parameters, we would use this field. 
        Fields<IParameterField> pFields = doc.getDataDefController().getDataDefinition().getParameterFields();
        replaceConnectionInfos(doc.getDatabaseController(), newConnectionInfo, pFields);
        IStrings strs = src.getSubreportNames();
        Iterator<String> it = strs.iterator();
        while (it.hasNext()) {
          String name = it.next();
          ISubreportClientDocument subreport = src.getSubreport(name);
          pFields = subreport.getDataDefController().getDataDefinition().getParameterFields();
          replaceConnectionInfos(subreport.getDatabaseController(), newConnectionInfo, pFields);
        //reconnect subreport links since when using replaceConnection links are erased
        for(String subreportName : src.getSubreportNames())
          src.setSubreportLinks(subreportName, linkMapper.get(subreportName));
    Edited by: Rizza Lynn Ponce on Jun 2, 2009 11:56 AM

    >
    Ted Ueda wrote:
    > Do you look at the report links you're saving before the connection changes, to see if it's being saved, and added back?  It'll be interesting what type of link it is.
    I've run the program in debug mode and inspected the following:
    src.getSubreportLinks(subreportName).getSubreportLink(0).getSubreportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getMainReportFieldName()
    src.getSubreportLinks(subreportName).getSubreportLink(0).getLinkedParameterName()
    before the change in connection and after the change in connection in both main and subreport and after adding back the links. The values monitored did not change.
    Am I looking at the correct things? Or is there another value I need to monitor?
    >
    > Is it possibly to a stored proc parameter that is no longer there in the subreport after the database change?
    I am not using any stored procs, I just formulated an SQL for retrieval in both main and subreport.
    >
    > If so, you'd need to redefine the link before applying.
    >
    > Sincerely,
    >
    > Ted Ueda
    What do you mean redefine?
    Additional info:
    The current template I'm using accepts the value from main report (FUNC_GROUP.id) which is in turn used as a parameter in the SQL command in the subreport. This throws an error when exporting via JRC.
    However, I tried some modifications in the SQL command in the subreport. I've included the Function Group ID in the select clause (select id, name, func_group_id from FUNC) instead of using it in the where clause. Then in the linking of the main and the subreport, I chose filter data in subreport by func_group_id matching FUNC_GROUP.id in main report. Exporting in JRC this report worked well and deliver the same data as the original template. The problem is I think it takes longer because all data in FUNC table is retrieved. And also as a framework developer, I prefer not limiting the developers regarding the style on how they connect main and subreport in CRW (I'd personally say I'm more fond of using the original template as I think the modified template retrieves unneeded data).

  • Need a formula for 12 months data, 6 months data and 3 month

    Hi All Crystal Experts,
    In my report, data is grouped by months and I have monthly view of data. I have three prompts- Year, Startdate and Enddate. If I give 2013 as year, 1/1/2013 as start date and 05/01/2013 as end date then report shows monthly view of data for Jan-13, feb-13, Mar13, Apr-13 and May-13. Now in report, for each month, I want three additional columns, I want to show last 12month, 6 month and 3 months view. Like for Jan-13 month, in column 6 months, I want to show data for last 5 months including current month i.e. Jan-13+Dec-12+Nov-12+Oct-12+Sep-12+Aug-12 and in Column 12months view, I want to show accumulated data of last 11 months(+ current month) and in 3 months view, data for last 2 months(+ current month).
    I had tried creating Sub report for 12 months view and created Running total formula  but it is not showing any value in report. It is blank. I have created running total like this way:
    (1) "Running total formula" (which I am using and placing on group footer):
    (I) Field to summarize- @Cash_total
    (ii) Evaluate (use a formula):
    WhilePrintingRecords;
    NumberVar Cash_total_12 months;
    If Month ({@Month_PostDate}) In [(Month {?StartPostDate} - 11) to Month
    {?StartPostDate}] Then
       Cash_total_12 months :=  Cash_total_12 months + {@Cash_Total};
    (iii) Reset (use a formula):
    WhilePrintingRecords;
    NumberVar Cash_total_12 months=0;
    When I placed this formula in group footer, it is showing nothing.
    Please suggest me formula. Quick help would be much appreciated.
    Thanks,

    Hi Remi,
    Please do not post multiple threads for the same issue.
    Continue discussion on this thread:
    How to calculate last 12 months, 6 months, 3 months data in report
    -Abhilash

  • Using a subreport field in a main report formula.

    Post Author: testing123
    CA Forum: Formula
    Hi.I have a summary of a field {timesheet_log.labour_cost} in a subreport and a field {project.total_po} in the main report and I want to add the two together in a function in the main report. Both fields are linked to a job which is grouped by the jobs' ID.The subreport contains this formula: shared CurrencyVar myTotal;myTotal := Sum ({timesheet_log.labour_cost}); In the main report I have a formula, myTotal, that reads: WhilePrintingRecords;shared CurrencyVar myTotal;myTotal;  As you can see myTotal is a shared variable which contains the total of all the values in {timesheet_log.labour_cost}. However, when I put the formula myTotal in the group footer for each project, it will only change if there is an actual set of values in {timesheet_log.labour_cost}. If there isn't, it will display the last total of {timesheet_log.labour_cost}. We get something like this: Job           Sum{timesheet_log.labour_cost}           {project.total_po} 10050       0   (no value)                                                  100       10051        400    (Value = 400)                                    492210052        400    (no value)                                              32910053      400   (no value)                                    1111110054      2490 (Value = 2490)                                     24210056      6000 (Value = 6000)                            343410057      6000 (no value)                                    99494 Basically what this is saying is that if there are no values at all (ie NULL) in {timesheet_log.labour_cost}, the formula I have made will use the previous value. What I want to do is set the Sum({timesheet_log.labour_cost}) to zero if there are no labour_costs so that basically the value is reset to 0 if there's nothing there.                           

    Post Author: JKitz
    CA Forum: Formula
    Group it by Job Number and then add the following to the group header:  WhilePrintingRecords;shared CurrencyVar myTotal := 0 Then put the information you have above in the group footer with your formula and suppress the detail section.  That way you will zero it out with each new Job Number

  • Storing a conditional formatting formula in a variable

    I have a conditional formatting formula that exceeds the 393 character limit for Word fields. I've placed the formula directly into the template table, and it works correctly. But now, of course, there are several hundred characters of formatting information in that cell, along with the data field. Not pretty.
    Is there a way to store that long formula into a variable, and then refer to that variable as the conditional format? I'm getting stuck on the right-arrow tags (>). I can't figure out how to include those in the string and store them in the variable.
    Here's a simplified example of what I'm trying to do:
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?><?attribute@incontext:color;'red'?><?end if?>")?>
    The inclusion of the right-arrow tags (>) in the string causes a failure when attempting to Preview. If I replace all of the right-arrow tags with something else, like the number 8 ...
    <?xdoxslt:set_variable($_XDOCTX,'myvar',"<?if:number(Sales) gt 1000000?8<?attribute@incontext:color;'red'?8<?end if?8")?>
    ... the string is stored in the variable, and I can refer to it in the template table by using <?xdoxslt:get_variable($_XDOCTX,'myvar')?>. It's useless, of course, but it works correctly. The string is stored in the variable, and the contents of the variable appear in the template.
    So how can I imbed the right-arrow tags in this text string? Use an escape character? Imbed the ASCII code? I'd do either of those in a heartbeat if I could figure out the right syntax.

    Related information is available at:
    Where to put xsl:variable definition

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • CR XI R2 JRC: Error loading database connector (driverImpl.DriverLoader)

    Hello!
    I developed a report with CR XI R2 SP6 Designer that uses native XML.  Everything in the report seems to be fine...in the preview of my report, all data looks correct.
    When trying to review the report with the JRC thick client ReportViewerBean, I get the following error just as the report is about to be displayed:
    Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.
    I went through about ten or so previous threads about this error, but none of the solutions are working for me.
    I'm using NetBeans to develop and debug, and I have CrystalDatabaseConnector.jar added to my project libraries, and I can view the class com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader in the NetBeans object browser.
    Some of the posts I viewed mention a different jar for this DriveLoader class.  Is there something wrong with the version of CrystalDatabaseConnector.jar that I have?  Do I need an updated jar?  Does this jar rely on another jar that might be missing? I've been through the jar list in the CR XI R2 JRC deployment guide pdf, but I just don't see that I'm missing anything.
    Thanks for any suggestions!
    Edited by: Joseph Huber on Mar 9, 2010 2:00 AM

    Some stuff from the Java Console...
    - Formula {@DesiredEFT} compiled.
    - Formula {@DesiredLFT} compiled.
    - Formula {@DesiredGPM} compiled.
    - Done loading report.
    - Time to load report T:\USGD_Share\PCVOLS1\source\java\CRViewerTest\crDxProposal1.rpt took 160346 ms
    Crystal Report Viewer 2.1.21.2
    java.vendor = Sun Microsystems Inc.
    java.version = 1.6.0_16
    os.name = Windows XP
    os.version = 5.1
    os.arch = x86
    - JRCAgent1 received request: queryServerCapabilitiesRequest
    - Export Supervisor: loading available exporters
    - Export Supervisor: found 6exporters
    - Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.page.pdf.PDFExporter
    - Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.page.rtf.RTFExporter
    - Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.report.crystalreports.CRExporter
    - Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.record.sepv.SEPVExporter
    - Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.destination.disk.DiskExporter
    - Export Supervisor: loading exporter daviss.jeff.cellexporter.CellExporter
    - Export Supervisor: fail to load exporter (stack trace follows).  This warning is only a problem if the exporter that failed to load is supported in a given project.daviss.jeff.cellexporter.CellExporter
    java.lang.ClassNotFoundException: daviss.jeff.cellexporter.CellExporter
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:169)
            at com.crystaldecisions.reports.formatter.a.c.char(Unknown Source)
            at com.crystaldecisions.reports.formatter.a.c.case(Unknown Source)
            at com.crystaldecisions.reports.formatter.a.c.for(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.do(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.getServerCapabilities(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getServerCapabilities(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getServerCapabilities(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.a.t(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.a.<init>(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.RSReportChannelFactory.newReportChannel(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.bi.a(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.bi.a(Unknown Source)
            at com.crystaldecisions.ReportViewer.ReportViewer$1.a(Unknown Source)
            at com.businessobjects.crystalreports.viewer.applet.h.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:619)
    - JRCAgent1 received request: fetchReportPageRequest
    - JRCAgent1 attempting to acquire license
    - JRCAgent1 successfully acquired license
    - JRCAgent1 detected an exception: Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.
            at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:619)
    - JRCAgent1 releasing license
    Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

Maybe you are looking for