Details Section Name consistency

Hi All,
I'm interested in getting access to the specific Details section in .Net code.  I am using Crystal Reports 10 and have 26 detail sections in the designed report.  As I am in .Net code iterating over the details sections they aren't named like they are through the designer.  The designer uses Da, Db, Dc, etc. and the .Net object has the name as DetailSection1, DetailSection2, etc.
Is there a way to know which detail section I am in like the designer uses.
As a quick hack I have given the CssClassName a string that I can reference in the code but I'd love not to use the hack.
Any suggestions?
Thanks,
Jim

Not really. I never noticed this inconsistency...
I think you're best to stay with your work-around. Another work-around that was suggested here; place a text field into each section with the name of the section as it is in the designer. Hide the field, then iterate through he sections looking for the text field and checking it's contents. Yuck...
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup

Similar Messages

  • Unrelated data in master detail sections of a custom BIP  report deployed in R12 EBS

    We have a custom Master Detail BIP report generated by calling XDO APIs from a custom Java concurrent program (common_report_attachment) . This Java concurrent program is called from another custom concurrent program (po_validation) that processes a batch of POs in a single concurrent request.
    PO_Validation Program (processes a batch of POs per request) -> Java Concurrent Program -> BI Publisher Report APIs
    BIP report generates data for master detail sections based on two sql queries (given below) that have 'where' clause based on a common external parameter "P_TRX_HDR_ID".
    NOTE: No explicit data link is used NOR an output column of parent query is used in the where clause of detail query as bind parameter.
    - <dataTemplate name="NAPPB2BPORPT" description="Data Template for B2B PO Report" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="db_fetch_size" value="200" />
      <property name="scalable_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="P_TRX_HDR_ID" dataType="number" />
      </parameters>
    - <dataQuery>
    - <sqlStatement name="Q_PO_HDR">
    - <![CDATA[
    SELECT poh.po_number                                     PO_NUMBER
              , poh.quote_number                             QUOTE_NUMBER
              ---- other columns -----
             FROM nappcust.napp_o2i_po_headers poh
                ,napp_aso_quote_headers_v naqv
               WHERE 1=1
               AND naqv.quote_number=poh.quote_number
               AND poh.header_id = :P_TRX_HDR_ID
      ]]>
      </sqlStatement>
    - <sqlStatement name="Q_LINES">
    - <![CDATA[
    SELECT  pol.item                                            ITEM
          , pol.partner_part_number                             PARTNER_PART_NUMBER
          -- other columns --
       FROM napp_o2i_po_lines pol
       , napp_o2i_po_headers poh
       , aso_quote_lines_all aqla
       , mtl_system_items_b msib
    WHERE 1=1
      AND poh.header_id               = pol.header_id
      AND pol.header_id               = :P_TRX_HDR_ID
      AND aqla.quote_header_id        = poh.QUOTE_HEADER_ID
      AND msib.inventory_item_id      = aqla.inventory_item_id
      AND msib.organization_id        = aqla.organization_id
      AND (pol.quote_line_number       = aqla.quote_line_id
           OR pol.quote_line_number    = aqla.quote_line_id||1)
      ]]>
      -- Added for the defect 13954
      </sqlStatement>
      </dataQuery>
    - <dataStructure>
    - <group name="G_PO_HDR" source="Q_PO_HDR">
      <element name="PO_NUMBER" value="PO_NUMBER" />
      <element name="QUOTE_NUMBER" value="QUOTE_NUMBER" />
      --- mappings for other columns of "Q_PO_HDR"
      - <group name="G_LINES" source="Q_LINES">
      <element name="ITEM" value="ITEM" />
      <element name="PARTNER_PART_NUMBER" value="PARTNER_PART_NUMBER" />
        --- mappings for other columns of "Q_LINES"
      </group>
      </group>
      </dataStructure>
      </dataTemplate>
    Issue: Sometimes when the parent concurrent request runs for a batch with multiple POs the report generated for the last PO has inconsistent data in the master and detail sections. To elaborate, the detail section is having correct data pertaining to the PO identified by the parameter "P_TRX_HDR_ID". However, the master section is having data pertaining to the previous PO processed from the same batch.
    This issue is not occurring consistently and is not reproducible at will. I
    'm suspecting this could be because of not having data link between the queries but confirm from someone who has experienced this issue.
    Regards,
    Srinath

    is there any way from the page, can we pass the some values, which can identify the page level data?
    if so pass the parameter to BIP report query.

  • How to combine multiple Details section rows in my report

    Hello,
    I am currently creating a report which will display employee details, which includes first name, last name, home phone, cell phone and Email.
    I get my First Name and Last name from the "Employees" table but all other info is situated in the "CommunicationLinks" table.
    The tricky part which I am having issues with is the Home Phone, Cell Phone and Email are all under the same field in this table, the field is called "DisplayAs".
    These 2 tables are linked together by taking Employees.LinkID and linking it to CommunicationLinks.LinkIDParent, which are matching linkids.
    The only issue that I have, is for example, if you look at the screenshot provided, I have 5 details section that gets populated for the same employee.
    How can I combine all these 5 records to only one?
    The homephone, cellphone and email field have formulas created for them, the formula is as follow.
    This example below is for the HomePhone field, the others have different type assigned to them
    If {CommunicationLinks.Type} =1 then
    {CommunicationLinks.DisplayAs}
    else ""
    Homephone, Cellphone and Email are all different types but uses the same field "DisplayAs".
    I also tried creating a subreport for each of these fields but seems to give me the same results.
    Any help would be really appreciated.
    If you have any other questions please let me know. See attached screenshots for reference.
    Thank you in advanced.
    Jocelyn

    Easier way without working in SQL:
    1.  Group by a field that is unique to the employee.
    2.  Suppress the employee group header and the details sections.
    3.  Create a couple of formulas:
    {@ClearVariables}
    WhilePrintingRecords;
    StringVar HomePhone := "";
    StringVar CellPhone :="";
    StringVar Email := "";
    Put this formula in the employee group header - even though the section is suppressed, it will evaluate.
    {@SetVariables}
    WhilePrintingRecords;
    StringVar HomePhone;
    StringVar CellPhone;
    StringVar Email;
    if {CommunicationLinks.Type} =1 then
      HomePhone := {CommunicationLinks.DisplayAs};
    else if {CommunicationLinks.Type} = <type for cell> then
      CellPhone := {CommunicationLinks.DisplayAs};
    else if {CommunicationLinks.Type} = <type for email> then
      Email := "";
    Put this formula in the details section - it will evaluate even though the section is suppressed.
    {@HomePhone}
    WhilePrintingRecords;
    StringVar HomePhone
    (Do the same for Cell Phone and Email.  Note that there is no semi-colon at the end of this one!)
    Put these formulas and all of the rest of the employee data in one or more Employee group footer sections.
    -Dell

  • 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.

  • Group By and Detail section should be at same page

    Hi
    I am developing a Crystal Report in Visual Studio 2005. My report have one Group Section and two detail  ( detail a, detail b) sections. In group section I am displaying Test Categories and in Detail Section (detail a) I am displaying Test Result for particular Test Categories, in detail (detail b) section I am conditionally displaying a sub report against a particular testid from detail (a) section.
    I want to display all test results against a test category on the same page. If this fit on the page it should display otherwise category name and all its test should be display on next page.
    Thanks in advance

    Qasim not sure if you have tried this already,
    right click on the group (that blue bar) and click Change Group-->Options->Keep Group together.
    This will keep them together and if it exceeds one page it will start from the new one.
    Hope this helps
    Regards
    Jehanzeb

  • Master Detail Form - Update Statement for Column in the Detail Section

    Hello,
    I've posted a demo application to apex.oracle.com
    Application# 49298
    Application Name: Street_Inventory
    Basically, on page 3 I have a Master Detail Form. In the Detail section, I want the value of On_hand to save to table ITEMS. Here's my code below.
    SOURCE
    select
    "CONSUME_DETAIL"."CONSUME_DETAIL_ID",
    "CONSUME_DETAIL"."CONSUME_HEADER_ID",
    "CONSUME_DETAIL"."ITEM_ID",
    "CONSUME_DETAIL"."CONSUMED_QUANTITY",
    ("ITEMS"."ON_HAND" - "CONSUME_DETAIL"."CONSUMED_QUANTITY") as "ON_HAND"
    from "CONSUME_DETAIL",
    "ITEMS"
    where "CONSUME_HEADER_ID" = :P3_CONSUME_HEADER_ID
    and "CONSUME_DETAIL"."ITEM_ID"="ITEMS"."ITEM_ID"
    UPDATE INVENTORY PROCESS
    UPDATE ITEMS
    SET ON_HAND = :P3_ON_HAND - :P3_CONSUMED_QUANTITY
    WHERE ITEM_ID = (select     ITEM_ID
    from     CONSUME_DETAIL
    where CONSUME_DETAIL_ID = :P3_CONSUME_DETAIL_ID);
    My code isn't working. What am I doing wrong?

    WReed,
    The first thing I see "off the bat" is that you don't have items named P3_ON_HAND and P3_CONSUMED_QUANTITY which are referenced in your code. Although it's possible to do what you want with just SQL, I updated your code with a little PL/SQL to make it easier to understand...
    As you'll see the problem now is that the design/db model is not quite right as your getting a too many rows error.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Alternating background color in details section

    I am attempting to use the alternating color feature in the details section for a listing of data, where you can alternate the color based on a condition.  What my client wants is to have the color change based on the first letter of the names, which are in alphabetical order.  At first I thought this was simple: I just put an if statement cycling through, using every other letter of the alphabet.  This worked fabulously until I realized that if there were no names for a particular letter (such as Q), that it would not alternate in that instance - the "P" and the "R" would both be white.  Does anyone have a solution to this? Is there a way I can change it based on everytime the first letter changes? Thanks in advance!

    This should do the trick for you...
    Global NumberVar x := IF RecordNumber = 1 THEN 1 ELSE x;
    Global StringVar l := IF RecordNumber = 1 THEN LEFT({TableName.LastName}, 1) ELSE l;
    x := IF l = LEFT({TableName.LastName}, 1) THEN x ELSE x + 1;
    l := LEFT({TableName.LastName}, 1);
    IF x MOD 2 = 1 THEN crSilver ELSE crNoColor;
    HTH,
    Jason

  • 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

  • Crystal report for vs 2012 formatting details section

    Hi All,
    I am taking value from a formula-
    if( {Table.Role} like "*ceomd*" )
    then
    {Table.FullName}
    else
    I have put these formulas in the details section ;  I want to show this report like as below
    view 1
    ceo - Name of the person
    technical contact - name of the person
    supply chain -  name of the person
    but unfortunately its not working; it is coming on multiple pages
    then I tried to put in to table structure
    view 2
    ceo                         |  technical contact           |supply chain
    Name of the person |   name of the person       |   name of the person
    then is coming with blank rows
    either of above view is fine with me.
    can you please help me?
    many thanks

    Duplicate of: Crystal report for vs 2012
    Please do not cross post. See the SCN Rules of Engagement
    - Ludek
    SCN Moderator.

  • Detail section in Report Viewer Control rendered bad in IE 6/7 ???

    Hi,
    independent of checking the "no printer" option or select the same printer in Visual Studio Report Designer as on the deployment server the details section of Crystal Report Viewer Control is not rendered correctly in IE 6/7!!!
    But looks fine in Firefox ?!?
    Any ideas?
    Thanks, M.
    Edited by: Markus Schfer on Aug 19, 2008 9:24 AM

    First: i have to excuse me, `cause all sections (header,detail and pagefoot) are rendered strange. It seems that all data is crimped into one column on the left side?!?
    I expected something like this:
    Name     LastName     Birthday       City
    Value Value Value Value
    etc.
    But I get from IE 6/7:
    Name    
    LastName    
    Birthday      
    City
    Value    
    Value           
    Value          
    Value
    Do you better understand my problem now ????
    I hope so
    Thanks a lot!
    M.

  • Crystal report with Details section

    Dear All,
    I design one Crystal report. In that can we add Details section below the Report footer.
    When i add Details section it is adding below Details section like Details a and below Details b.
    I want this Details b section adds below Report Footer. Can anybody suggest me how to add that is ?
    Thanks and Regards

    Dear Friend,
    Thnks for reply. In my Crystal report i added two page header like Page header a and Page header b.
    In Page header a i shows the heading of columns and in Page header b also i am showing the headin column. Coz my all columns name not fited in one Page header. Tha's y i taken two Page header.
    Now i also added two Details section for takeing multiple value from database. Like Details a and Details b. But it is showing one by one.
    I want to show record in details section of specific column. Like following design. Can u plz tell me how to design ?
    Page header a    GCN/Invoice      GCN ...................
                                Date                 No.
    Details a             11/12/2008      1
                                13/12/2008       2
    .........Page header b       Destination        Tanker
                                                                      No.
             Details b                  Pune              125469
                                              Mumbai          566862
    Thanks and Regards

  • In detail section Static Text should not be repeat.

    hi.
    i need a small Requirement.
    in detail section i put one field this is coming from data base.
    beside i put one static text like something.
    but something static text is repeating based on record set in detail section like
    something    value1
    something    value2
    something     value3
    but i dont want to repeat something, only first line i need to put
    like
    something valu1
                    value2
                    value3
    i dont want to put report section.
    i need to put same line at detail section....

    there's a couple of ways to do this:
    a) right click on the something field and choose Format Field > go to the Common tab and then select Suppress if duplicated
    b) or you may wish to go to the Insert menu, choose Group, and then choose your field that contains the something. then you can right click on the Group Header name at the left of the report designer, choose Section Expert, and then choose Underlay Sections.

  • Creating separation lines in the detail Section

    Hi All,
    I've got a database of 500 clients, and after listing out all the clients, i noticed it was difficult to follow the name across all the columns of information. 
    Is it possible to insert lines that span across the page after every entry?
    Thank You,
    Frank

    Your best bet is to use alternating highlights to separate data.
    Try this:
    1. SECTION EXPERT for your details section
    2. COLOR tab
    3. Custom Formula (x-2) for background color.
    4. enter formula without quotes "if recordnumber mod 2=0 then color (230,230,230) else nocolor"
    Colors can be replaced with whatever colors you want (replace "color (230,230,230)" with color name (crYellow) or with another RGB color combination.
    If you still prefer lines, you can try this:
    1. Insert section below on your details section.
    2. Add a line that spans the report.
    3. Resize your new section accordingly to fit the line.

  • 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. 

  • Setting the height of detail section with RAS SDK

    Hi, all,
    is it possible to locate a section (CrystalDecisions.ReportAppServer.ReportDefModel.Section) in a reportk you and set its maximum height?
    When I find a detail section in question like so section = reportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[counter];
    it just gives me the height of one row.
    Is there a way to set a maximum size of it?
    Thank you!

    Hi Jelena,
    see the below sample to add a new section to the report.
    http://scn.sap.com/docs/DOC-6025
    in the sample, see below code how the section properties are set.
    //Set the properties for the section
        boSection.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;
        boSection.Name = "Detail2";
        boSection.Height = 1000;
        boSection.Width = 11520;
    Refer to above sample and write your own code to identify the section and then set the properties.
    Othe RAS SDk samples are here.
    http://scn.sap.com/docs/DOC-28646
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

Maybe you are looking for