V6 and CR XI R2 Subreports

Good morning everyone.
Sorry for my English is not very good.
I have a poroblem with Subreports me explain.
Work with vb6 and crystal reports XI R2, I create a report with Subreports which are linked, when the bonds I create a parameter like this Pm-Comando.AboCodi. When I run the crystal reports works well and I do not give me problems but when I run and passed the data when you open asks me to enter the value of the command.
Not to do so they do not ask me and I go all right.
The code I use in vb6 is this.
    Sql = "SELECT abogados.* from abogados"
    Set rsComm = New Recordset
    rsComm.CursorLocation = adUseClient
    rsComm.Open Sql, Conexion, adOpenStatic, adLockOptimistic, adCmdText
    'Sql1 = "SELECT aboct.* from aboct"
    Sql1 = "select abogados., aboct. from abogados inner join aboct on abogados.abocodi = aboct.ctcodi"
    Set rsComm1 = New Recordset
    rsComm1.CursorLocation = adUseClient
    rsComm1.Open Sql1, Conexion, adOpenStatic, adLockOptimistic, adCmdText
    Dim crApp As New CRAXDDRT.Application
    Dim crRep As New CRAXDDRT.Report
    Set crRep = crApp.OpenReport("C:\InformeSub2.rpt", 1)
    crRep.FieldMappingType = crAutoFieldMapping
    crRep.OpenSubreport("InformeSub3").FieldMappingType = crAutoFieldMapping
    crRep.Database.Tables(1).SetDataSource rsComm, 3
    crRep.OpenSubreport("InformeSub3").Database.Tables(1).SetDataSource rsComm1, 3
    OfrmRep.Caption = "titulo"
    OfrmRep.CRViewer1.ReportSource = crRep
    OfrmRep.CRViewer1.DisplayGroupTree = False
    OfrmRep.CRViewer1.ViewReport
Took 2 weeks behind this problem and can not find the solution.
Please can someone help me.
Thank you very much to all.

1) Don't use craxDDrt.dll - you are not licensed to use it, use craxDrt.dll
2) Make sure you are on he latest SP. For CR XI R2 (11.5) this would be SP 6:
https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
3) Not sure why you are using FieldMapping?
4) I see you setting the datasource to the subreport, what about the main report?
5) See some samples:
https://wiki.sdn.sap.com/wiki/display/BOBJ/ReportDesignerComponentSDKCOM+Samples
6) See the RDC Developer Help file:
C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
dcsdk_com_dg_docdoc
dcsdk_com_dg.chm
7) More help:
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/105181db-cb1d-2b10-38a4-b0a30e268e40&overridelayout=true
8) Use the search box in the top right corner of this page. It will give you results for Kbases, blogs, wikis, articles and ore.
- Ludek

Similar Messages

  • Sorting and then navigating to subreport

    Hi, I have a standard table with sort enable in all columns. One of the columns navigates to a subreport when you click on any value. If I click on it without sorting first by that column I navigate to the subreport which returns the correct number of records.
    However, if I sort the column in question first and then click to navigate to the subreport this one returns ALL records.
    Any ideas on how to circumvent this bug would be greatly appreciated.
    Edited by: user643815 on May 25, 2010 8:31 AM
    Edited by: joselito500 on May 26, 2010 11:57 AM

    Hi,
    The filters in the subreport are pretty simple.
    Student ID is prompted
    AND Class Of is not equal to / is not in UNKNOWN
    AND CAST ( CAST (Class Of.Class Of ... is between School End Year-1 and School End Year+2
    AND AG Course Flag is not equal to / is not in U
    This is an education center, so we pass student ID and the class of his/her graduation.
    It works well until you sort, in the calling report, the values in the column (which are usually Y or N)
    Thanks

  • Using unlinked sql command and table in a subreport

    All,
    Does CR allow using an unlinked sql command and a table in the same subreport?  I am passing the CurrentCEUserName from the main report to the sql command in the subreport (via linked parameter).  The sql command then executes a query to pass the parameter to the database (example: select myfunction('{?myparam}' from dual).  I need this to run before subreport's table query is executed. 
    This all appears to work except that the parameter passed to the sql command isn't set when the command executes.  The value is always null when the sql command is executed.  If I add the parameter to the report output it shows the expected value. 
    Also, if I have a subreport that just has a single sql command the parameter is set correctly prior to executing the command.
    any help would be appreciated.
    thanks!

    If you are looking for Crystal to run the SQL Command, then the SQL it generates itself, I think the answer is no, it won't do that.  Crystal expects all of the data sources to be linked, I believe.  I'm not sure what you would expect to happen if they are not...  However, you can make your SQL Command something like (MS SQL; sorry, it's been too long since I've used Oracle...):
    declare @result varchar(100);
    set @result = ( select myfunction('{?myparam}') );
    select * from table;
    which would run the first select calling your function, basically throw away the result (or you can do with it as needed), then return the fields from your table.
    HTH,
    Carl

  • Exporting detail and subreports to different file for each

    I have a details section, and 5 subreports.
    Is there a way to define a param ? so that each report lands on it's own file ?
    Currently if i export the report, all details/subreports go to the same file.
    thanks in advance for any solution/suggestions

    Hi John,
    A report with saved data can be altered using an updated record selection formula prompt without hitting the DB again.
    For example your report returns each Country sales records, You export that to RPT format or save data with report from the designer. Now you can hit the refresh button and if you have a Country Parameter it will prompt and you to use the saved data, do this for each.
    Bottom line is CR Designer does not have the ability to export subreports to a unique file in one refresh. You can using the above, export 5 times, one for each subreport. You have to set up the report do filter for each of course.
    CR Server and BOE has a feature like this. As well as being able to schedule for each user. In that case though you can simply create a report for each and not bother with subreports.
    Thank you
    Don

  • Script to hide subreport and move 2nd subreport

    Post Author: haggisns
    CA Forum: General
    Hi,
    Crystal Reports 9.
    I have a  main report with 2 sub reports.The 2 subreports are side by side horizontally.Depending on the data, the first subreport may be empty of records.
    In this CASE: I would like to hide the entire first subreport and thenmove the 2nd subreport the required number of pixels left to take the place of the hidden subreport1.
    I don't know how to do either of both requests and not even sure its possible.
    Could somone please advise.
    Thank You
    Chris

    Post Author: yangster
    CA Forum: General
    This is possible but requires you to be quite the keener on position :-)And running the first subreport twice :-(The first thing you will want to do is move both subreports to be on top of one another so you can see what is really going on.On the first subreport go to format subreport go to the subreport tab and check off suppress blank subreports.Use the save as for the subreport as a distinct report as you will need to reimport it again.Run the report for a case you know will produce a blank reportYou should now see your main report with one subreport by itself.What you need to do is setup a shared variable in the subreport that produces blank results so it can talk to the other subreport to let it know its blank.  Create a formula in the report@shared_nullshared numbervar blank_val := if isnull(something) then 0 else count(something);blank_val;this should return a result of 0 whenever the report is blank and non zero when it isn't blankmove this subreport you have just modified to the report headernow back in the main report right click on the second subreport, go to size and positionclick on the x2 next to the x: boxand put in the following informationshared numbervar blank_val;if blank_val = 0 then 0 else 5000the 5000 is an arbitrary number, you will have to play around with to find exactly where you want the second subreport placed on the pagehit okay and see what you've producedwhat you should see is that the second subreport has done nothing, since the the first subreport is already blankrun the report again where you know the first subreport will not be blank, you should now see that the second subreport has shifted over to the right about the middle of the pagewhat you will want to do now is reimport the original subreport i had mentioned for you to save above to be on top of the second subreportmake sure you have the suppress blank subreports checked offfor the subreport you have put in the report header shrink it down to the next to nothing in sizeyou can't suppress because if you do it won't pass back any shared valuehope this make senseyou essentially need to have the first subreport pass back a value of 0 or non zeroif its 0 then the second subreport will remain where it is placedif its non zero then the first subreport will be where it is placed, the second subreport will be shifted over to the right like you have setup right nowit is kind of stupid that you need evaluate the result of the first subreport first thus requiring it to be in the report twiceYang

  • How to pass series of dates (between startdate and enddate) to subreport, which takes only one date as parameter

    Relatively new to Microsoft report services. I have created a report which takes a single parameter named 'SelectedDate'. This report runs fine (uses complex query of hours of the selected date and complex joins & aggregate calculations between SQL
    database tables). I created a new report with two parameters, namely, StartDate and EndDate. Also created a sql stored procedure which gives all dates between StartDate and EndDate. Added subreport to this report which calls my first report and defined 'SelectedDate'
    parameter to get the value as "=First(Fields!dt.Value, "DataSet1") - where dt is the resultset of procedure called in DataSet1. When I run this report, in the subreport, all I see is the report for 'StartDate' which is the passed
    value of the first parameter. I can't find a way to pass entire array of dates as parameter, to which user can browse forwards and backwards. Any idea? Thanks in advance for your help!

    HI Visakh16..Never mind my comment..I tried it again. This time I went to the completion of previewing..and noticed that the table with DataSet1 does display dates and first report underneath but once I click any other date, it displays the subreport on
    full page and navigation back arrow (with hint 'back to Parent Report) solution is not bad..so unless you a way to achieve my desired layout mentioned above - I am good for now! Thanks for your pointer in right direction!
    One small observation for thread readers: When I published the report to the report server, the back button (back to Parent Report) which was available to me at design time, is not displayed at client's browser. Upon checking pertinent threads, concluded
    that this is known issue for years and recommendation I concluded from various threads is: Use back button of browser and it should (& did) keep the parent report page, with table with selected dates intact. A few have noticed different behaviour
    for older browser versions. 

  • Subreport repeating and supress the new page

    Hi, I make a report with Crystal report and I use a subreport.
    This subreport is repeating some information. Why when a subreport is repeating something it begin on a new page.
    I subreport which doesn't repeat it's ok but the other.
    It's possible to say that it begin where I will.
    If someone has an idea.
    CR with Visual studio 2008, c#

    It is with the different section make sure that you have checked this option : conserve unity, it's the check box before delete the empty section.
    Try it and I hope this will work.

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

  • Report with Subreport - Summary Table On First or Last Page

    Post Author: andbort
    CA Forum: General
    All-
    My apologies in advance for the long post. I would like to know if something can be done in a single report instead of having to spread it across two reports. I will use generic (Xtreme sample database) field names to explain my dilemma. I currently have the following report:
    Main Report
    Customer ID, Customer Name
    Subreport
    Order ID, Order Amount, Customer ID
    Each Customer and its associated subreport are displayed on a separate page. So it looks like this:
    (first page)
    1 City Cyclists
    100    $200    1
    101    $5000  1
    102    $350    1
    (second page)
    2 Pathfinders
    103    $760    2
    104    $20      2
    (third page)
    3 Bike-A-Holics Anonymous
    105    $120    3
    106    $270    3
    107    $400    3
    And so on. This report often has numerous customers (i.e. ~10 or more customers, thus ~10 or more pages). The business users would like to have a "summary" page at the beginning of the report. This summary page would be in basic tabular format, with one row per customer, but each row would contain values from the subreport. So the updated report would look like this:
    (first page)
    Customer ID       Customer Name                        Most Recent Order Amount
    1                       City Cyclists                             $350
    2                        Pathfinders                              $20
    3                        Bike-A-Holics Anonymous        $400
    (second page)
    1 City Cyclists
    100    $200    1
    101    $5000  1
    102    $350    1
    (third page)
    2 Pathfinders
    103    $760    2
    104    $20      2
    (fourth page)
    3 Bike-A-Holics Anonymous
    105    $120    3
    106    $270    3
    107    $400    3
    Is this possible in Crystal Reports 10?
    Additional Background: The application in question is ASP.Net 1.1 (Visual Studio 2003) which displays reports designed in Crystal Reports 10. The actual report displays customer records in the detail section Da. There are 5 subreports, one in each section Da, Db, Dc, Dd, and De. The summary page could be rendered either at the beginning of the report (e.g. report header) or at the end (e.g. report footer), but will ultimately need to contain Customer table field values, as well as field values from two of the five subreports. I am hoping that this requirement can be addressed in a single report, instead of having to spread it across two reports (each displayed in its own CrystaReportViewer control on the web page). I am assuming that a solution to the generic example above will be applicable to my specific report.
    Thanks,
    Andrew Bort
    National Grid
    [email protected]

    Post Author: Guy
    CA Forum: General
    Hi,
    If I understand you correctly, you could simply use a crosstab at the begginning of your report to summarize all customers.  If you put it alone in its section you'll be able to specify that you want a page break after.
    The remaining of the report should be a simple report where you group on your customer and the detail line showing a sale.
    finally, if I was wrong above and you still need subreports, you can use a shared variable (or a parameter) to allow the main report to receive the total from the subreport.
    Good luck!

  • Have a gap in detail of first page and not display group footer on each pag

    Please help me about Memo field in SubReport in CrystalReportXI. I have a SubReport that need to display pageheader, detail, page footer, and  in detail of subreport contains memo field and set the property of this text box to "Can Grow" = Yes .However, CrystalReportX does not support to display  pageheader, pagefooter in SubReport. So. I have created a formular FakePageHeader that has code  as
    "WhileReadingRecords;
    true"
    and group in this field and checked option repeat group header on each page and right click Section Expert->check print at Bottom of page for Group Footer.
    This problem is when I preview Subreport. It display text in group header and a gap in detail of first page and view next page, the subreport display right data of memo field. But the report still not display group footer on each page.
    How do I can remove a gap in first page and display group footer on each page?
    Thanks

    in subreport in format for the memo field uncheck keep object together.
    You can not force group footers to repeat on each page.
    I have not tried this but you might be able to capture the data you want to show in SR page footer and display in main report page footer, using shared variables.
    Ian

  • Crystal Reports for Eclipse and CR2008

    SQL-Server 2005
    CR 2008, Ver.12.0.0.683
    Crystal Reports for Eclipse Plug-in Details:
    all Plug-in-files from Business Objects have the Versions 1.0.4.v1094 or 11.8.0.v20060727 except "CR for Eclipse Dev.Guide": Ver. 1.0.0.v1094
    I created a report with CR 2008 and load this report with eclipse. A preview in CR and eclipse is running perfect.
    When I bind this report to a jsp I get the error "Es wurde keine Rowsetspalte für das SQL-Ausdrucksfeld "strRefNo" gefunden", in english
    "no rowset-column for sql-statement "strRefNo""
    General this kind of SQL-statement is not working. This statement is a function which needs first a value from the database.
    When this value is fixed in the statement, the report is running in the jsp otherwise I get the error.
    When I delete this statement in eclispe, save this report, redo my delete and save the report again, the report is running with jsp!
    May be, there is a version conflict between CR and eclipse.
    I have to create the reports in CR2008 but I can not save the report in CR2008 to an older version.
    Is there a newer version for eclipse, which works with CR2008? I could not find any other version.
    Do you have other ideas?
    Thanks!
    Jens

    Hi Bryan,
    thank you for your good informations.
    I have downloaded the complete new eclipse and I don't get this error anymore.
    But in the next step, I tried a report with subreports. This is complete not working in Eclipse. When I load this report to Eclipse Ican see and click into the subreports. Each subreport is working in Preview, but the whole reports does not work (black screen), I get the error
    eclipse.buildId=M20080911-1700
    java.version=1.6.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    Command-line arguments:  -os win32 -ws win32 -arch x86
    Error
    Fri Feb 06 08:13:34 CET 2009
    Unknown Error (java.lang.NullPointerException)
    Info
    Fri Feb 06 08:13:34 CET 2009
    Plug-in Info: Business Objects, an SAP company - 12.2.200.r454
    java.lang.NullPointerException
         at com.crystaldecisions.reports.queryengine.QueryInfo.wF(Unknown Source)
         at com.crystaldecisions.reports.datafoundation.DFQuery.if(Unknown Source)
         at com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
         at com.crystaldecisions.reports.datafoundation.DFQuery.int(Unknown Source)
         at com.crystaldecisions.reports.datalayer.a.do(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.l(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.b(Unknown Source)
         at com.crystaldecisions.reports.dataengine.j.b(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.o(Unknown Source)
         at com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
         at com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fm(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.A(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages$2.call(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.A(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing.syncExecute(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages.create(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.getValidFormattedPages(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller$3.doWork(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$_B.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Any other good idea?
    Thanks in advance.
    Regards
    Jens
    Edited by: Jens Kutsche on Feb 6, 2009 8:27 AM
    Info
    Fri Feb 06 08:13:34 CET 2009
    Plug-in Info: Business Objects, an SAP company - 12.2.200.r454

  • Crystal Report / Subreport - Performance Issue

    I am having problems with a Crystal Report / Subreport with performance. I am using Crystal Version 11, directly in Crystal Developer.  There are no other programs involved.  I am linking to a SQL Server database using ODBC.
    I have narrowed the problem down to this:
    The main report has 4 tables.  See diagram using the following link.   http://screencast.com/t/TA9YYlwwl7
    The subreport has 1 table, this table has > 2 Million records in it.
    The main report links to the subreport with one field:
    Main report field SAMPLE.PATIENT = subreport field Z_RESULT_HISTORY.PHIN
    When I set the subreport linking within Crystal   it automatically generates the following in the record selection for the subreport:
    {Z_RESULT_HISTORY.PHIN} = {?Pm-SAMPLE.PATIENT}
    The problem is that the report execution time is dependent on the field that I am using for the record selection in the main report.
    Case I   works lightening fast:
    There are 16 records returned on the Main Report   each one of these has about 1-5 records returned on the subreport.
    {SAMPLE.PATIENT} = "MOUSEMICKEY"  and {SAMPLE.SAMPLE_NUMBER} < 200
    Case II   brutally slow   there are 51 records in the main report that qualify   with a few records each in the subreport.  By  brutally slow    I mean a few minutes:
    {BATCH.NAME} = "HEP_ARCH-20090420-1"
    In this case, I can see in the bottom right of the Crystal Preview window, that it is reading through all 2M records in the Z_RESULT_HISTORY table
    Case III   brutally slow - a couple minutes
    {BATCH_OBJECTS.OBJECT_ID} = 111
    This returns 1 record on the main report and 0 records on the subreport.  Yet I can see it reading through ALL 2 Million records before the report is displayed.
    What I can t understand is why the field used for record selection on the MAIN report is affecting the speed of the execution of the subreport.  I need the main report to be selected by BATCH.NAME   yet I can t figure out what I can change to make the report run fast.  When I record select the main report by SAMPLE.PATIENT, I do NOT see the subreport reading all 2M reocrds - the report preview is returned in less than 1 second.
    Any help would be much appreciated.

    Lindell - your response was very helpful.  I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command.  The report is now very fast - even when there are lots of detail records on the main report.  It is properly executing the query and not reading all 2M records into memory for each subreport.
    I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report.  It really looks like a bug to me, but maybe someone can still enlighten me.
    thanks again so much.  We are in Parallel testing for a production rollout - and the users are MUCH happier now!  (which of course makes me much happier!)
    Susan
    PS I was not aware of the SQL Command - had never used it before.  Took me a little while to figure it out and how to do the linking - but it is very powerful.  Thanks again.

  • Using a subreport formula in a main report formula

    Hello,
    I am trying to use a formula that is in the subreport and also a formula that is in my main report to come up with a percentage.
    ve researched the forums on the internet and couldn't find anything that directly fit my situation.
    - Formula #1: The SubReport formula is the "sum" of a number variable of {JobRecord.ProjectedIssueDate}. This is for the actual amount of job issued.
    - Formula # 2: The MainReport formula is the "sum" of a number variable of {JobHours.StartDate}. This is for the actual amount of jobs completed.
    Issue: I need to create a formula to take the Formula # 1 and Formula # 2 and get a percentage.
    Example:
    9 Jobs Completed in Main Report / 10 Jobs Projected in Sub Report = 90%
    My main report is grouped as follows for both the main and sub report:
    Grouping #1: Start Date
    Grouping #2: Contractor Code
    Grouping #3: Job Type Code
    I need this formula to work on the Grouping # 3 Level.
    Any takers?

    Also, If you want the Percentage and Sum from the Subreport to show beside each other, here's what you need to do:
    1) Create a new Group header 3b section
    2) Move everything except the Subreport on the Group Header 3b section
    3) Get inside the Subreport and suppress all sections of the Subreport
    4) Back in the Main Report reduce the size of this Subreport and make this no bigger than a dot. Reduce the size of the section so it doesn't take up a lot of space.
    5) Create a formula with this code:
    shared numbervar cnt;
    Drag and drop this formula on the Group header 3b so that this shows the sum from the Subreport.
    -Abhilash

  • 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

  • Need to supress main report based on shared value comes from subreport

    Hi,
    I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
    Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
    Any help would be appreciated!
    Helen

    Hi
    In this case you need to insert the same sub report twise.
    Example :
    Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
    Detail b -- based on detail a sub report suppress the main report records
    Detail c-- Your actual sub report will display the values.
    Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
    Thanks,
    Sastry

Maybe you are looking for

  • Connect macbook to a sony trinitron

    i would like to connect my 2008 macbook to my sony trinitron model kv24fs120 (has white, red & white and s video) and use this tv as monitor. how can i do this? thank you

  • Drag and drop issue alternatives

    Hello i'm having the same drag and drop issue as the other guys here. basically cant drag and drop to the desktop. Im looking for a workaround that doesnt involve making temporary backups or repairing iphoto libraries. My library is 260gb and even th

  • VAT Perceptions in Argentina with minimum amounts (VA02 problem)

    Hi, I am creating a return order with transaction VA01 and exclude the calculated amouts for condition J1AQ. Then I visualize the order with transaction VA03 and the values are ok. But when use the transaction VA02 recalculates these values and set i

  • Business content activation in a fresh implementation

    Dear Gurus Before i begin let me state that i did check and did get information about activation...my concern is that i am new to implementation and  i want to know exactly what are the steps that need to be followed at R3 end and in BI when we imlpe

  • Convert Pojo to XSD using Java

    Dear Sir, how to convert POJO to XSD format using Java...? give me some clue about conversion.... Thank you, Boss134