Special summary field in the group footer section.

Post Author: Razzle00
CA Forum: General
I have a Crystal Report that reads a customer file grouped by custid.  In the group footer section I need to place the value of the category field from each customer record in a seperate field on the report to match the section text label.The output of the report would look something like this for each customer id (1 page per cusomter id)....
Customer Table Example:Custid   Category  Section
101        C         1101        B         3101        D         6101        A         2 230        B         2230        D         3 230        E         1115        A         5115        C         6
Each page of report example output:************************************************<pageheader>
Customer Number: 101
<Details><groupfootersection>
This customer has the follow for each section:
Section 1: C  Section 2: A  Section 3: BSection 4:Section 5:Section 6: D
<Pagefooter>************************************************
How would I create a field that could diplay the category for each section in the groupfootersection of the report?I realize this could be done in the detail secion of the report for each record, but I do not have the optionto use the detail band.  It has to be done in the groupfootersection so that the fields can be placed in variousplaces depending on customers preference.
Thanks,
Razzle

A group footer will dis[lay contents of the last record. You need to sort records to ensure that the last record contains link to your dynamic image.
Ian

Similar Messages

  • Dynamic Picture Displaying in the Group Footer Section

    Hi all,
    I am building a sales quotation layout for SBO in crystal 2008.
    The layout has only one group. The first line in each group in considered to be a slaes tree father.
    For every group i need to display the picture of the "father" in the group footer  (one picture for every group).
    I get up to the stage when for each line in the detailes section i have a picture, but for all the lines other then the "father" line the picture is supressed.
    My problem is moving the displayed fahter picture from the detailes section to the group footer section. Every time i copy the picture field to the group footer nothing is displayed.
    Any idea?
    Thanks,
    Udi

    A group footer will dis[lay contents of the last record. You need to sort records to ensure that the last record contains link to your dynamic image.
    Ian

  • How to display or suppress a field in the group footer conditionally

    Hi,
         I am working with crystal report XI R2
         My requirement is that suppress the filed on group footer if it is duplicating .Also display only once for the first record in  each page  if it runs in to more than one page .
    For example suppose my report is to display all the students name in a college on department basis.
    Then do the grouping on department ,then display the names  like
    Page 1
    Department                      +Student+
    Computer                             Ram
                                                    Ravi
                                                    Seetha
    Electronics                          Anvar
                                                  Deepak
                                                  Geetha
    Page 2  
    Electronics                          Hari
                                                  Karthik
                                                    Xavier
    Maths                                     Sini   etc.......
      Inorder to suppress the duplcated department name ,i am taking the count of the student names for each department and if the   count is more than 1 then suppressing it.
        But i am not able to display it conditionall on each page for the first record ,if the repor is running in different pages..
       Please let me know if you require more information regarding teh same.
    Thanks in advance,
    Smitha
    Edited by: smitha thomas on Nov 17, 2010 9:58 AM
    Edited by: smitha thomas on Nov 17, 2010 9:59 AM
    Edited by: smitha thomas on Nov 17, 2010 10:02 AM

    Right click the department name column and go to format field and  select supress if duplicate...this will remove duplicates
    to get it displayed in each page
    create a formula say F1 and place the column inside the formula
    and conditionally supress for each page
    This may help
    Thanks,
    Ganesh

  • Suppress a field in the page footer unless it's the last page of the group

    Hi,
    I have a report set up where one can pull invoice information.  There is a page footer used for every page which contains a field that I only want visible when it is the last page of the group.
    For example, one might pull several invoices, each invoice being its own group.  A field would be suppressed in the footer unless it is the last page of that particular invoice.
    Is this something that can be done in Crystal Reports XI?
    Thank you.

    Hi,
    Alright, it's a bit rusty but here's how you can do it:
    1) Create this formula and place it in the Report Header:
    whileprintingrecords;
    numbervar n1 := groupnumber;
    2) Create this formula and place it in the Group Footer:
    whileprintingrecords;
    numbervar n := groupnumber;
    3) Create this formula and place it on the Page Footer:
    whileprintingrecords;
    numbervar n;
    4) Right-click the above formula (Formula on the Page Footer) and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar n1;
    numbervar x;
    if currentfieldvalue <> n1 then
      x := 1;
      true;
    else
      x := 0;
      true;
    5) Right-click the field that you wish to always suppress except on the last page and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar x;
    if x = 1 then true;
    Let me know how this goes!
    -Abhilash

  • Previous record values displaying in the Group Footer row in the report.

    Hi Friends,
    I have 3 tables
    TableA:(PERNR BEGDA ENDDA are key fields)
    PERNR BEGDA    ENDDA      WERKS
    10001 1/1/2010 12/31/9999 1001
    TableB:(PERNR BEGDA ENDDA SUBTY are key fields)
    PERNR BEGDA    ENDDA       SUBTY  TYPES
    10001 1/1/2010 12/31/9999   01          COMS1
    10001 1/1/2010 12/31/9999   02         COMS2
    TableC:(PERNR BEGDA  ENDDA are key fields)
    PERNR BEGDA  ENDDA        AMNT
    10001 2/2/1997 4/3/2010      1000
    10001 4/4/2010 12/31/9999  2000
    I have joined these table by the key 'PERNR'( like A->B and A->C)
    Groped by the same key 'PERNR'
    My result rows in the report:
    PERNR BEGDA    ENDDA      WERKS  SUBTY  TYPES  BEGDA    ENDDA      AMNT
    10001 1/1/2010 12/31/9999 1001       01         COMS1  2/2/1997 4/3/2010    1000
    10001 1/1/2010 12/31/9999 1001       02         COMS2  2/2/1997 4/3/2010    1000
    10001 1/1/2010 12/31/9999 1001       01         COMS1  4/4/2010 12/31/9999 2000
    10001 1/1/2010 12/31/9999 1001       02         COMS2  4/4/2010 12/31/9999 2000
    But in the report format is like this in the Group Footer row:
    PERNR: 10001                     WERKS:1001
    SUBTY: 02                          AMNT :2000 (Current date)
                                                AMNT :1000 (Previous record)
    I created the format with "Previous" function
    but in the report it is giving the '2000' instead of '1000' in the AMT field
    Please help me, can i use the for loop in the report? or any sugessions?
    Thanks in advance.
    Regards,
    Venkata

    A group footer will dis[lay contents of the last record. You need to sort records to ensure that the last record contains link to your dynamic image.
    Ian

  • Is there a limit to characters in the Header/Footer section of a region?

    Hi
    I have a js scripts that I placed in the Header/Footer Section of a particalur reason.
    It is quiet a lengthly script but when I click apply changes I get the following APEX error message.
    ORA-20001: Error in DML: p_rowid=641043905163928761, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-01461: can bind a LONG value only for insert into a LONG column
    Is this message cause by a limit on the number of characters and if so could there not be a limit on the number of characters allowed in the input box with a counter so that the user is aware that there is a limit.

    Alistair,
    Yes, there is a limit. May I ask why you want to put the script into the region footer or
    header? I put the long code into a file on the file system and then reference it from the
    page.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/apex/f?p=107:7
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Summary fields in the JSP report

    I created a JSP report using Oracle 9i Reports Developer using report wizard. It has a %Total field on one of the columns.
    It is running good for the first time. But when I am closing and reopening the report the Summary column is showing a null value in the source column. And it would not run the report.

    Puvan,
    I figured out the problem myself. It is not a version issue.
    I was using a sum function on a decode expression in the sql command. The % total was applied on that sum expression. Every time I was reopening the report the sum expression was getting created in a new group.
    When I gave an alias for the sum(decode(xyz)) expression it is working fine now.
    I would still consider that as an issue with Reports Developer.
    FYI...
    Ritendra.

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • One single Group Footer missing

    Post Author: dbguy123456
    CA Forum: General
    I have inherited a Crystal Report (v.10).  When I print preview it the Group Footer for just one group is missing.  It is grouped on product, thus product 1 doesn't have a footer, but products 2, 3,... do have their footers.  I've looked all over the place for what is causing this and can't figure it out.  Since I wasn't the creator of the report (she is no longer available), I can't figure out how she did this.
    How can I get product 1's footer to appear?

    Post Author: wapper
    CA Forum: General
    Probably conditional suppressing. Open "format section" dialog for this group footer and check for a formula in "Suppress" button. If it is empty, also check for suppressing of individual field objects in the group footer section.
    Wapper

  • Problem in summarizing data in the group level

    I have four groups namely
    i) Year Case opened.
    ii) Month Case opened
    iii) Case Status
    iv Case Severity
    In the details section there are few details for the report to show namely Case Severity (ie., Level 1, Level2 etc) and Case Status (ie., Opened, Closed and Pending).
    In the Case Severity Level i am displaying the count. Till now everything is fine.
    Now, a statistics for the month has to be added. I haved the fields in the Group Footer of Month Case Opened.
    I need to calculate the total Case Severity of Level 1 in opened status and total of Level 2 in opened status and so on..
    Only the last Case Severity value total is shown correctly in statistics  of the month.
    Please let me know if there is any suggestions on this.
    Thanks in Advance.

    No. I havent used.
    I tried using a cross tab and i am getting the correct value. But i wanted to use the same logic of crosstab in formula because in crosstab it is showing only the values available in that group.
    What i needed is, even if the many case status description not able for a group it should display all the name and the corresponding value should be zero in that case.
    Hope i tried to explain the problem properly. Pls let me know your comments.

  • ERROR while adding summary field in group footer

    Hi all,
    i am using CR Server XI R2
    i am trying to a subtotal in a group header using the code below
    fieldobjCls = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObjectClass();
                fieldobjCls.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrReportObjectKindEnum.crReportObjectKindField;
                fieldobjCls.FieldValueType = CrFieldValueTypeEnum.crFieldValueTypeInt32sField;
                       fieldobjCls.Name = "Count";
                fieldobjCls.DataSource = "Count({CSP_PROCESS_REPORT.userid})";
                      fieldobjCls.Left = 1000;
                fieldobjCls.Top = 700;
                fieldobjCls.Width = 1000;
                fieldobjCls.Height = 300;
                boSection = rcDoc.ReportDefinition.get_GroupHeaderArea(0).Sections[0];
                rcDoc.ReportDefController.ReportObjectController.Add(fieldobjCls, boSection, -1);
    as a result i am getting the error as
    Cannot find the section in the group area pair of the summary field.
    how to solve
    Padmanaban V

    Try adding the summary field in the Report Designer first, then do the same steps in code. If it doesn't work in the deisgner it won't work in code.

  • Problems with summary field in group footer

    Hello
    In a dynamically generated Report in c#, i made a sum in some group footer i have generated.
    the values to sum are integers. But Crystal show a result like that : 1254.00 and i want it this 1254.
    here the code use to make the sum in the group footer
    l_CrySectionSousTotal = m_ReportClientDocument.ReportDefController.ReportDefinition.get_GroupFooterArea(b_intNumGroupe).Sections[0];
    l_champsTotal.FieldFormat.NumericFormat.RoundingFormat = CrRoundingTypeEnum.crRoundingTypeRoundToUnit;
    l_champsTotal.FieldFormat.NumericFormat.NDecimalPlaces = 0;
    l_champsTotal.DataSource = "Sum ({ado.Poids})";
    m_ReportClientDocument.ReportDefController.ReportObjectController.Add(l_champsTotal, l_CrySectionSousTotal, -1);
    it's seem's like the NDecimalPlaces property do nothing.... i don't understand.
    if you have an exemple of use of NDecimalPlaces ....
    thanks for you help.

    Hello, Jonik;
    The formatting changes will not take effect unless you tell the field not to use the default values.
    So, try adding a line of code such as:
    l_champsTotal.FieldFormat.CommonFormat.EnableSystemDefault = False;
    before:
    l_champsTotal.FieldFormat.NumericFormat.RoundingFormat = CrRoundingTypeEnum.crRoundingTypeRoundToUnit;
    l_champsTotal.FieldFormat.NumericFormat.NDecimalPlaces = 0;
    Elaine

  • Group footer. Want to print one section in the body of report

    I am working on an invoice.
    It has two groups:
                    Detail line
                    Invoice number
    In crystal the invoice number group header is ran than the detail line group fires.
    After all the detail lines are printed for that invoice number the group footer for the invoice prints.
    I have multiple sections in my invoice number group footer.
    All these sections except the first has the property u201CPrint at Bottom of Pageu201D selected.
    The First group footer section prints as it should directly below the detail section.
    The second section print at the bottom of the page as expected.
    The third group footer does not print till the end of the entire report. So if I have multiple invoices printing at one time I see an invoice subtotal for each invoice but the u201CTotal Dueu201D does not show until the last page. It is also always 0.00.
    any help wouldbe appriciated.

    I'm guessing here, but it sounds like the data record is not "available" (past EOF?) when the footer is being printed.  Try putting the db field into a shared variable in the detail section (basic syntax):
    whileprintingrecords
    shared total as number
    total = {SOShipHeader.CuryBalDue}
    formula = ""
    Then use the shared variable in the footer:
    whileprintingrecords
    shared total as number
    formula = total
    HTH,
    Carl

  • Suppressing the first fields in a group

    Post Author: jrock
    CA Forum: Formula
    Is there a way to use the onfirstrecord function in the field suppress formula?  I have a few fields that calculate and I do not want the first ones in the group calculating negative entries.  I thought about <=0 as an option, but I do not want to suppress entries that are not on the first line of the group.

    Post Author: bettername
    CA Forum: Formula
    In group header, create a formula that initialises a variable:
    whileprintingrecords;
    numbervar x:=0
    In the details section, place a formuila that increments the variable:
    whileprintingrecords;
    numbervar x:=x+1
    Now conditionally suppress the details section/field (or use in your summarizing formula) using:
    numbervar x<=3 //will suppress when in the first three rows in the group.
    Bear in mind that this will not affect auto-generated group summaries, it'll only hid the section/field where it's in the first three lines.  You'll probably have to write your own group summary formula/running total if you don't want to include the first (x) lines in the total.
    That would look like (suppress everything but the group footer formula):
    In Group header:
    whileprintingrecords;
    numbervar x:=0;
    numbervar total:=0;
    In details/whatnot:
    whileprintingrecords;
    numbervar x:=x+1;
    if x>3 then numbervar total:=total+
    In Group footer:
    whileprintingrecords;
    numbervar total;

  • Selection criteria are not applied to summary fields on group footers.

    I wonder if anyone can help me with this problem.  I am using Crystal reports version 11.2, and my data source is a Sql Server view.
    The records on the view have a date field, and I have selected all records within a given date range in "Selection Formulas".
    The records are then grouped, and the Crystal summary facility used to summarise number fields on the group footers.
    So for example, if my view contains four records, one with field "amount" = 2, one with field "amount" = 8, one with field "amount" = 6, one with field "amount" = 3, but only the first two records are within the valid date range, you would expect to see the first two records listed out at detail level, then field "amount" summarised at group level, with a summarised value of 10.
    ie ....                record1                      2
                           record2                      8   
                           group level total         10
    This works fine when I run the report using Crystal's "print preview" facility.  However, when the report is run from within an application written in C#.NET, the selection criteria are not applied to the summary field, so you get ..
                           record1                      2
                           record2                      8   
                           group level total          19
    I tried putting the date selection criteria at both record and group level, but that did not work.
    I googled the problem and found an article explaining that Crystal first performs the record-level selection, then it creates the groups and totals up any summary fields, and only then does it apply the group-level selection criteria, which can lead to problems like the one I have described above.  However, since I have put my date selection criteria at both record and group level, I do not understand why I still get the problem.
    In one report I got round this problem by creating a formula that returned zero if the record date was outside of the valid date range, and returned the number field to be summarised if the date was valid, then summarising that formula, instead of summarising the number field directly.
    In other reports I created one formula to set a shared variable as zero, then another formula to accumulate it at detail record level, then another formula to display the variable at the group footer.  In other words, I did not bother with the Crystal summary facility at all, but created my own summary facility.
    While googling the problem to see what other people did in this situation, I noticed that most fixes used variations of the "shared variables and formulae" fix to get round the problem.
    The problem is that I have lots of complex reports and it will take ages to replace the summarised fields with shared variables and formulae.  The reports were initially tested with "Print Preview" so we did not notice this problem until the C#.Net application was ready to use them.  And I can't believe that you are simply meant to ignore the summary facility and re-invent the wheel by doing it all manually.
    Please tell me that there is something simple that I have been doing wrong!!!  If I have not given enough information for you to answer, please let me know.
    Thanks,
    Anne-Marie

    Hi, Anne-Marie;
    You may be running into a common issue that is docuemented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM

Maybe you are looking for