Data Passing from a Subreport to the Main Report

<p>Hello,</p><p>I have been able to pass data from a subreport to a main report using shared variables. The Complete Reference: CR XI (p. 313) states that you should be able to now suppress the subreport to prevent it from showing on the main report, however this is not working. I want to get the data from the subreport and then further manipulate it in the main report, and I do not want the subreport shown on the main report. I tried suppressing/hiding the section where the subreport is placed as well as suppressing the subreport itself. The formula values on the main report become null when I do this though. Is it possible to keep the subreport off the main report?</p><p>Thanks.</p>

Search forums, this has been answered multiple times.

Similar Messages

  • Passing a variable from subreport to the main report

    Hi guys, was unable to google this, so Im urning to you guys:
    I was wondering whether it was possible to do this:
    I have a subreport taking data from a table. In the main report, in the suppres condition of details section containing this subreport, I need to have a variable containing the total count of rows in that table. I know there are shared variables for that, but the problem is, that the variable in the condition is processed sooner than the one in the subreport.
    Any ideas on this?
    Thanks a lot

    To Sharma:
    Hi, unfortunately I can't. The subreport has its specific position in constallation with previous and following sections and must be right there.
    To Raghavendra:
    Hi, that was my first idea, but the problem is as I explained in my first message.
    To both:
    I have a table in subreport. This subreport is in main report positioned in details section "x". and I want to use that shared variable in the suppress condition of section "x". The problem is that the formula in suppress condition is processed sooner than the formula assigning a value to the shared numbervar inside the subreport.
    and thats what im looking for - a workaround for that. btw im using CR 8.5
    thanks again guys

  • Refreshing subreport data on change of group in the main report

    I have created three comma delimited strings in a subreports and then introduced them to the main report. The subreports are simple with no groups. I have one subreport for Authors, one for Departments and one for Schools. This is ok if I filter the data down to one publication. If I remove the filter then I get every instance of each of the subreports. ie all authors in a comma delimited string, all departments and all schools.
    I have two groups in the main report, Publication Year (Group #1) and Publication Title (Group #2). This is where I have the problem. The data coming from the subreports show all instances as mentioned above. I want the subreports data to refresh each time the group changes. I need it to only show the necessary comma delimited string for each publication, not every instance.

    Hi Abhilash,
    The logic has worked correctly but the performance is really poor. Is this because I have there subreports doing similar funcitons? Is this a topic for another discussion?
    Also, when I try to export the report to xls data only it starts the export but then a msg comes up on the screen relating to the second formula you gave me for comma delimited strings for schools:
    SAP Crystal Reports
    String length is less than 0 or not an integer.
    This relates to the third line in the code:
    Left(schools, len(schools)-2);
    It then aborts the export. Is this a topic for another discussion also?
    Thanks

  • Summarize data from a subreport in a main report

    Good afternoon,
    I'm trying to summarize data from a subreport with data in a main report and I can't get it to summarize all the data correctly. The reports are linked on order number.
    The main report has 3 groups - customer id, batch, order number (in that order). In the detail section I have product and amount. I have the group footer for group order numbers split into two. Footer A has the subreport.
    The subreport has tax code and amount in the detail and I've created a shared variable:
    WhilePrintingRecords;
    Shared CurrencyVar taxtotal := Sum ({@total tax})
    In my main report I created a formula for the shared variable:
    WhilePrintingRecords;
    Shared CurrencyVar taxtotal; taxtotal
    In Footer B of the order number group I have a summary field that is taking the shared variable and adding it to the product amount and creating a total.
    {@taxtotal1} +Sum ({@ext price}, )
    That is all working fine. Where my problem comes in is on the footer for the Batch group. There are 3 order numbers for 1 batch. I have this summary field in the Batch group footer
    ({@taxtotal1} +Sum ({@ext price}, ))
    But it's not calculating correctly. I need it to take all the product amounts and all the tax amounts and add them together, what it is doing is only adding one of the tax amounts along w/ all the product amounts.
    What am I doing wrong? Any help would be greatly appreciated.
    Jeannette

    Hi Jeanette,
    You need to have the running total accumulate into the Batch group as well.  Right now it's just getting the the Tax Total from the last Order Number. 
    In the formula in Footer B of the Order Number, change your formula to: 
    WhilePrintingRecords;
    Shared CurrencyVar taxtotal;
    CurrencyVar batchTaxTotal;
    batchTaxTotal := batchTaxTotal + taxtotal;
    taxtotal;
    Now in your formula in the Batch footer change it to: 
    WhilePrintingRecords;
    CurrencyVar batchTaxTotal;
    (batchTaxTotal +Sum ({@ext price}, {batch}))
    In the Batch Group Header, you will need to reinitialize the total to 0 for the next batch: 
    WhilePrintingRecords;
    CurrencyVar batchTaxTotal := 0;
    Good luck,
    Brian

  • How to make a common parameter for two subreports in the main report.

    Hi,
    I have a crystal report which has 2 subreports in it. Both the subreports have the same code and I need to create a parameter for Project Cost in both the subreports for filtering the data.
    When i create the same parameter in both the subreports, i see two parameters with same name on my prompt page while refreshing the report. however I just want 1 parameter on my prompt page and data should get filtered in both the reports.
    Can anyone please suggest something, How can I do that? is there a way for sharing same parameter between two subreports?
    Thanks!
    Neha.

    hi Neha,
    here's how to do this:
    1) create a new parameter with the same name on the main report
    2) right click on your first subreport and choose Change Subreport Links
    3) in the Field to Link To list drag over your new main report parameter
    4) open the Subreport Parameter Field to Use select menu and choose your subreport parameter
    5) repeat steps for the 2nd subreport
    now you'll only get prompted once.
    cheers,
    jamie

  • List down all subreports in the main report

    Hi All,
    I am developing reports in Crystal XI R2. I am working on the listing all the subreport names in the main report. I tried to use Filename function but it is not showing any report name even in the subreport itself.
    Is it possible with any work around? Please help.
    Regard,
    Ashish

    Hi ashish
    Do you mean you want to have a hyper link of all the subreports from the main report.
    main report
    subreports
    link1
    link2
    link3
    You can just do like this insert->subreport->select the report name and place it whereever you want. You can select many reports like this.
    Is this answers your question?
    Regards
    usama

  • Link subreport to the main report in Crystal

    Hi expert,
    I have a Crystal Report with a row that cointais a Total Field.
    Is possible to add a hypertext link, that open a subreport with all the details?
    Exaple: CardCode: C00001 Account Balance: 14120,50. If i click on the Total of account balance, i open a subreport (linked with the key). Is the same of drill down (perhaps), but I can't use drill down.
    Anybody can help me??
    Regards
    Marco

    Marco,
    try the following:
    make the report into the structure of:
    Group: CardCode
    In the group header delete your group name field, and add your subreport.
    Right click on the subreport, and on format subreport.
    On the subreport tab, there is an option: on demand subreport. Check that in.
    After that you can define a formula ( for example your cardcode ) at On-demand Supreport Caption.
    Hope this helps.
    Regards,
    D

  • After changing a subreport I loose data in the main report.

    Hi All,
    I have a main report that has two parameter fields and two subreports linked to the parameter fields.  The two subreports access the database and work fine separately.  When I add the two subreports to the main report it works fine.  As soon as I make a change to a subreport it works fine standalone.  But as soon as I update the main report (reimport subreport) the subreport no longer returns data to the main report.  To get the report to work after a change to a subreport I have to delete the subreport from main and then add it back in again.
    Does anyone have any suggestions?
    I am using Crystal Reports 10 and I'm totally at my wits end.  I've been working with Crystal for about 5 years and this is the first time I've seen this.  Maybe I'm missing something small but I just can't seem to find the answer.
    Thanks for any help,
    Jim

    Jim:
    I usually edit my subreports from within the main report.  I right click the subreport and then click edit subreport.  This eliminates the need to reimport the subreport.  I've done a lot of work with subreports and this always works for me.
    I hope this is not too late and helps you out.
    Ralph

  • Concatenate data in a Sub-report then copy in the Main report

    Hello,
    I'm using Crystal Report XI R2, I succeed to retrieve data as decribe in SAP Note 1212454 - How to Share Subreport Data with the Main Report
    But when I hide section A, my values in section B are empty
    So my answer is, how to retrieve dataset from the subreport group Footer Group concatenated and show it as a Header group data in the Main Report

    I'm currently trying was is explained in:
    1218324 - How to suppress a subreport but still evaluate and pass a shared variable
    Symptom
    In Crystal Reports (CR), subreports are frequently used to calculate and pass data to the main report. In many instances the business requirement is that the subreports not be visible to the end users. However, suppressing the subreport object or suppressing the section of the main report in which the subreport is located causes the shared variables to display incorrect data when passed to the main report.
    How can you suppress a subreport but still pass a shared variable with the correct data?
    Resolution
    In Crystal Reports 9 and later, you can suppress a subreport but still pass a shared variable with the correct data to the main report by following the steps below:
    In the Subreport
    1. Remove all conditional suppression formatting formulas.
    2. Delete all drawing objects such as boxes, lines, etc.
    3. Suppress all remaining subreport objects such as database fields, formulas, etc.
    4. For all sections that contain no objects, select the 'Suppress' option in the Section Expert.
    5. For all sections that contain suppressed objects, select the 'Suppress Blank Section' option in the Section Expert.
    In the Main Report
    1. Select the 'Suppress Blank Subreport' option in the subreport Format Editor.
    2. Remove all borders from the subreport object in the subreport 'Format Editor'.
    3. Select the 'Suppress Blank Section' option in the 'Section Expert' for the section containing the subreport.
    Background Information
    When working with subreports, the 'Suppress Blank Section' option forces CR to evaluate the subreport contained within the section to determine if the final subreport output is blank. The 'Suppress' option allows CR to bypass the subreport completely, because the section is suppressed. By forcing Crystal Reports to evaluate the suppressed shared variable formulas in the subreport, the data can be correctly passed from the subreport to the main report even though the subreport is not visible to the end user.

  • Subreports won't show when put inside a tablix in the main report

    I have a main report containing 5 subreports. My ultimate goal is to have a header with an image in it to only show within 2 of the subreports. I'm trying to achieve this by using a tablix and putting all of my subreports into the tablix on the main report,
    and putting the image into the header of the tablix and using a hide/show query based on subreport name.
    The problem is that when I put the subreports into the tablix and upload it to CRM it won't display at all. If I remove the tablix the subreports will run and display perfectly. Can anyone tell me what I'm missing here or an alternative if there is an easier
    way to achieve what I want? 
    Thanks.

    Hi Ssizz,
    Per my understanding your are experiencing the issue with the subreport which added to the tablix not displayed after upload to the CRM, right?
    I have tested on my local environment and try to reproduce your issue but failed.
    The issue can be caused by many factors, could you please try to provided us more details information according to questions below, and we will be more effective to give an solution:
    Did the issue occurred only when your upload the main report to CRM, and Is there any error message,such as "Subreport Could Not Be shown"?
    Did you run to check all the subreports and the main report which include the tablix with the 5 subreports in both the designer and the CRM one by one? Did they all running with no error?
    Did you have add any parameters in the subreport and the main report, if did, please check if all the parameters work fine in the designer.
    You have mentioned that when you remove the tablix, the subreports will run perfectly, Is that mean you put the subreport outside the tablix and have a test then all works fine? in the designer or in the CRM? 
    Please also take reference to the solution of some possible factors:
    1. If you got the error "Subreport Could Not Be shown" only in the CRM and all works fine in the designer, the issue can be caused by the relationship between parent report and sub report got disturbed and CRM doesn't able to link these sub reports.
    From Reports section select the sub report and click on edit
    Remove the value in Parent Report look up field
    Map Parent Report again
    Re-publish the reports. Below steps will help us in publishing the reports again
    Open command prompt on CRM application server
    Go to Microsoft Dynamics CRM\Tools folder
    PublishReports.exe NameOfYourOrg
    Ex: C:\Program Files\Microsoft Dynamics CRM\Tools\PublishReports.exe mytestcrm
    If the above setting still doesn't work, please try to delete both the subreport and main report in CRM and try to upload once again, If it possible, please first redesign the main report in designer.
    Similar thread for your reference:
    http://blog.customereffective.com/blog/2008/07/resolving-error.html
    https://social.msdn.microsoft.com/Forums/en-US/60542d2e-c888-442f-9b8a-5ed779f7e3d9/crm-reports- error-subreport-could-not-be-shown?forum=crm
    Article about details setting with main report and subreport in CRM:
    http://dynamicscrmgirl.wordpress.com/2014/06/29/crm-2013-ssrs-report-and-sub-reports/
    2.  Another alternative method is using an rectangle instead of the tablix to put the subreports, you can use  this to see if the problem still exists.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Not having to refresh the data in the main report but only in the subreport

    Hi SAP,
    I have a report that uses a stored procedure in the main report and uses regular database tables in the subreport.  The data returned from the stored procedure reports information from the month-end database (a cutoff point from the previous month's numbers) while the subreport reports information from the live database.  This report gets run everyday to show the changes in numbers from the live database.  Obviously the numbers from the month-end database remainds static until the next month's cutoff database is created. 
    My problem is that everyday when I run the report, the data needs to refresh from both the stored procedure in the main report and the live database tables in the subreport.  How can I leave the data returned from the stored procedure static or as is without refreshing the stored procedure returned data and just have the subreport data refresh itself?  The stored procedure really puts a strain on the database and I would like to cut-out the time to process the report as well.  Does anyone have any ideas?
    Zack

    Hi Zack,
    Try the following under Report options.
    1. Clear the check box of "Verify Stored Procedures on First Refresh" in the Main report.
    2. Select the check box of "Verify on First Refresh" in  the sub report.
    Hope this helps.

  • Stream data from a subvi to the main vi - path refnum

    hello everyone
    sorry my english
    http://forums.ni.com/t5/LabVIEW/stream-data-from-a-subvi-to-the-main-vi/m-p/2205150/highlight/true#M...
    - refnum boolean worked
    - refnum graph worked
    - refnum numeric worked
    how to create a  path refnum? stream data from a subvi to the main vi
    where do I start?
    thank
    Solved!
    Go to Solution.

    Bom Dia Saille,
    Eu acredito que o que você tenha hoje seja isso aqui (Desenho bem simplificado):
    Hoje o que você tem é o Aplicativo do Medidor + USB Driver controlando o seu medidor. Basicamente, sua aplciação está dividida em três camadas:
    Aplicação - Onde estão as funcionalidades principais do programa (interface com o usuário, apresentação de dados, geração de arquivos, etc.)
    VISA - Uma arquitetura de Software para controle de instrumentos. Basicamente, ele se comunica com o Driver USB para poder enviar e receber pacotes de dados através do barramento USB.
    Device Driver - Intruções de SW de baixo nível para controlar um periférico através de um barramento.
    No desenho, eu aponto duas camadas onde você pode tentar atuar para automatizar suas medições:
    Aplicação - Você pode usar o VI Server para controlar o Aplicativo do Medidor (Se este aplicativo tiver sido desenvolvido em LabVIEW, o que eu suponho ser verdade). No entanto é necessário saber se o desenvolvedor do produto permitiu isso (Veja Using VI Server to Pass Data Between a VI and a LabVIEW Executable). Outra alternativa é conversar com o fabricante para ver se ele desenvolveu alguma API (Application Programming Interface) para que você consiga controlar o instrumento diretamente.
    VISA - O LabVIEW Fornece uma API chamada NI-VISA para poder enviar e receber informações através de diversos barramentos (Veja Serial Instrument Control Tutorial)
    É possível acessar o Driver diretamente também, mas eu não recomendo. O resultado não compensa o esfroço!
    Espero ter esclarecido suas dúvidas e espero que você tenha sucesso na sua aplicação!!
    Atenciosamente.
    Felipe Flores
    Engenharia de Aplicações
    National Instruments Brasil

  • How to pass events from subpanel(s) to the main VI ?

    hi all,
    I found a lot of solutions to pass the events from the main VI to the subpanel(s) but none about passing the events from subpanel(s) to the main VI. In the attached VIs, I just want to generate an event in the main_VI.vi when I click on the button positionned in the subPanel1.vi. How can I do that ?
    thanks.
    Cedric
    Attachments:
    main_VI.vi ‏13 KB
    subPanel1.vi ‏6 KB

    Cedric,
    You could use a queue to transfer the button data to your main vi.
    See the attached files:
    subPanel1mod - Detects a button change and Enqueues the state.
    main_VI mod - uses the Timeout event to poll for data in the queue.
    main_VI mod1 - gets the queue data without having to poll.
    Like your orginals, these files are in LV2010.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    subPanel1mod.vi ‏10 KB
    main_VI mod.vi ‏16 KB
    main_VI mod1.vi ‏15 KB

  • If no data in subreport the main report fails

    Morning,
    I have a main report and a subreport. When I try to run it the main report fails with the error, "a subscript must be between 1 and the size of the array" I believe this is  because there is no data in the subreport. In the section expert I checked supress blank section.
    Is there something else I should be doing?
    Thanks
    Laura

    Hello Laura,
    I am researching a similar problem.  The message is being returned because you are trying to use/address and array element that does not exist and/or is outside the upper bound of the array (like a dynamic parameter which when it has multiple values is an array).
    Hope this helps.
    Don

Maybe you are looking for

  • PROBLEM WITH XML PUBLISHER AND GRAPH NOT DISPLAYING IN ORACLE APPS

    Hi All you XML Gurus here. I have a problem, When i create a report in XML Publisher desktop i can see a graph im putting into the report on preview and works fine. But when i upload the report as a rtf file into Oracle applications i can see everyth

  • Can I use Flash classes in Flex?

    Hello, I need to know if all the flash classes can work in Flex, since some Actionscript which use flash classes works as expected in flash but NOT in Flex, so I need to understand or know which do works and which does not? ..and thanks for any respo

  • Sort issue with an Internal table

    Hi All, I have an internal table with following format. Invoice      Item       Amount 951          <Blank>   450.00 951           0010      1200.00 951           0020       1300.00 Now i need to display this internal table in such a way that, Invoic

  • [XQuery] How to transform from JSON Message to XML Message with XQuery

    Hi guys, I'm in a job of converting a restful webservice to soap. Tool for convertation uses XQuery. Now i need to convert a message like thi link http://jsontoxml.utilities-online.info JSON "anagrafica": { "testata": { "nomemercato": { "-id": "007",

  • Design thoughts: Replacing a L2 aggregation switch

    Hi, I have purchased a 4507R switch to replace a 2924M-XL switch that acts as an aggregation switch in our network. Let me explain further what I plan to do. I have 20 remote sites connected point to point via 100 Mbps dark fibre to the 2924M-XL. Mos