Multiple Details section in BO

Post Author: fenn
CA Forum: Desktop Intelligence Reporting
Hi,
    I have to create a report from  one master table and two details tables. (ie), the data from the master table should be displayed first line followed by the records from 1st detail table and then records from the 2nd details table. I am using business objects 6.5. Can you explain how to do this.

Hi,
Inorder to create new  Group Header sections like Group Header a and Group Header b.There are two options
->In the design mode of the crystal reports,Rt.click on the Group Header section-Choose insert section below
OR
->From the Expert tool bar->select the Selection Expert,choose the Group Header->click insert button

Similar Messages

  • Multiple Details Sections in the same report

    I'm trying to take two different columns from a fact table, and display them in one column on the report. So I'll then have the charge quantities (grouped and summarized) listed above the charge amounts (grouped and summarized) across months (columns).
    Is there any way to have multiple detail sections in the same report, something like below? I tried sub reporting, but you can't subreport a subreport. I also tried cross tabs, but they're not flexible enough in the groupings I'm looking for.
    Report Header
    Group Heading 1
    Details
    Group Footing 1
    Group Heading 1
    Details
    Group Footing 1
    Report Footer
    Thanks!!

    Hi,
    Inorder to create new  Group Header sections like Group Header a and Group Header b.There are two options
    ->In the design mode of the crystal reports,Rt.click on the Group Header section-Choose insert section below
    OR
    ->From the Expert tool bar->select the Selection Expert,choose the Group Header->click insert button

  • Problems underlaying multiple detail sections

    I'm having difficulty with Crystal XI - report has multiple detail sections, I would like to underlay them so they appear on top of each other, but I just can't get it to work.

    Your explanation isn't detailed enough to allow someone to help. I'd suggest two courses of action:
    1) Run the data and form through Central with tracing turned on. This will provide you with detailed information on what is happening when and why. You should be able to see what's triggering the subforms.
    2) Post another note, this time with an example of your data and a more detailed explanation of your result (e.g. I have 3 details and 3 totals and they're coming out in the following order D1,D2,D3,T1,T2,T3 instead of D1, T1, D2, T2, D3, T3) and I'll try to help.
    Rob McDougall
    Indigo Pacific Ltd.

  • 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

  • Export to Excel - Multiple Tables in a single details section

    Hi All,
    I have a set of reports where I am using a single details section to show multiple tables stacked over one another. That is, i have a table with three columns and two rows, followed by some white space and then another table with 4 columns and 1 row, followed by white space and then other tables.
    When I export it to excel, I am getting the data but the ordering is in a reverse pivoted fashion:
    Excel output:
    CR_column1_Heading    CR_Column2_Heading    CR_Column1_Data CR_Column2_Data
    Is there a way to control the sequence of fields displayed in excel while exporting?
    Thanks.
    - Atif.

    @Carl,
    It is printing like this.
    HEADER1   HEADER2    HEADER3     DATA 1     DATA 2     DATA 3
    I am getting all the columns and fields in excel, that is not a problem. However, the problem is whether i can control the order the fields are printed onto Excel.
    Like what Ben is commenting:
    HEADER1   DATA 1     HEADER2    DATA 2     HEADER3     DATA 3
    However, I dont want to reorder the fields on the canvas as the format layout is predefined.
    I tried searching through the Cystal SDK if there is a finer level of control but to no avail.
    A work around under the above constraints would be simply amazing!
    Thanks again and appreciate your response.
    Regards,
    Atif.

  • How to force multiple columns in the Details section

    Hello,
    My report has a lot of data in the Details section, but it could fit on one page if I could put it in three columns. Is there a way to do this?
    The Details section has setting: Force the new page after certain number of visible records. This would be perfect for me if instead of multiple pages I could use multiple columns.
    Thank you,
    Peter

    Thank you.
    I think I see now how to format the columns.
    Peter
    Edited by: Peter Afonin on Sep 10, 2010 2:34 PM

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

  • Report with multiple Detail Area

    Hi All,
    Please see the Report pointed to the link below:
    [Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
    Some Explanations:
    ========================
    (1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
    (2) The lines with "WBLNX'" "123, 123.12", 
                             "WBLNX'"
       are variable data associated with the same Heading: "ABCDEFGH..."
    (2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
    (3) Item Code Descriptions ==> is a Header Info
    (4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
    (5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
    QUESTION:
    ===================
    How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
    Thanks and Best regards,
    Felix

    Hi Felix
    You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
    Hope this helps.
    Regards
    Nikhil

  • Add Multiple Detail Items Using the Same Query String Parameter

    I am using InfoPath 2010 and SharePoint 2010. 
    I have 2 forms libraries - Expense and Expense Details. 
    The 2 libraries are linked via a custom site column Expense ID. 
    The Expense form contains the main header type info you would typically find on an expense report; e.g., name, purpose, department, etc. 
    The Expense Details form contains multiple detail expenses related to the main expense report such as airfare, rental car, etc. 
    I have created a page that displays an expense report with all of the related expense detail items. 
    The page contains a link to add a new expense detail and passes the Expense ID of the Expense form to the Expense Detail form. 
    This all works fine.  The problem comes in after the first expense detail form is submitted. 
    I can successfully submit the first detail item.  However, the expense detail form loses the Expense ID that was passed to it after the first expense detail form has been submitted. 
    The parameter still shows in the URL but the detail form no longer shows the value of the parameter. 
    What do I need to do in order to be able to add multiple expense detail items using the same Expense ID that was passed to the form? 
    I have tried using a Submit Behavior of Open a new form, Close the form, and Leave the form open. 
    None of these options give me what I need.  Thanks for your help.
    pam

    Laura Rogers Blog
    In case anyone stumbles upon this looking for an answer. Laura Rogers has the answer found in the comments section of her blog above.  It’s not the best but it
    does work. You have to add an extra Info Path Web Form for it to work. I know, you can roll your eyes.<o:p></o:p>
    Steps.<o:p></o:p>
    1. Add Query String<o:p></o:p>
    2. Add the extra Info Path form to the page. This form will be a hidden on the page and will receive the value from the query string.<o:p></o:p>
    3. Add your original Info Path form and have it receive a parameter from the hidden Info Path form.<o:p></o:p>
    Now, when you hit save and it opens a new form the 3 Info Path form will function properly. <o:p></o:p>

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

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

  • Examples of Master with multiple details

    Hi Leo,
    I want to create Master with multiple details
    I have been trying for the similar example (Master with multiple details) for long time.
    It seems in the following link, you have mentioned that you have done such examples.
    Examples/Demos of APEX applications with Master with Multiple Details.
    Can you please share the solution to my emaid address [email protected]
    Or can anybody help me to get such solution with examples step by step.
    I would highly appreciate for any help.
    Thanks.

    Ok, so here's the rundown.
    Create a page with one "master" html region. In that region create your standard text/date/etc. items. Make sure that one of these is a hidden key field that is the key linking the master and details portions. Use a calculation to pre-populate the field from a sequence (or whatever uniqueness generator you choose). It is important to generate this key up front for the processing.
    Next I created one report region for each detail table I wanted to link in. Make sure to count the total number of fields you want to work with and that the total is LESS than 50. This is critical. The report should be selecting the columns from APEX_COLLECTIONS for display and manipulation on the screen. It is best to explicitly associate these to the Javascript column numbers now. I used a process to pre-populate my detail entry areas with default values for ease. I also included a button to add a row to each area, but you have to be careful here to use a good combination of form attributes so that the page refreshes don't SUBMIT yet.
    Once you have a report region generated from APEX_COLLECTIONS, you have to create the update processes that pull the information from the user modifications into the collection. This is the trickiest part of the whole thing. You have to use the APEX_COLLECTION.UPDATE_ITEM method, and you have to refer to the JavaScript column numbers for the source value and the collection column number for the destination. It is really easy to get these confused - I advise putting this all into a document or on a whiteboard for reference.
    Once you have the update processes written (I prefer writing one update process per detail section), write your processes to write the data to the database. Again, I suggest one process for each detail table. Trigger them to fire on submit.
    I also suggest creating a debug page to display all of the various collections and to help keep things straight. Once you have one detail area working, it is easier to get the others working.
    If you need actual code snippets, let me know and I'll see what I can do.

  • 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

  • Remove Multi columns in Detail Section

    I'm converting reports from Crystal 8.5 to Crystal 2008.  My old report has a detail section with multiple columns, and I want to remove this formatting.  The check box in the section format window is grey and can't be changed.  What is the magic combination to get the detail section back to no columns?

    I'm struggling with the same problem, only I'm currently working with a report in version 8.5.  The report was originally designed years ago using the Label wizard, but now the client wants to change it to a regular report. 
    I decided to "peek under the hood" and this is what I found:
    The Crystal Report Object has a property "Kind" which will have a value corresponding to the application constant CRReportKind.  The possible values are these: 1 (crColumnarReport), 2 (crLabelReport), or 3 (crMulColumnReport).  Versions 8.5 and 10 are the same.  I'm thinking that this property is what's preventing us from getting to that grayed-out checkbox.  However, it is a read-only property, meaning, obviously, that you can't change it. 
    The report I'm working with is a 2 (crLabelReport).  This is the VB6 code I used to find that:
    Dim reportname As String
    Dim oApp As CRAXDRT.Application
    Dim oKind As CRAXDRT.CRReportKind
    Dim oRpt As CRAXDRT.Report
    Dim oSection As CRAXDRT.Section
    Set oApp = CreateObject("CrystalRuntime.Application")
    reportname = "(put the complete path and filename of the report here)"
    Set oRpt = oApp.OpenReport(reportname, 1)
    Debug.Print oRpt.Kind
    Set oRpt = Nothing
    Set oApp = Nothing
    It doesn't look promising.  You will probably have to redo the report, or, it may be possible to recreate the report in VB only setting the Kind property to 1.  If someone else can verify that this is doable, it may be the best solution.
    Edited by: marykDBA on Jun 4, 2010 10:59 PM
    Edited by: marykDBA on Jun 4, 2010 11:01 PM

  • Showing headers based on multi column details section

    Hi,
    I have a report which has a subreport listing a simple list of records from a table.
    The list of records is displayed using the "Format with Multiple Columns" option in Section Expert (2 columns). The printing direction is set to "Down then Across".
    How can I set up the report so that it suppresses the header for the 2nd column is there if no data there?
    Thanks

    Hi Santhosh,
    I used formulas in a similar concept to what Abhilash mentioned above (*you will need to know how many rows fit on one page).
    Create a formula to put in the details section (where your headers are) that keeps a track of the page, column and row number (which resets the variables accordingly)..
    shared numbervar rowCount;
    shared numbervar pageNum;
    shared numbervar columnNum;
    if pageNum <> pagenumber then (
    // now a new page so reset everything..
        rowCount := 0;
        columnNum := 1;
        pageNum := pagenumber;
    if rowCount = 30 then (
    // new column so reset the row counter
        rowCount := 0;
        columnNum := columnNum + 1;
    rowcount := rowcount + 1;
    ..now use the rowCount variable to suppress the details header if its > 1.

Maybe you are looking for