Producing report sections based on data with previous sections

I'm designing a event tracking report where you provide the event number to the report through a parameter, which then gets the corresponding event data.
This then has to use the previous event number that was retrieved by said event number to get the next lot of event data and so on until it reaches a event that has a previous event number of 'NA' meaning no more events.
So my question is how can i achieve this within crystal reports?
I was using a parameter that could hold the multiple event numbers that resulted from a tracking search with in visual basic, and that worked fine, but i now realize that with another report that i have to produce with multiple starting events that all have to be tracked in the one report.
For this i was just going to use a sub report within the details section but because i don't know how many sub reports would have to be produced i can't allow for enough parameters to pass the list of events in the way i was previously doing it, thus i have to let the report do the tracking for me.
Google hasn't returned anything that would provide a solution to this problem, so any help would be gladly recieved

I have decided to use a dataset for this where i populate it with all the events with all their traces and give each set of traced events a number, then in crystal load this dataset and group by the trace number and sort my the event number to get them in order.
This should give me the required output, but I'm having trouble implementing the dataset with crystal reports, i have maked a strongly typed dataset and populated it with columns, then get all the data for the traces and add that to a dataset using the strongly typed dataset as a template.
Then create the report as an object and assign the report source as the dataset and pass it to the crystal report viewer
Unfortunately this does not have any resulting data produced on the crystal report
  Dim objRpt = New Trace_Report
        objRpt.SetDataSource(Plant_Report_Data)
        With Trace_Report__Form
            .CrystalReportViewer1.ParameterFieldInfo = paramFields
            .CrystalReportViewer1.ReportSource = objRpt
            .WindowState = FormWindowState.Maximized
            .ShowDialog()
        End With
Any ideas?

Similar Messages

  • Deleting records based on date with timestamp

    Hi there,
    In continuation from my earlier Query. Multiple reccord have inadvertantly been inserted in the LOAN_TXN table. I want to delete all the records, except one, based on date with timestamp.
    CREATE TABLE LOAN_TXN
    TXN_DATE                     DATE,
    BALANCE          NUMBER(10,2),
    CODE          VARCHAR2(1),
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '02/15/2010 11:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 250000, 'D');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2010 11:59:59 AM', 'MM/DD/YYYY HH:MI:SS AM'), 250000, 'B');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '05/14/2010 11:25:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 500000, 'D');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '06/30/2010 12:15:00 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '08/02/2010 10:45:26 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '09/08/2010 02:10:17 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '10/27/2010 04:25:20 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '11/09/2010 10:15:55 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '12/29/2010 03:10:20 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '01/12/2011 01:11:15 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '02/11/2011 12:11:48 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 4000, 'R');
    INSERT INTO LOAN_TXN ( TXN_DATE, BALANCE, CODE) VALUES (TO_Date( '03/31/2011 11:59:59 AM', 'MM/DD/YYYY HH:MI:SS AM'), 460000, 'B');I want to delete mutiple records, except one, with code 'R' and TXN_DATE = '03/31/2011 11:59:59 PM' How do I do that ?

    user3308033 wrote:
    I think your query would delete all the duplicate records. Keeping one, I just want to delete mutiple records with timestamp : 11:59:59.
    DELETE FROM loan_txn
    WHERE rowid != (
                     SELECT  MIN(rowid)
                       FROM  loan_txn
                       WHERE txn_date = TO_DATE('03/31/2011 11:59:59 PM','MM/DD/YYYY HH:MI:SS AM')
                         AND code = 'R'
        AND txn_date = TO_DATE('03/31/2011 11:59:59 PM','MM/DD/YYYY HH:MI:SS AM')
        AND code = 'R'
    /SY.

  • Produce report NOT based on a single sql statement

    I want to produce a tabular report based on a series of sql statments. Specifically, a report of managers that wil include counts of employees that are in other tables using differing criterias.
    Name Count Count
    using using
    criteria 1 criteria 2
    Manager1 35 242
    I would expect to write an anonymous pl/sql block with a driving cursor determining the managers to report on. Within that cursor, I would execute a number of other queries to derive the count for each of the two columns.
    I have tried creating a report region based on a sql statement, but that requires a single sql statement. I also tried creating a report region based on plsql, but it required an into statement of defined items. This option looks like it can provide multiple rows, but since it selected 'INTO' named fields, it only creates a report with the last row of data.
    I must be missing something. Any suggestions are greatly appreciated!!!

    If you want a wizard to create the form and report for you then yes you need to have a table. One thing that you can do is define a view that contains the data you need and define an Instead Of trigger on that view so the automatic fetch and dml will work but you can have the data stored into the different objects. basically the view and the trigger work as a router/dispatcher for the data.
    *edit*
    I should also add that you can write a pl/sql package which does the fetch and the dml operations with the form items as input. This is the solution I would typically use for any form that was not a simple CRUD form for a table. One thing to note is for the fetch I prefer to use out parameters for the form items so it requires the developer to map the item to the param in the app so it will show up when you are searching through the app. I highly discourage hiding item references inside of packaged code.
    Good Luck!
    Tyson
    Message was edited by: TysonJouglet

  • How to compare Sale data with Previous data

    Hi Guys,
        Any one tell me how we will compare Sales data with Last year Sale data. Is there any T.Code or any kind of Report in the SAP. If available please suggest the same.
    Thanks & regards,
    Naveen Bhatia

    Hi Naveen,
    Did yo ucheck t-code SD01
    Regards
    Rohit.

  • In Report output, Missing Plan data with the Seletion option - Single Value input (more than 10 values)

    Hi ,
    I am running the Query (Actual Vs Plan) in the BEx Analyzer, with the input for the characteristic like Fiscal Year, Posting Period and Cost Center(20 Single value) it not comming up with the plan data - Actual data is coming up fine.
    If i gave 10 or less than 10 inputs ( single values input in the selection - option ) for the characteristic COST CENTER it coming up with all the data (Both plan and Actual).  if the COST CENTER input values more than 10, it not coming up plan data (Actual data is coming)
    Cost Center Variable is designed with an Authorization Variable.
    Can any one please help me to know why plan data is getting miss when the input limit more than 10 (single values input in the selection - option) in the Cost Center Variable? 
    An also could you please share that, What is the Max limit for the Single values and Range Value for an Selection - option in the BEx Variable.

    A)    Hi ,
                 In Report, I am having 2 variant.
    1.   For one variant, i have saved the input values for both the Select Single values & Select range for the cost center.
    8 Values in single & 4 Values in Ranges         
    It coming up with data successfully.
    2.    Another variant having input only for select single values for the COST CENTER, it contains 20 records (This variant also have restricted with the same values as above variant for COSTCENTER variable)
    Fiscal year                         : 2012
    Posting period                   : 8
    Cost Center                        : 20 values in Single                                             (Here I have separated the range values into single)
    It’s not coming up with plan data. 
    B)   If I gave only first 10 values in the Single value, Output for both actual and Plan are coming up…………. If I gave the Second 10 value in the Single value and got the Output for both actual and Plan.
    C)    I have also checked the following details of this query, 
    Executed the query in RSECADMIN and checked the Authorization log as below,
    Relevant Characteristics for Detailed Authorization Check  (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider ZPCA_M36: 
    List Is Empty:
      There Are No Characteristics That Have to Be Checked in Detail 
              2.  Checked the Single value input by iteration, 1 to 10, it retrieves data.  More than 10 like 11, 12 … is getting failed to pull plan data.
              3. checked the selection Value range by iteration and I gave the range value count up to 25        inputs, its works fine.
    Thanks.
    Regards,
    Subashini.

  • Trying to alter font on a report row based on data condition

    Hello.
    I have an Apex application with a "classic" SQL report and a corresponding form.
    In the report region I am pulling all items from a table (Select * from TASKS)
    The TASKS table contains many columns including DUE_DATE and COMPLETE_DATE field.
    I am trying to find a way to format the rows in my report based on the condition of those two fields.
    If the record has a complete_date (not null) then I want to change the font for the entire row (each column) to be grey.
    If the record does not have a complete_date (null) and due_date is before today, I want the row to be bold and red.
    Otherwise, the row would display standard black text.
    I can't seem to find a straightforward way to do this in Apex.

    Hi JodyMorin,
    Try looking at this post:
    Conditional item formatting (color)
    You will need to tweak the code a bit for your needs, but I hope it helps.
    -Marc

  • Display a count of data in a single report table based on date

    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.

    drbiloukos wrote:
    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.Regardless of your final solution, if "sampled_date" is a character string, I'd convert it to a DATE (use TO_DATE) to compare against SYSDATE, rather than convert SYSDATE to a string for the comparison.

  • Financial Report to get data of previous 2 months

    Hi,
    I got a requirement to create a report to show the data of previous 2 months based on the prompted month and year. Suppose if user selects March and year as *2009* then my report should show data for Mar followed by Feb and Jan of *2009*. I am able to create that correctly for the current year if the prompted month is from March to December.
    But if user prompts Jan and Year as *2009* then I should retrieve the report of data*Jan* of *2009* followed by Dec and Nov of previous year that is *2008*. Similarly if user prompts Feb then my report should show the data of Jan of this year 2009 and Dec of *2008*. I have YEAR and PERIOD dimensions in the Column. Could anybody please help me how can I provide such functionality. Thanks in advance.
    Regards,
    Sravan

    Hi Sravan,
    Check the below thread...hope it will help you.
    Very Urgent FR Report
    Regards,
    Mars

  • Problem with Save data with report

    Post Author: ramprosoft
    CA Forum: General
    Hi,
    I am new to CR and using Crystal Reports XI with SQL Server 2000.
    I'm not able to remove the saved data in a report. I have played around different options, but unfortunately I'm not able to remove the data. I have checked variouse places in web above this issue not able to find a solution, so decided to open a new post. The problem is :
    I have created a simple report and saved with-out data (1st version) the file size was 16KB. After few changes I have saved the same report with Data, the file size become 1065 KB. Its perfect and I can view the report in Report Viewer. Great Stuff!. Now the Testing completed, I would like to move this report to production environment, I notice that I'm unable to remove the data. I have played around various tricks like below, but it didnt work well.
    Trick 1:
    Uncheck: File->Options->Reporting (tab)->Save Data With Report.
    Check: File -> Options -> Reporting (tab)->Discard Saved data on Open,
    Uncheck: file-> Report Options -> Save Data With Report.
    File -> Save Data with Report (Not selected)
    Opened the report and try "save" and also tried "save as", still the size is 1065.
    Trick 2:
    I enabled all "Save Data with report" feature. Deleted all the rows in the table related to the query, previewed the report and Saved the report with "Save Data with report" featuer. But now, the funny part happen, the file size increased to 1070kb, instead of reducing. Worst Stuff!!!
    Trick 3:
    Updated the latest version of Patch and tried above tricks, still i'm not able to remove the data.
    Appreciate, if you could help me to fix the problem.
    thanks in advance

    Post Author: salmanq
    CA Forum: General
    Hi, This
    post is very informative, however I would like some specific information. If
    someone can help me then please send me a private message. Best Regards,
    Wholesale Pages UK Dropshippers
    | Wholesale Suppliers
    Australia Wholesalers and
    Dropshippers | Dubai Property and Real Estate

  • Save Data with Reports

    Hi Friends,
    The Report Option has Save Data with Reports.
    What is Merit and Demerit of having this option on?
    Thanks and regards

    If you select the report option save data with report - i think it will save the report along with the data retrieved at that particular time.
    When open the report again it will show that data. The crystal reports will not search for new data, If click refresh then it will try to get the updated data. If you save the report with data, if publish the report in Infoview- open the report it will display the data without going for the dynamic data. If you schedule it then it will get the latest data from db server.
    You can view the data in crystal  reports viewer if you save the data along with the report.
    sorry for my english!!
    Regards,
    Parsa.

  • Validate BI data with r/3 reports

    Hi
    can i get list of reports validate of BI data with r/3 reports instead of tables? can i get all modules like?
    please let me know

    Hi Suneel,
    For Stocks ,we compare MB5B- R3  to the Stock Data in BW,ideally the data should match.
    For sales we have custom developed Report in R3 which we validate it with BW.
    Apart from these we compare them with Tables in R3,which u  said u r aware of.
    Rgds
    SVU123

  • Hide Section where the data in section in NUll

    I have read a couple of threads but my issues still persists. I am using Business Object XI (infoview)  I want a report to show printers by the model of printer, I have created an object called Model which is based on 2 other fields (both have model details in them. I set the Model field as the section and the report shows as below
    Model 1
    Serial Number /  Receive date / Manufacturer
    Model 2
    Null
    Model 3
    Serial Number /  Receive date / Manufacturer
    I want to be able to remove "model 2" from the report. I go to the section properties and go to display, I " un tick show null field" and I go to 'Hide section when the following are empty'  and check this but the only options I am given in the drop down are the model or block1 when I select either or both the section that I want to suppress is still visible.
    Is there a way to get any other values in this dropdown, I have read about something called hide block but I am not sure what this is or even if it is an option in Business Objects?
    Thanks

    Hi Adam,
    I had the same problem myself and have found out how to resolve it.
    To hide a section where the data in the section is null you need to apply a filter on the data at the report level, not the section or table level if you had a table in your section.
    In Infoview (which is Webi in a web browser, usually displayed in HTML):
    1. Go into Edit mode
    2. In the left pane click on the 'Document Structure and Filters' button
    3. Add a new filter at the report level (not on the section or the table) to filter the null data out (in your case WHERE Model Is Not Null)
    Your report should now only show you the sections that actually contain any data.
    Regards,
    Chris

  • Report Report Interface: No applicable data found

    Hi.
    I m using the Report Report Interface and getting:
    No applicable data found
    while calling in GoTo the second Report.
    While removeing  the filters threre is data .
    What conditions needs to be met that there is data displayed?
    Thank You
    Martin

    Hi,
    Please execute the second report separtely with the same filter with which you are getting 'No applicable data found'.
    Please check whether executing second report gives you any data with same filter or not.
    If it doesn't give , then it means there is no data available to be displayed for that particular filter combination in cube.
    In that case you will have to filter the data which is available in cube or need to load the data as required.
    Regards,
    Amit

  • Multiple Headings in a Report with Optional Sections

    I’m trying to create a BI publisher document that has a main section and two optional sections. The report is for an Oracle Apex 4.1 application so user responses regarding the sections they require is via an apex page. Apex allows session state variables to be included in the report data xml so the user responses are stored in the data xml. I’m using an RTF template. The problem is that the optional sections need to have different headings from the main report (and each other) and start on a new page. I just cannot get this report to work. I either end up with headings on blank pages or just blank pages when the user chooses not to have the optional sections.
    The queries for the optional sections have been structured in such way that they will only return rows if the user has selected the optional sections.
    This is what I’ve tried so far:
    Section breaks before the optional sections: The headers for the optional sections appear regardless of whether there’s any data to show. I have to use a section break that will produce a page break because we want the optional sections to start on their own page. Even if I surround the section break and the rowset for the optional section with an if statement I still get a heading on a blank page.
    Taking this a stage further if I try to suppress the header by completely surrounding it with an if statement with the appropriate report variable ie
    <?if:optional_section_1 = ‘Y’?>
    Heading text
    <?end if?>
    I just get a blank page instead.
    If I use the same header and footer throughout the document and use normal page breaks with the optional sections the report works fine.
    Templates: I’ve tried splitting the optional parts of the report into sub templates that have their own headings but these headings don’t show up at all in the final report.
    Start body/end body tags: That is placing the headers actually in the document text (rather than the actual headers and footers) but outside of these tags. I end up with both headers for the optional parts in my output document. The Oracle documentation “Creating Multiple or Complex Header and Footers” is rather sparse and the example doesn’t really cover what it purports to cover i.e. a document with multiple headings. I’ve done plenty of Google searches regarding this and cannot find any good examples.

    can you send me your template and xml to my email . I can try at my side : [email protected]

  • How to schedule report filtered by dynamic date based on the date the Agent runs

    Hello
    I have a question about delivering report using OBIEE agent.
    If i am running an agent today to deliver report A, can I get report A based on Last Monday's date or any dynamic dates?
    For example, say today is Dec 18th 2013 and my agent is running according to how I set the schedule. Now the deliver content will have report A being delivered. Now report A has a date column, normally this column is filtered by current date. But if it's delivered through agents to various users, Report A's data should be the previous Monday, so in this case Dec 9th 2013. When this agent is run again said on Dec 27th 2013, then report A should be filtered by Dec 16th 2013, which is the previous monday of Dec 27th.
    Can something like this be achieved in OBIEE 11G?
    Thanks in advance.

    Yala,
    Not a straight forward way
    1) Let the report run through Agent with Current Date filter
    2) once it ran for the first time you can see IBOT name/last run time(LAST_RUNTIME_TS) in  S_NQ_JOB
    Create a repository variable 'last_run_agent' using below sql to get max(LAST_RUNTIME_TS)
    select max(LAST_RUNTIME_TS) from s_nq_job where name = 'AGENT_NAME';
    Edit the analysis report with current date filter and modify the filter condition accordingly to filter on newly created repository variable
    Thanks,
    Saichand

Maybe you are looking for

  • New Cheque lot series  Creation

    Dear all, My client has created a dummy check lot series of 3 digits, ie LOT 1 From 001 To 005. Used Checks 005. Now when we want to create the actual check lot series of 6 digits, it is not taking. sat LOT 2 From 000001 To 00000100 How can I rectify

  • Problems Ripping to Jukebox Zen USB

    Every time I try to rip to my zen direct from my cd dri've I get the message "player is not connected or busy etc " or "unable to create file". So I copied the CD to the PC Library and then syncronised PC and zen. This worked for a while now I cant d

  • NAC agent failing to popup

                       Dears, I have two ISE appliances installed in a distributed deployment (primary "ISE1" and secondary "ISE2"), each node has the three personas installed on it. The servers are registered together and the replication is working prop

  • Best format for iMovie input: DV or AppleIntermetiateCodec

    I thought (and I think I read here several times) that the best input for iMovie, if you use a MiniDV camcorder, was to import the DV files into the app. Now I have read an article ( http://imovietricks.blogspot.com/ )where it is said that iMovie doe

  • How do I get System Profiler to open?

    I want to check the speed of my Superdrive burner because I am getting error messages. When I try to open System Profiler, nothing happens. What should I do? In my console, this appears: System Profiler[260] Unable to load nib file: SPApp, exiting