Nested Sub Reports - is it possible?

Hi, Please could someone tell me if it is possible to have a sub report within a sub report. I have tried without success. If not what is the alternative? Thanks in advance
Amir

Before you go and submit to Idea Place think about this...
Report Design Example:
Main report returns 100 values which are linked to the first subreport. Query sent to the DB for the first 100 values and passed to the subreport, for each value returned a new query is sent to the DB for each value returned by the main report.
101 queries processed by the DB server.
Now say you pass that value into another subreport within the subreport....
Original query sent from the main report, the first value is then sent to the first subreport and then that value is sent to the third subreport.
1 -> 1 - > 1, in total you have:
1 -> 100 -> 100 or 1 * ( 100 * 100 )  = 10001 queries being processed by the DB Server.... And this is simplied, image it your main report returned 100,000 values....
So no, the whole point of using subreports is to use them for different data sources. You can filter your data and use Groups in the place of subreports, then you are unlimited ( sort of ) as to how many drill downs ( subreports ) you can go....
Thanks
Don

Similar Messages

  • Nested Sub reports

    Hi All,
    Please suggest how can I achieve this requirement.
    As we know cr does't supports nested sub reports, but my requirement is similar to this.
    I have a main report which displays country wise data.
    If I click a particular country It should show respected location names which contains some data in details(coming from sub report 1).
    If I click particular location it should show respected locations data(coming from sub report 2)..
    For country to location I did using on demand sub report.
    Please suggest is there any work around to achieve this.

    Hi Kalyan,
    Nested Subreport is Not supported in CR however if you have CR Server or BO Enterprise Server you can do something like this:
    1) First create a report that shows details for the 'Location' report. The report should have a prompt called 'Location' and should return data for the selected location. Saved this report to the Enterprise repository in a folder.
    2) Create a report that returns data for the Countries. Then, create a group on the Country field and add the Subreport that returns data Location Names in each Country and place it on the Group Header/Group Footer
    3) Link the Main Report Country field with the Subreport's Country Field and make this an on-demand Subreport. I guess you've already completed this.
    4) Inside this Subreport, right-click the Location field > Format Field > Hyperlink tab > Select 'A website on the Internet' > Click 'Create Enterprise hyperlink' > Log-in to the repository > Browse to the folder where you saved the report created in Step 1.
    An openDoc URL pointing to the Location Details report is automatically created. Make sure the
    openDoc URL contains the lsS attribute.
    Search google to know more about openDoc.
    -Abhilash

  • Is it possible to programmatically replace a Sub Report in a crystal report

    We create crystal reports via the crystal report designer (not in any IDE) , and attach the reports directly to the database via stored procedures. Each report contains a page header and a page footer with patient demographic data. We distribute these reports to our customers and they may edit the templates and alter the page header and page footers specific to their needs.
    We are looking at using sub reports to build a "model" page header and page footer that would be inserted into each template at design time. What we would like to do is allow the customers to create their own sup reports to contain their custom page header / page footer and then programmatically replace the " model" sub reports with the custom sub reports. Please note that these sub reports would not contain any data access and would not be linked to the main report, rather the main report would assign the data that is displayed in the page header/page footer data to shared variables,  and the sub reports would use the shared variables as their data source to display the data.
    Is it possible to programmatically replace 1 sub report with another ? If so are there any code snippets to review -

    Yes it is. Submit your post to which ever SDK you are using into the Developer forums. But search the posts first and look in our samples. This is relatively easy to do.
    Thank you
    Don

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

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

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

  • Sub Report Performance problem

    Our current software configuration is Microsoft SQL Server 2008 R2 (10.0.2531.0) where our data is housed. Our User Interface is Microsoft Visual Studio 2008 (Visual Basic) and Microsoft .NET 3.5 SP1 platform.  We use Crystal Reports 2008 (12.0.0.683) to do our reporting.
    We upgraded from Crystal Reports XI and our reports are taking a long time to render?... Is there any evidence of other companies experiencing this trouble? Are there any degraded performance issues when moving from XI to 2008?
    In some cases we utilizing a small simple sub report.
    Any help appreciated. Thanks.

    Hi Billy,
    Subreports in detail sections are never a good idea. Example, you have 100 records returned int he main report and if that field is your subreport link it causes the subreport to run 100 times. Your database is being queried 101 times.
    Also, the default time out for database is typically 1 minute, could be you need to verify your report and database so CR can "clean up" any wrong pointers.
    It's always better to do the data collection server side if and when possible, after all that's what they do best.
    Not much detail to go on so I can't say if it's a report design problem other than the above or not. It could be also that .NET takes time to load all of the CR assemblies so depending on how you have your app configured depends on the delay. If you load a dummy report when your starts up to pre-load CR runtime then subsequent reports will be much faster.
    Also check off all of the Verify Database options, you may be telling CR to verify each time which on big databases can cause a delay also.
    Thank you
    Don

  • Open an on demand sub report in a new window

    Hi There!
    While reading the forum threads, there is an thread that have the same issue that i want to find out, but the thread is not yet answered. Could you guys help me. Thanks!
    Thread by: Kylie Edwards  
    Hi I am wondering if it is possible to open an on demand sub report in a new window.
    I have a report that has 6 level drill and I want to be able to close the information in the sub report to give the end user the ability to keep drilling.
    I have tried inserting a text box with a hyper link back to the main report but hyper links do not seem to work the subreport. "
    Thanks and Regards,
    Joni

    Hi all,
    Sorry for the late reply, and thank you guys for the helped. I manage to solve the problem myself
    To Falk:
    Ya you are right, for what i know,  Inforview is not possible to open a subreport from a RPT file in a new windows as well.
    To Wallie Cheng :
    When i posted the question for help, i just want to know if i could display a crystal report on a new window.
    My situation is that i have a page that is size 3in x 3in ( Just a small static graph ) and i wanna attached a A4 report. In order to have a nicer view at inforview ( 3in x 3in border box ), i will need to reduced the size of the crystal report. The size of the main report is now properly change, but it affects the view for the sub report ( As subreport is A4 size, the system display the A4 size document in a serveral 3in x 3in page. -_-"' ).
    To Abhishek:
    I wanna try out your solution, but i can't find the hyperlink tab in perference option ( in inforview ).
    I manage to solved my problem (suitation that i have explain to Wallie Cheng ). That is to created a hyperlink to the report. Rather than a subreport link.
    Thanks and Regards,
    Joni

  • Can i inactivate a sub report?

    Hi,
    I'm using sub reports in a principal report.
    When the final user see's the report, he can clic on the sub report witch will show in a second page.
    I would like to disalbe this action, is it possible?
    If not do you know a trick to prevent it?
    For know, i place a label on top of the sub report. like that, if the user click on the sub report, the clic will fall on the label and not on the sub report. the limit of this issue is that many of my sub report grow depending on it's containt. In this case, the label doesn't protect any more the sub report.
    I'm using Crystal Report (Basic, version 10) that works with Microsoft Visual Studio.

    Hello, Helen;
    The method to stop drilldown has a wide scope. It will stop the drilldown on the subreport but it will also stop any other drilldown you may have designed. Groups for example.
    In code, use the Crystal Reports Viewer object:
    CrystalReportViewer1.EnableDrilldown = False
    'Set the viewer to the report to be previewed
    CrystalReportViewer1.ReportSource = crReportDocument
    Elaine

  • Crystal report input prompt..for sub report

    Hi All,
    I developed crystal report and retreived the fields from the exsiting Query.Now for  enhancing the report i must creat a sub report for th eexisting one.In this case iam getting 2 input prompts one for the old report and the other one is for the enhanced sub report .But the requirement is tha t, the report must get only one input prompt for both the reports. Is this can be possible from the Query end or the crystal report end?
    YVL

    Hi Vijayalakshmi
    You can apply just one input parameter for the main report and then link your subreport with this parameter.
    Once you link the subreport, you would get only one prompt for inputting parameter values.
    This way you can optimize the performance of the report as well.
    For more information about linking subreports you can refer to the user guide for the respective crystal reports version you are using.
    Hope this helps!!!
    Regards
    Sourashree

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

  • Struggling with a one to many relationship in a sub-report

    Post Author: Scott_tansley
    CA Forum: General
    I have a database schema as per below: tblENQUIRY                 tblDatasheets                  tblReportParasIRSID (PK)       1 --> &  IRSID (FK)                       UID (PK)Attribute1                     SHEETID (PK)     1 > &  SHEETID (FK)Attribute2                     Attribute1                         LIST_ORDER                         tblStandardParasAttribute3                     Attribute2                         PARA_CODE (FK)    & < 1   CODE     (PK)etc...                            Attribute3                                                                     TEXT                                   etc...
    The PROBLEM I am a Crystal Reports Newbie, and having to work through things bit by bitu2026  I've managed to achieve quite a lot, but I'm totally stuck with this and would appreciate some help. I need to create a report (essentially a letter and some datasheets) around a one-to-many relationship, which I have managed to compile using a main report (for the one &#91;tblENQUIRY&#93;) and sub report (for the many &#91;tblDatasheets&#93;).  Essentially I need a covering letter, then the u2018manyu2019 datasheets, and then a number of other pages (which are largely static text). I have created a main report which includes the covering letter, holds a subreport for the datasheets, and then contains the text for the additional pages.  This all works fine, and I get the correct number of datasheets for each main report. My problem stems from the use of this sub report.  This sub-report needs to hold some attribute values for each datasheet, which is fine.  However, on each datasheet page I need to have some paragraphs, which are held in another one to many relationship.  Each datasheet may have up to six paragraphs held as a code in tblReportParas, with a relationship to the text as held in tblStandardParas. My original thought would have been to embed another sub report, containing the values from tblStandardParas!TEXT, into the first sub report.  However, I have found that it is not possible to have a sub-report inside another sub-report.  I had seperated the first sub-report out from the main report, and then embedded another sub-report into it.  This worked fine until I tried to stitch the sub-report back into the main report (at which point the sub-sub-report dissapeared from view). I have therefore reworked my sub-report a little, and the attribution is now stored in a pageheader, with the tblStandardParas!TEXT in a detail section below it.  This almost works! The only problem is that there is no relationship between the pageheader and detail sections.  To clarify, I would expect to have one datasheet, with the attribution at the top, and then the six paras below.  Then, the same on the next page (assuming there is a second datasheet) for that report.  Instead, I get the correct attribution, but the detail section actually gives every paragraph in the database, no matter which datasheet/or report it related to!  I therefore need to limit the detail section to only show those paragraphs where the SHEETID in tblReportParas is the same as the tblDatasheets SHEETID. Any offers of advice would be appreciated.

    Post Author: Scott_tansley
    CA Forum: General
    I managed to resolve this myself in the end.  I moves the tblEnquiry data into report header/footer sections, this allowed me to add the tblDatasheets information into the details section, which gave me multiple pages - and then finally, the Paragraphs were added through the use of a sub report. 
    There's probably an even better way, but for now it works, it's quick - and so I'm going to go with it!
    Thanks for your interest.

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • Sub report linking definition based on result, not on parameter value

    Dear all,
    I have created a report with CR 2008 SP6. The parameters from the referring BI query are period and customer. After the user enter parameter values, the report provides then Customer and product information.
    I have add a sub report with additional information for product. I can transfer the parameter value (user input) for Customer to the sub report, but not for product, due to the fact that in the main report Product is not selected as parameter, but is a result set after the report is executed.
    Is there a way to define in the Sub report linking exactly these result values of Product as new parameter for the sub report.
    In the sub report linking definition I only see the possibility of defining the parameter as linking object, but not the report result set. See also the screenshot.
    Any idea would be great. Best regards,
    Stefanos from Munich/Germany

    Hi Stefanos,
    Where is the Subreport placed on the report?
    Do you have a prompt in the Subreport for 'product'?
    If yes, then here's open the 'Change Subreport Links' window > Move the Product field to the Pane on the right > From the drop down at the bottom left that says 'Subreport parameter field to use', choose the Product prompt.
    If you don't have a prompt for product in the Subreport, then just move the Product field to the Pane on the right > From the drop down at the bottom right that says 'Select data in Subreport based on field', choose the Product field from the drop-down.
    -Abhilash

  • Extract Data in sub report to main report

    Post Author: Karl1975
    CA Forum: Formula
    Hi I have written both a main and sub report in V10 that shows grouped data by Name with a total count on each Name:-
    EG:-
    Name                               Numbers
    Tim Smith                         10
    John Smith                        15
    I need to extract the data from the sub report that matches each of the Name into the Main report.  So I can calculate a ratio.
    EG
    Name                               Numbers              (Numbers from Sub Report)
    Tim Smith                         10                       10
    John Smith                        15                       12
    Is this possible?
    Many thanks.

    Post Author: sharonmtowler
    CA Forum: Formula
    you can use shared variables to pass the data from the sub to the main. in the knowledge base you can find instructions on creating these.
    make sure you do not surpress the value in the sub or it wont pass through. place the variable in the main below the sub report.

  • Exporting to Excel data only using sub reports in Crytal 9

    Post Author: pmstar
    CA Forum: Exporting
    I am using Crystal 9 verision.
    I have .rpt file that used 4 sub reports .In the main report I placed all the sub reports in the(detail section) row  and using the data for some caluculation in the main report to generate report fields.I placed the main report fields in next row( in detail section).However when i export the report .Its generating 5 empty rows  and 3 rows with 0. I have pretty much followed the solution from the article "c2017620" published in BO.
    Since i used the sub reports only to get some value for main report calculations .Is there any workaround for the following issue
    1.I do not want to print the subreport data when exported to excel data only.
    2.how can i get rid of the blank rows
    We have a lot of reports which has the same issue and we need to get the reports to work in Excel Data only .The reports works perfect when used in PDF format but its mandatory that we need to give the reports to the client using Data only.
    If possible, when responding with your recommendations, please include detailed steps.  It would be very helpful.Thanks in advance,
    PM

    Post Author: swat
    CA Forum: Exporting
    Hi,
    Of what i gather from ur scenario...this is what i did in one of my reports.
    I had to use two subreports and they had to occupy one cell each, in line with other fields.
    To obtain that,all the fields required in the subreport i put them into a text box.Therein restricting the fields to the txt box only...
    Then import that sub-report as it is.
    It worked for me....
    try out...
    All this only if've understood u right...

  • Hyperlink (Drill-Down) in a Sub-Report

    Hi,
    I have a report in which I am using on-demand sub-report.
    In the Sub-report I added a working Hyperlink to one of the columns to drill-down to transaction details.
    However when I run the report I can't drill from the Sub-report. The hyperlink inside of the Sub-report is not working.
    Is there any work around to make this to work?
    Thank you,
    Tanya.

    Hi Tanya, 
    Let's try breaking this down a little bit more granularly.  I'd like to know what the formulas in the subreport shows and what the main report shows.  It's always a possibility the subreport's formula is returning 0 and passing it properly to the main.  So this will show that. 
    1)  The formula in your subreport, just have it do: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Nar_Count:=Count ({Command.YTD_NARRATIVE});
    Show/Unsuppress the subreport's Report Footer so we can see the formula. 
    2)  Leave the formula in the main reports GF1 as: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Do you see a number in both formulas or do you see the number in the subreport but not the main report? 
    I want to see if the formula in the subreport is working and not just returning 0. 
    If the formula in the subreport works then I want to know what the formula in the main report is showing. 
    If this does work:
    1)  Change the formula in the subreport back to: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Nar_Count:=Count ({Command.YTD_NARRATIVE})+Count ({Command.PTD_NARRATIVE})
    2)  Leave the formula in the main report's GF1 as: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Again, what do you see in the subreport and the main report? 
    Good luck,
    Brian

Maybe you are looking for

  • I have a Windows 7 Desktop and home sharing won't work to my Windows 8 laptop?

    My Windows 7 computer is recongnizing my laptop for home sharing, but my Windows 8 laptop won't recognize the home sharing with the desktop. Both computers are authorized and home sharing is on. HELP! I followed the process on the "How to move your m

  • Power on laptop connected to Thunderbolt display without opening laptop lid?

    I have a Macbook Pro (2.7 GHz Intel Core i7) running Lion connected to a 27" Thunderbolt display. Is there any way to power on my computer without having to open the laptop lid? Thanks for your time. Best regards, Erin

  • Inbound Processing : BOM-Position deleted

    Hi Experts, I'm using a self-made program to distribute Material-BOMs and Changes. To explain the problem, here is an example: I have the following BOM in the Source system: BOM 1234.567.890 ( at Day 0 ) -- Pos. 0100 - TEXT - Text-ID -- Pos. 0110 - S

  • Enable ESS over the internet but not the MSS

    Hello gurus!!!      I have a few questions that I need to get clarified. We have a Portal server and we installed ESS and MSS business packages on it. Now, our requirement is that we just need to expose ESS applications over the internet and not the

  • Batch file renaming

    How can I rename a group of files with heterogeneous names? I have a series of several hundred images, nealy all of which have unique, unrelated names.  I want to be able to rename them as a batch so they can be imported into quicktime pro to make a