Change field in detail section

In crystal report, after I draged a field [Order2009] to the detail section, how to change [Order2009] to [Order2010]?
I did it as the way below:
1) delete [Order2009]
2) drag [Order2010] from field view to detail section
I do not think this is the best way to replace field.
Edited by: aspfun on Apr 27, 2011 2:32 PM

This is the only way to REPLACE a field.
But if you want to select which field to display based on a parameter for the year you could.
if {?yearparamter} = 2009 then else
if {?yearparamter} = 2010 then else
"oops-wrong year"
Debi

Similar Messages

  • Vertically align a field in details section.

    I am new to Crystal Reports so I will do my best to explain what I am trying to achieve......
    In MS Excel, it is possible to vertically align text so that it remains in the centre of the cell regardless of the cell height. I would like to do a similar thing in the details section of Crystal Reports.
    I have several fields in the details section of the report. They are all in a horizontal line. I have enabled the 'Can Grow' feature for one of the fields so that it will increase in height to accomodate large text entries. I would like the other fields to adjust so that the centres of each of the fields align vertically - in the same way as they would in excel is the text was aligned vertically.
    Any advise would be greatly appreciated.

    I do not want to horizontally align the writing.
    I have 5 fields in a row in the details section. One of the fields (call it field A) can grow to usually no more than 2 lines.
    When field A takes up 1 line then the other fields look OK becuase the centres of all of the fields line up.
    When field A grows to 2 lines, I would like writing in the other fields to move down slightly so that they align with the centre of field A.
    Is this possible?

  • Crystal reports show rows of a field in detail section in number of columns while exporting in ms excel

    Hi,
    I have a crystal report and a field called source.
    The source field can contain more than one records.
    When I export it to ms excel then source field is shown in three rows in excel.
    Name
    Source
    Batch No
    ABC
    A0001
    K1
    K2
    K3
    But now I want to export to excel in the following format
    Name
    Source
    Batch No
    ABC
    A0001
    K1
    K2
    K3
    The Name and Batch No field are in Group Header and Source in detail section.
    Also the Source field can vary in number i.e. there can be any number of Source.
    And I only want this type of output when exporting to MS Excel.
    Is there any way to do this?
    Please reply.
    Thanks.

    Try this:
    1) Create a formula with this code and place it on the Details Section:
    whileprintingrecords;
    numbervar x := x + 1;
    stringvar col1;
    stringvar col2;
    stringvar col3;
    if x = 1 then col1 = {Source}
    else if x = 2 then col2 = {Source}
    else if x = 3 then col3 = {Source};
    2) Create another formula and place this on the Group Header:
    whileprintingrecords;
    numbervar x := 0;
    stringvar col1 := "";
    stringvar col2 := "";
    stringvar col3 := "";
    3) Create three separate formulae - one each for the three Source columns and place these on the Group Footer:
    E.g. for first Source column:
    whileprintingrecords;
    stringvar col1;
    E.g. for second Source column:
    whileprintingrecords;
    stringvar col2;
    Drag and drop these formulae beside each other on the GF.
    4) Move the 'Name' and 'Batch No.' fields from the Group Header to the Group Footer
    5) Suppress Group Header and the Details Section.
    -Abhilash

  • Details section extends to a whole page when multipage field is printed

    Crystal Reports designer in VS 2005 Prof.  C#
    I have a field which sometimes is large, so it is printed on several pages.
    When a field is small, ie. starts and finishes on the same page, then all is OK. I mean, that Details vertical lines and field borders are closed as soon as the last field is fully printed. Report Footer is propely printed after the last Details row.
    But when a field occupies several pages then, on the last page, the Details section is not closed after the last row but extends to a whole page.
    So, as a result of this behavior, the Report Footer is printed over the Detail's vertical lines. This is my problem.
    I tried the following:
    1. Change setting Keep Object Together - does not help.
    2. Inserting an extra Group Section - Group Footer was printed over on Details body - overlapped.
    To show this problem here are 2 pictures. Please pay attention to the column "Odcinki".
    [The view with a small field|http://www.zgadzaj.pl/temp/KIM_Dobry.jpg]
    [The view with Details expanded to a whole page|http://www.zgadzaj.pl/temp/KIM_Usterka.jpg]
    Marek

    Hi Trevor and Ludek,
    At last success -  I found the workaround!
    Before my give up, during the downloading time of the PerpetuumSoftware report generator, I tested the last idea which comes from [Joe's help posted in this thread|http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/77b28835-12aa-4592-bcc8-c2b8dbf49317].
    I removed all vertical lines from the Detail section and the box surrounding the Detail's section row.
    I inserted a new group section which works exactly as the Detail section, so it changes along with Detail section.
    I put the vertical lines starting from the GroupHeader section and expanded it across the Detail section to the middle height somewhere inside the GroupFooter. And now I set the line's bottom = 0. It means that it ends exactly at the top of GroupFooter section.
    Next, I set the height's of GroupHeader and GroupFooter sections = 0.
    The import things are:
    - vertical lines (box'es) cannot start in the PageHeader, they must start at top of GroupHeader
    - vertical lines (box'es) cannot end in the Detail section, they must end at top of GroupFooter
    And now, it works as I expected. Here is the [PDF example|http://www.zgadzaj.pl/temp/KIM_OK.pdf].
    Thanks to your advices and support I was able to investigate this problem,
    so thank you again for the help.
    Regards,
    Marek

  • CRVS2010 beta -  date field not display in details section

    I use Visual stdio 2010 so i install crystal report 2010 for report.
    It work fine .
    but in report detail section there is date field then it will not be display.
    alos if we do group on date field it will give error when we try to open report.
    Plese geve me possible soluction for date field problem.
    Edited by: hitesh_tatva1 on Jun 22, 2010 11:35 AM
    Edited by: Don Williams on Jun 22, 2010 7:20 AM

    Solution Found
    Don't install sp2it sucksclassic case of the cure being worse than the disease.
    Downloading and installing the SP3 redisist fixed the issue.
    This link is probably appropriate:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    Software Product->select Crystal Reports
    Version->select Crystal Reports 2008
    important part
    Software Type->Utility Click Search Download the redist install.
    Not very intuitive, but you'll need to do this so you download the runtime and not the full version.
    Hope that saves you the 5 hours it took me to figure this darn thing out...I hate unintuitive products--they aren't very professional.
    +
    SAP, where do I send the bill for supporting your own product?
    I too have the same problem. Hopefully we can get a solution to this soon as the delayed release of the 2010 runtime has us in a difficult place.
    The problem: I upgraded my project to Visual Studio 2010; therefore, I upgraded to the Crystal Reports for Studio 2010 beta.
    Everything worked fine until I modified the app.config so that I could deploy the application into our test environment. We do not have Visual Studio installed in this environment, so we needed to have a Crystal Reports Runtime. According to the SAP website deployment guide, currently the only way to deploy a 2010 app is to use the 2008 runtime by modifying the app.config file to redirect the bindings.
    __Now, none of my date fields appear on the reports.__
    Just to test, in my development environment, I commented out the redirects in the app.config and the dates appeared. I uncommented the redirects so that the 2008 runtime would be used and then my dates disappeared from the report.
    Here is the entry I put into the app.config:
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Enterprise.Framework" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.1100.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="CrystalDecisions.Enterprise.InfoStore" publicKeyToken="692fbea5521e1304" />
            <bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.1100.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    Your help is much appreciated.
    Thanks,
    Michael
    Edited by: SaganDraxan on Jul 16, 2010 8:23 PM

  • Filling an array from a field in the details section

    Hi.
    I'm a Crystal newbie. I'm using Crystal 11 Dev. I have some basic understanding of programming but I am clueless as to the organization and syntax used in Crystal scripts.
    Here's what I need to do. (I don't expect anyone to solve this for me, but just a starting point would be great.) I have a field in the details section, let's call it field-A. The details section is under group field, let's call it groupedField-A. For each groupedField-A there are zero to many field-A's which get looped through and displayed in the details section. Instead of just listing the values for field-A in the details section, I would like to display them in a string seperated by commas.
    I figure I need to create an new array for each new groupedField-A, then add the values from field-A to the array as the details section loops through them. Then, I figure I concatenate the array values into a string in the details section or maybe the group header or footer.
    Will this work in Crystal? If so, I need some help with the syntax. OR, is there another way to approach it?
    Any ideas would be greatly appreciated.
    Thanks
    Chuck W.

    hey Chuck,
    instead of using an array you may wish to use a string running total. an array is limited to 1000 values whereas a string running total is 64k.
    details section formula:
    whileprintingrecords;
    stringvar srt:= srt + + ",";
    group header section formula for reset:
    whileprintingrecords;
    stringvar srt:= "";
    group foot section formula for display:
    whileprintingrecords;
    stringvar srt;
    srt[1 to length(srt) - 1]
    hope this helps,
    jw

  • Fitting alot of fields in the details section [overflow]

    Hi,
    I am trying to create a simple report. I need to place 12 database fields on the report. These are going to go in the "details" section one beside the other. Unfortunately, I have run out of space in the details section and am left with 3 database fields not on the report. Is there a way in which i can fit these fields on the report?
    thanks
    J

    Hi James,
    You may increase the page size by going to File>>Page Setup and select landscape as orientation.
    Another option is to connect to a plotter (printer) which is known to have wide page sizes
    Thanks

  • How to change the high of detail section?

    <p>I&#39;m creating a report for a invoice:</p><p>It header section is the customer information, and  detail contain all about products..</p><p>My problem is with the High of the detail section, because it is so much high, and i need to put more information in the footer section but it apear near to end of paper!</p><p> </p>

    Can you maybe give a bit more information about the problem?  It sounds like you have many detail sections that are repeating and this is pushing your group footer to the end of the page.... Is this as simple as needing a longer page size?

  • How to create a sum on change of a detailed record without using groups

    Hi,
    I'm working on an overtime/payroll report.  Overtime hours are calculated based on hours worked greater than 40 within the span of Sunday to Saturday.  Further, pay periods are every two weeks and do not align with the calendar week of sunday to saturday.
    I've managed to figure out how to do the overtime calculation from sunday to saturday and then the totals for each of these calendar weeks. However, I'd also like to calculate the totals for the pay periods.  I cannot group on both the calendar week AND the pay period id because sometimes the calendar week starts before the pay period starts and sometimes the pay period starts before the calendar week. So, one is not a sub-group of the other.  I tried setting both up as groups but it, unfortunately, resets by hour calculations at the wrong point because when one group is still going the other is ending.
    So, the report is working well with just the one group - calendar week (oh, and there is a higher level group - employee id as this calculation is done for each employee). I can include the pay period id in the detail lines and I can see when it changes. So, if I could create a formula that summed the hours by pay period id and than reset when a new pay period id begins that is what I am after. I just want the sum of hours upon each change of pay period id.  I'll attempt to show what the data looks like below:
    Group 1: Employee Name (say Fred Jones)
       Group 2: Week Beginning January 8, 2012
    Date  RegularHours   OvertimeHours  PayPeriodId
    Jan 8        12                              0                            1
    Jan 9        12                              0                            1
    Jan 10      12                              0                            1
    Jan 11       4                               8                            1
    Jan 12       0                               12                          1
    Jan 13       0                               9                            1
    Jan 14       0                               6                            1
    Total      40                          35                   
    Group 2: Week Beginning January 15, 2012
    Date  RegularHours   OvertimeHours  PayPeriodId
    Jan 15      12                              0                            1
    Jan 16      12                              0                            1
    Jan 17      12                              0                            1
    Jan 18       4                               9                            2
    Jan 19       0                               10                          2
    Jan 20       0                               8                            2
    Jan 21       0                               7                            2
    Total      40                          34                   
    So, the total hours for pay period #1 should be:
    RegularHours   OvertimeHours
    76                                35
    And, the total hours for pay period #2 should be:
    RegularHours   OvertimeHours
    4                                   34
    I tried creating a formula: Distinctcount ({@OT Hours}, {Command.pay_periods_id}) but Crystal says I cannot summarize the formula that is in it.
    I'm not a programmer but it feels like a loop of some sort (For each, unique pay period id sum the OT Hours).
    Any and all help much appreciated in advance!
    Mark
    Edited by: mahewitt on Feb 14, 2012 4:42 AM

    Hi Mark,
    Here's something I have come up with:
    1) Create this formula and place it on the details section beside the PayPeriodID field.Replace in the formula with PayPeriodId, with RegularHours and with OvertimeHours.
    WhilePrintingRecords;
    numbervar array reg_hrs;
    numbervar array ot_hrs;
    numbervar array payid;
    numbervar reg;
    numbervar ot;
    numbervar x;
    numbervar y;
    if not({PayperId} in payid) then
        y := y + 1;
        redim preserve payid[y];
        payid[y] := {PayperId};
    if onlastrecord then
        reg := reg + {Regular};
        ot := ot + {Overtime};
        x := x + 1;
        redim preserve reg_hrs[x];
        redim preserve ot_hrs[x];
        reg_hrs[x] := reg;
        ot_hrs[x] := ot;
    else if {PayperId} = next({PayperId}) then
        reg := reg + {Regular};
        ot := ot + {Overtime};
    else
        reg := reg + {Regular};
        ot := ot + {Overtime};
        x := x + 1;
        redim preserve reg_hrs[x];
        redim preserve ot_hrs[x];
        reg_hrs[x] := reg;
        ot_hrs[x] := ot;
        reg := 0;
        ot := 0;
    2) Create this formula and place it on the Group Footer 1 (Employee Name group):
    WhilePrintingRecords;
    numbervar array payid;
    numbervar array reg_hrs;
    numbervar array ot_hrs;
    numbervar i;
    stringvar final;
    for i := 1 to ubound(payid) do
        final := final + "For Pay Period # "&payid<i>&chr(13)&chr(13)&"Regular Working Hours are :"&reg_hrs<i>&chr(13)&"Overtime Hours are :"&ot_hrs<i>&chr(13)&chr(13)&chr(13)
    final;
    3) Right-click this field and select Format Field > Common tab > Check the 'can grow' option and increase the horizontal size of the formula field to around 3.5 to 4'
    4) Create this formula to reset the variables at the Group Header 1. This will make sure it prints the Regular and Overtime hours for every employee:
    whileprintingrecords;
    numbervar array reg_hrs := 0;
    numbervar array ot_hrs := 0;
    numbervar array payid := 0;
    numbervar reg := 0;
    numbervar ot := 0;
    numbervar x := 0;
    numbervar y := 0;
    numbervar i := 0;
    stringvar final := "";
    You may then hide the 1st and the last formula (Right-click > Format field > Common tab > Suppress)
    Let me know how this goes!
    -Abhilash

  • Blob dictates duplicate items in details section-based on supression

    I was orginally having issues with my supression on this.  I think I have it figured out. But..
    I have parts that I request that sometimes have drawing with them.  I created a table in Access with 3 columns - number, .bitmap., nameof drawing
    I brought this table in.  I place 1 drawing in the reports and this changes based upon the Paramter{drawing.id} that I have beeing selected.  The problem is that  I get duplicate fields produced in my details section.  Now the blob sits in my report footer C.  Can anyone suggest why or help with why my data is duplicating in my details section?
    all items in my details section are duplicating
    here is my sql if it helps:
    max40385
    SELECT "PR"."PRNUM", "COMPANIES"."NAME",
    "COMPANIES"."ADDRESS1", "COMPANIES"."ADDRESS2",
    "COMPANIES"."ADDRESS3", "COMPANIES"."ADDRESS4",
    "COMPANIES"."PHONE", "COMPANIES"."FAX", "PR"."SHIPTOATTN",
    "COMPANIES_1"."NAME", "COMPANIES_1"."ADDRESS1",
    "COMPANIES_1"."ADDRESS2", "COMPANIES_1"."ADDRESS3",
    "COMPANIES_1"."ADDRESS4", "PR"."ISSUEDATE", "PR"."CONTACT",
    "PR"."REQUIREDDATE", "PRLINE"."ITEMNUM", "PRLINE"."ORDERUNIT",
    "PRLINE"."ORDERQTY", "PRLINE"."DESCRIPTION",
    "PRLINE"."UNITCOST", "PRLINE"."LINECOST",
    "PRLINE"."PONUM", "LONGDESCRIPTION"."LDTEXT"
    FROM   "MAXIMO"."PR" "PR", "MAXIMO"."COMPANIES" "COMPANIES",
    "MAXIMO"."COMPANIES" "COMPANIES_1", "MAXIMO"."PRLINE"
    "PRLINE", "MAXIMO"."LONGDESCRIPTION" "LONGDESCRIPTION"
    WHERE  ("PR"."VENDOR"="COMPANIES"."COMPANY") AND ("PR"."SHIPTO"="COMPANIES_1"."COMPANY") AND ("PR"."PRNUM"="PRLINE"."PRNUM") AND ("PRLINE"."LDKEY"="LONGDESCRIPTION"."LDKEY" ) AND "PR"."PRNUM"='25334'
    C:\Documents and Settings\kpowell\My Documents\Drawings.mdb
    SELECT `Parts_Drawings`.`ID`
    FROM   `Parts Drawings` `Parts_Drawings`
    Edit here-
    Ok - I have 3 parameters
    1- sets pr field ={?pr.num}
    2.- mandatory answer determines a supress on fields(blob, and section blob is in) - supress statment is   - {?yes/no}=no  - for both areas
    the parameter is {?yes/no}
    3. sets up the blob to put into the document base upon a field in the table
    that I made in access (based upon column 1 in acces table) - user makese selection based upon yes or no above if no then just leave it as  ......
    The wired thing is when I have multiple line items in my Pr (purchase request)
    if I included a drawing there are no duplicate details
    If I dont include the blob (meaning I supress it based upon the answer in  my parameter - all items in the details section duplicate  ( i suppress these if duplicated but it leaves huge gaps in my report.... any help would be great!
    Ok i figured it out. In my access table i created the 1st entry and left the bitmap entry empty and put a descrition of not needed. I selected this  as my drawing in my 3rd parameter and it satifies the report as thinking it has  a drawing in it even though there is not.  So all my duplicate line item in my details section disappear.  thanks all
    Edited by: max274 on Mar 27, 2009 4:21 PM
    Edited by: max274 on Mar 27, 2009 4:29 PM
    Edited by: max274 on Mar 27, 2009 6:29 PM

    I found the answer see my previous post in this.

  • Summarization within the details section

    Post Author: Todd Bailey
    CA Forum: General
    I need my report to summarized by a certain field called "asset group".  Examples of this asset group are; Streets, Parks, etc.Other fields include: Total hours, Labor Cost and Equipment Cost Depending on the actual data, more than 1 record could be returned.  For instance I have 5 rows of "Streets" returned because there were 5 instances of "streets" getting billed.How can i display one summarized row of each "Asset Group"?   Thanks,Todd 

    Post Author: SKodidine
    CA Forum: General
    1. Create a group on 'Asset Group'.
    2. Suppress Details Section.
    3. Create Running Totals for each cost that will total for each record and then resets at the change of group.  These are options while creating a running total.
    4. Place the running totals in the group footer.

  • Detail Section:Printing subtotals of group of data by row w/ no subreports

    CR Xi
    Tables: Opportunity (fields Opportunity.OpportunityID)
                Opportunity_Job
                Selection (fields Type, Quantity, Rate and Extension)
    A) Opportunity:Opportunity_Job are 1:1; Opportunity.Job:Selection are 1:Many (Hence a change in OpportunityID changes the focus to another set of Selection table entries associated with the OpportunityID.)
    B) I have setup a Left Outer Join from the Selection table to the Opportunity table via OpportunityID for a Link Type of "=" (I eliminate the Opportunity_Job table for the purposes of the report)
    C) This is a report without any subreports
    D) Details section of CR
    I have a table (Selection) that  has several fields.  The Selection table contains all the entries for a job that deals with labor, material, equipment etc.
    I'd like to subtotal all the entries in the Selection table by Job.
    Here are the fields I have that are of interest:
    Type (Labor, Material, etc.)
    Extension
    For example, data could look like this
    Type     Extension
    Labor     100.00
    Labor     140.00
    Material    50.00
    Material      7.00
    Labor       10.00
    My RT_TotalLabor field should then provide 250.00 and the RT_Material field should provide 57.00
    If have setup a parameter field (@TotalLabor) and a RunningTotals field (RT_TotalLabor)
    The conditional logic for @TotalLabor is "IF trim({Selection.Type})="Labor" then {Selection.Extension} else 0".  I've also tried "IF trim({Selection.Type})="Labor" then SUM({Selection.Extension}) else 0".    The RT_TotalLabor is setup to summarize on @TotalLabor via SUM and to evaluate on Opportunity.OpportunityID and reset on change of field of Opportunity.OpportunityID.
    I'm not getting the proper selection of data.
    How do I select the Labor only for the TotalLabor parameter field and get the correct RT_TotalLabor?  I will also need to have a field, @TotalMaterial, with a RT_TotalMaterial to SUM the materials related to the Job.  Additoinally, these fields will be subtotalled and gross totalled but I should be able to handle that once the totals by Opportunity is done.
    TIA
    Edited by: total1 on Aug 8, 2011 9:58 PM

    Ok...I know what I want to say but I'm not sure I'm saying what I want to say! 
    My bad on using the term parameters rather than formula.  ;-(
    Making progess, thanks to you for your help!
    Subreport: (I have only one)
    Here's the @TotalLabor from the Formula Editor: if trim({Table1.TYPE})="Labor" then {Table1.EXTENSION} else 0.
    Same for @TotalMaterial from the Formula Editor: if trim({Table1.TYPE})="Material" then {Table1.EXTENSION} else 0
    Both of these are in the Footer section as I'm still attempting to solve the issue of getting a total of my SET of records for Labor and Material (as well as others once I solve the totalling issues).
    Relating to your comments on the Insert Summary dialog box, I can't figure out how to add a Formula field like @TotalLabor etc so as to make it available to the Insert Summary dialog box.  How do I?
    I have another report, which I didn't write, that utilizes the Insert Summary dialog box in its subreport footer (only one footer) with a {Sum of TotalLabor}(Text Box) and another that has {Sum of TotalMaterial}(number).  I don't understand these!  I can see the respective fields (@TotalLabor) in this subreport's Edit Summary dialog box but I can see the @TotalHours in my Insert Summary dialog box!
    These formulas for the working report are: if {Table1.TYPE} = "Labor" //and {Table1.PRINT} = "T"
    then
        {Table1.EXTENSION}
    else
        0
    and
    if {Table1.TYPE} = "Material" //and {Table1.PRINT} = "T"
    then
    {Table1.EXTENSION}
    else
    0
    So, they are the same.  I just can't get my subtotals to work on a SINGLE row..maybe because I can't see or get them into the Insert Summary dialog box like the subreport that is working on a single row also.
    Maybe another comment: My totals appear to work in a line-by-line (row-by-row) on the report printout but I don't get the subtotals on the SAME line.
    Here's what I see on an output:
    Labor    800.00
    Material 200.00
    (two lines)
    I'd like to see
                    Labor= 800.00     Material= 200.00
    (single line and I've added the text also)  When I try the running totals on the same field (Table1.Extension) I get the SAME value for all my entries even though I've setup a separate running total field and use a conditional check for "Labor", "Material" etc.
    HTH

  • Repeated Header Row within a Details Section Only of a Group Ignores Tablix Member Properties

    Ok.  I have a situation where I have a details section of a group, and I am trying to get it to repeat the row headers on each page.  It's not working.  I've gone into Advanced Mode, and addressed the static Tablix Member for the left-most
    field of the header row in question, set the properties for the Tablix Member to "RepeatOnNewPage:  True" and "KeepWithGroup: After", and still, it refuses to repeat the row header for these details.  I've tried rebuilding and
    not deleting the column where the grouping was originally assigned (without deleting the grouping, of course), and assigned the properties for "RepeatOnNewPage" to that left-most, grouping field, yet I get the exact same results.  I've looked
    up solutions, and even spoken to the expert of experts, but no joy here.  I'm using VS'10.

    OK.  So it is fixed... sort of...
    Apparently, you must select to add group headers repeated as you create the group (inc. child group), BESIDES changing in Advanced Mode, Tablix Member /Properties / etc.   Then you have to format that extra column within your Tablix to
    make it appear to 'disappear'.  BUT EVEN THEN, there is a new problem:
    The headers will repeat on the additional pages, but only to a point.  For some odd reason, SSRS doesn't consistently render the repeated headers of the group details for
    every page, just where it is a hard (page) break, as opposed to a soft (page) break.  My gut tells me that this has nothing to do with the .xml code, but is an SSRS idiosyncrasy. 

  • Fill the blank detail section with dates

    Hello,
    I'm using Crystal reports X1. I have group by "Ticket Number". In the detail section of the ticket number I have a field that stores a date called "SevDate"
    This is how it looks like
    Ticket Number    SevDate
    IM44-0023546
    IM44-0023546   03/20/2010
    IM44-0023546
    IM44-0023546
    IM44-0023546  
    What I'm trying to do is get this date repeated or filled in the next detail section of the Ticket Number.
    so, basically I'm trying to see the report like this and this should be in a date format so I can do some other calculation.
    Ticket Number    SevDate
    IM44-0023546
    IM44-0023546   03/20/2010
    IM44-0023546   03/20/2010
    IM44-0023546   03/20/2010
    IM44-0023546   03/20/2010
    How can I achieve this task? Please assist...
    Thank you
    Angel

    Let me count the ways...
    1)  If you want the same date for all records for a given ticket number (which actually is not what's shown), then you could group on ticket number and use Maximum(, ) as the field displayed.
    2)  If you want the last non-null SevDate (apparently), you could use a formula like (basic syntax):
    global sevDate as date
    if Not isNull({SevDate}) then
      sevDate = {SevDate}
    end if
    formula = sevDate
    3)  You could change the generation of the data set (use an SQL Command) to return the date you want in each record.
    Which one to use will depend on your requirements...
    HTH,
    Carl

  • Displaying Array values in Details section

    Hi All,
    I am having trouble with Arrays in Crystal Reports.
    I have made a Shared string array in my main report and am using the same in a sub report. In the sub report I need to print the values in the array one below another like a table.
    Say the array MyArray has values (INDIA, USA, CHINA, JAPAN, UK)
    Right now I have made a formula in which I iterate through each of them and use Join(MyArray[i], ChrW(10))
    ChrW(10) as you might know is used to make a new line. So the formula output essentially looks like the way I want it, that is
    INDIA
    USA
    CHINA
    JAPAN
    UK
    But its still a formula and acts like a single cell. If I export it into Excel, all the values will come in single cell. Moreover, When I use it like this, I cannot do proper formatting on it either.
    Is there any way to make Array behave like a table and use the same in Detail section. I do not want to hit the DB again for this purpose.
    Thanks

    Hi Antony,
    The only way to display the values on the Detail section is to 'get those values from the database'.
    Instead of using a shared array variable, use a comma separated string. Here's what you need to do:
    1) In the Main Report, open your existing shared variable formula and add a new variable:
    shared stringvar array <exisiting variable name>;
    stringvar new_variable;
    existing code line 1
    existing code line 2
    existing code line 3
    new_variable = Join(array_variable_name, ",");
    2) Right-click the Subreport > Select change Subreport Links > Move the above formula to the pane on the right > Uncheck the option at the bottom right that says 'Select data in Subreport based on field'.
    3) Get into the Subreport and use this as the Record Selection Formula:
    {database_field} IN Split({@Pm-formula_name}, ",") //Replace {@Pm-formula_name} with the parameter name that is automatically created in the Subreport.
    -Abhilash

Maybe you are looking for