Crystal Report linked to a table with filter attached

I have a Crystal Report based on 2 tables and I want it to display every incident in the incident table and to pull the truckID of the
first truck on the scene from the truck table . So the finished product should look like this…
IncidentID           IncidentNum     ResponseTime                  First Arriving Truck           Disctict
  1x44452                1258ab55             5:32                                        B8                              2
*The first arriving truck is the truck in the Truck Table with the same IncidentID and  the earliest ArrivalTime.  There will be multiple trucks for each incident but I want it to only show the one that arrived first (ArrivalTime).  So one line per incidentID.
Incident Table
IncidentID
IncidentNum
ResponseTime
District
Truck Table (Will contain many trucks for one incident with the following info
Truckkey
IncidentID (Link to Incident Table)
ArrivalTime
TruckID
I figure I probably need to build a formula with the min function or perhaps an OnCommand – I’m just not sure.
The biggest issue is the overall report has 4 filter settings.  They can select a date range, a location, an incident type and a range for the response time. So I do this with the Select Expert
I can get all of that to work except I cannot figure out how to get it to pull the First Arriving Truck without duplicating the incident
line.  Also, if there is a Truck with an ArrivalTime of Null I want it to ignore that Truck Table record.
Can anyone help???

Hi Debbie,,
You may try this:
1) Go to the Group Expert > Create a Group on the 'Incident ID' field from the Incident Table
2) Insert a summary on the 'Arrival Time' field and place the field on the Group Footer
3) Move all the fields from the Details section to the Group Footer
4) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:
{Truck.ArrivalTime} = Minimum({Truck.ArrivalTime}, {Incident ID})
5) Suppress the Details Section
-Abhilash

Similar Messages

  • How to biod Crystal Reports based on ABAP Tables/Views

    Hi,
      Can any one post me some document stuff on building Crystal reports based on ABAP Tables/Views please!
    Thanks,
    Madhu.

    Hi,
    Check out the links below for Crystal Reports :
    Re: Crystal report in SAP BW
    http://support.businessobjects.com/documentation/product_guides/
    http://help.sap.com/saphelp_nw04/helpdata/en/86/06a8d3be17fc47aa8d850e50cf5f24/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/46/dfd33b1ed4b47de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/34/c0523e83464644e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5f72b7c0e943d99f4f5cef2bfacfe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/06/00a63b60f26e3be10000000a114084/frameset.htm
    Hope this helps.
    Cheers,
    Kedar

  • How to use Crystal Reports XI release 2 Preview with Lotus Notes  Scripts ?

    <br />Hi all,<br /><br /> How to use Crystal Reports XI release 2 Preview with Lotus Notes 7 Scripts ?<br /><br /> <br /><br />Thank&#39;s  <br />

    Hi,
    we are using Lotus Notes and Crystal Reports for preview and printing reports from our Lotus Notes Applications. We use the RDC object model. For previewing the reports we export them in an pdf-file and then start the PDF Reader to show the Preview. This works fine.
    But with Crystal Reports > 11 the RDC Object Model is no longer supportet, so we look for another way to preview and print our reports.
    I try to preview a report build with crystal report XI release 2 in my thick client (Lotus Notes) using java reporting component JRC, this report uses an native xml file as datasource. If the datasource is saved with the report everything works fine, but otherwise I have the following error:
    JRCAgent1 detected an exception: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found
    I also tried the .jars from Crystal4Eclipse. Doesn't work. When I use Eclipse to view the report everything works fine. The class QName exitsts in the jaxrpc.jar and in the xbean.jar, but only in the xbean.jar a Methode getPrefix exists.
    This is what we tried:
    Works fine with RDC. Doesn't work with JRC until now.
    Did this help you ?
    Perhaps you con help me with the JRC, because I'm a java newbee so any ideas could be helpful.
    Oliver
    <p><a href="http://www.cominform.de">www.cominform.de</a></p>

  • Af:table with filter option

    Hi,
    I have a bounded task flow with page-fragments, first activity is method-call(execute-query) and second is a view activity. On the view activity I dropped a read-only, af:table, enabled filters. Although execute query is successful af:table does not display correct records. When I delete af:table and add it again with no filter everything works as expected (also deleted the search region definition from page def file). af:table with filter option adds a search region to executable section of page-definition file, with Empty Criteria in my case. I want af:table to display results after execute-query method activity and decorate the af:table with filters. Filter would be enabled only when users enter filter criteria. Is that possible? Am I missing something?
    Best Regards,
    Salim

    Hi,
    I found new problems with my case. When we use filter option with af:table filter criteria is not cleared. Forum search returned Re: Problem with 11g table - filter . Suppose that user enters a criteria and presses enter, this executes query and results are displayed as expected. Then user clears the previously entered criteria presses enter o display all records, and no results are displayed. Looking at the trace for a testcase based on HR schema, I observed that all the bind variables in the query is saved and passivated, Please observe that for every new criteria entry (for the same field, Emp.ENAME) a SQL clause is added at the end. Although one might expect that all the criteria related to af:table filter is cleared and rebuilded for every request rather than saving them all, which results in bad end user experience. So is there a way to go with af:table with filter? Am I missing something?
    Best Regards,
    Salim
    SELECT Emp.EMPNO,        
         Emp.ENAME,        
         Emp.JOB,        
         Emp.MGR,        
         Emp.HIREDATE,        
         Emp.SAL,        
         Emp.COMM,        
         Emp.DEPTNO,        
         Dept.DNAME,        
         Dept.DEPTNO AS DEPTNO1
         FROM EMP Emp, DEPT Dept
    WHERE Emp.DEPTNO = Dept.DEPTNO(+)
         AND ( ( ( ( ( Emp.ENAME LIKE :vc_temp_1  )  OR  ( :vc_temp_1 IS NULL ) ) )  AND ( ( ( Emp.EMPNO = :vc_temp_2  )  OR  ( :vc_temp_2 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_3  )  OR  ( :vc_temp_3 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_4  )  OR  ( :vc_temp_4 IS NULL ) ) )  AND ( ( ( Emp.ENAME LIKE :vc_temp_5  )  OR  ( :vc_temp_5 IS NULL ) ) ) ) )Bind params for ViewObject: EmpView2
    [18615] Binding param "vc_temp_1": M%
    [18616] Binding param "vc_temp_2": 8
    [18617] Binding param "vc_temp_3": A%
    [18618] Binding param "vc_temp_4": M%
    [18619] Binding param "vc_temp_5": M%

  • Crystal Report - Linking tables

    Hi all,
    I had a look around for this subject matter but cannot find anything to answer my question.  If you know where I can find the answer, please let me know.
    I have 2 tables on Crystal Report and am trying to link the Primary table to the secondary one with a 'NOT EQUAL' link.  ie. I want all the records in the Primary table (about 4000) which Do Not have an entry in the secondary one (about 3500) so I am expecting to get about 500 records.
    I have tried with all the various link and Enforce Join options but cannot get the correct results.
    I have also tried to link them with an Inner Joint of Equal Type then created a formula of Primary.key.field <> to Secondary.key.field but this is not working either as it returns no records.
      Any idea?

    Hi All,
    This is to let you know that I have now found an answer to my questions (yiha!).  So thanks to James Gust who answered a note from Joey041 on March 2nd.
    Thanks a lot for being there.
    Cheers, Sylvie
    Edited by: SylvieWolpert on May 12, 2009 7:31 AM

  • Change crystal report data source dynamically failed with multi tables report

    hello all
    i have many reports created by someone else on his own machine using same database file i use
    my application use Visual studio 2013 win form with crystal report pack 9
    i use rpt files provided to me
    connect database use OLEDB
    to show form i use below code
    SQLstr = " select what ever  from  table "                      ' defined as Public
    reportName = rpt file path & report name
    showReport()
    public sub showReport()
    reportTable.clear()                                                       ' defined as Public
    DBAdapter = new oleDpdataAdapter(SQLstr,DBconnection)
    DBAdapter.fill(reportTable)
    dim rptDoc as new Crystaldesicin.crystalreports.Engine.ReportDocument
    rptDoc.load(reportName)
    rptDoc.setdatasource(reportTable)
    formRpt.RptViewer.reportsource = rptDoc
    formRpt.showdialog()
    now
    when i use one table report with (select from one table) >>>>> works perfectly
    but when i use report retrieve data from 2 tables and group   data like using
    SQLstr = " select 'table'.'coulumn', 'table2'.'column' ....... etc
    from 'table1'
    INNER JOIN 'table2' ON 'table'.'coulumn' = 'table2'.'column'
    it's not working and formrpt shown but asking for database login
    I noted that in database login window : server name refer to ORIGINAL DATABASE USED BY Report Creator not to my local database
    ================================================
    i tried to set
    rptDoc.datasourceconnection.item(0).setconnection("","databse file path and name", False)
    rptDoc.datasourceconnection.item(0).setlogin("admin","")
    but the same
    using dataset instead of reportTable the same error
    ================================================
    what i missed in this type of reports?
    ( apologize about long take and poor English )

    Hi
    Please have a look at the wiki Troubleshooting Issues with VS .NET Datasets and Crystal Reports.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • SAP Crystal Report 2013 SP03 - Connection error with SAP ECC tables, clusters

    Hi,
    I'm trying to connect SAP Crystal Report 2013 with SAP ECC but I'm getting below error. I've read some where that We need to install SAP integration kit but SAP BI 4.1 it comes default, also had to install the ABAP cystal report transport - How to do Install this on SAP side -
    and on the ECC side we had to develop Crystal Authorization - how to develop this?
    Can someone screenshot of these steps and please suggest if something else can be done.

    Hi Pawan,
    Search for the error and you should see many threads for this issue.
    Anyway, this is what I found:
    logon failed. you do not have the necessary rights to design reports
    Crystal Reports 2008 and BW - Installation and Configuration - Business Intelligence (BusinessObjects) - SCN Wiki
    The wiki should have answers to all your questions regarding Transports, Authorization et al.
    -Abhilash

  • Crystal Report against ECC 6.0 with SSO configured

    I created a simple report against the ECC 6.0 Article table and saved it to InfoView. I can run the report fine, but when others run it they get an error stating the logon parameters are incomplete. We are in the process of configuring single sign on and have created other Crystal Reports going against ECC 6.0 with Business Views where SSO turned on in the data connection. Everyone can refresh those reports with no problems. Is their some report setting that needs to be set for Crystal Reports using a data source directly against ECC 6.0 tables?

    We have multiple reasons for implementing SNC.
    The main reason we have enabled SNC is to simply the users experience while working in the SAP environment. We are going live this month with Plant Maintenance, SRM, Project System, General Ledge and Asset Management reporting cubes in our BW environment as well as in our ECC 6.0 environment. We have  set up SAP Portal and have created iviews to BOBJ folders and reports. Users are authenticated once by logging on to the Lan. Once logged on we would like them to seemlessly run SAP transactions and Business Objects reports through the SAP Portal based on their job function. Each user has security setup in BOBJ and SAP to allow access to transactions and reports appropriate for their job function.
    We have three types of SAP reports and data connectors.
    - One set of Crystal reports go against ECC 6.0 through Business Views with a Data Connection set up for SSO.
    - One set of WEBI reports goes against BW queries though Universe Connections set up for SSO.
    - One set of Crystal reports go directly against ECC 6.0 tables.
    We currently have two issues:
    1) The Crystal reports going directly against ECC 6.0 tables are returning the error
         Error - The database logon information for this report is either incomplete or incorrect.
    2) When we send a link to any report using OpenDocument if the user is not logged on to InfoView they get a rather long error message:
    Account Information not recognized: Active Directory Authentication failed to log you on. Please contact your system admin.... 
    Our hardware and server setup is a load balancer connected to a cluster of two Tomcat servers connected to two BOBJ servers.

  • Populating a Crystal Report from a virtual table

    Hi,
    Iu2019m using Crystal Report XI R2. I have a Crystal Report which is created using a view in Oracle using the native oracle DB connection. Iu2019m intending to write an application which should populate this report with data using a virtual table in memory. Populating the virtual table could be done by me but what I need to know is how to populate the report using this virtual table. Note the virtual table name will be the same as the one that was used to design the report. Is such a thing possible in the Crystal Java SDK. I found the flowing link http://www.eggheadcafe.com/forumarchives/NETgeneral/Jul2005/post23273440.asp and it talks about a PUSH feature. Can this be used? If so can you tell me how, maybe a small sample code would help.
    Thanks you in advance,
    Regards,
    Chanaka

    I would suggest searching for how to use resultsets with crystal reports.

  • Crystal Reports Cant Find the table

    Hello ,
    I have a problem when i try to preview a report Crystal Reports says that cant find the table , it happend when add a table that in his name has an underscore example "SALES_REP" , im working with CR 2008 and open access ODBC driver.
    Can you help me with the problem?
    Thank you
    Manuel

    Hello,
    Try installing all CR patches and then test using OLE DB. If not an option we need to know more details of the database and driver/client?
    I recall this may be an issue and not sure if it's been patched or not. Try searching here to see if anyone else has had this problem.
    Thank you
    Don

  • Crystal Report: Multiple Join in Table

    Hi experts,
    I have a problem adding a table in a report.
    The layout I'm modifing is the Purchase Order (CR). The report contains the necessary tables linked via the Database Expert to OPOR master table.
    I need to add the Vendor Item Code in the OSCN table. To reach he correct code I have TWO values: ItemCode and CardCode.
    ItemCode is in the POR1 row, and CardCode is in OPOR table.
    I tried to add the table and link CardCode between OPOR and OSCN, and the field ItemCode between POR1 and OSCN but crystal say me that, he cannot join a just joined table!
    So, how can I add the table OSCN linked correctly in the existing report ti dislay the correct Vendor Item Code near the ItemCode from OITM?
    Thanks for your answers.

    hi Jonny,
    paste this to your SQL query window to create this Stored Procedure
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:          <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:     <Description,,>
    -- =============================================
    CREATE PROCEDURE [dbo].[YourSP_Name]
    AS
    BEGIN
         SET NOCOUNT ON;
         SELECT     OPOR.DocNum, POR1.DocEntry, POR1.LineNum, POR1.ItemCode, OPOR.CardCode, OSCN.Substitute
         FROM         OPOR INNER JOIN
                          POR1 ON OPOR.DocEntry = POR1.DocEntry INNER JOIN
                          OSCN ON OPOR.CardCode = OSCN.CardCode AND POR1.ItemCode = OSCN.ItemCode INNER JOIN
                          OITM ON OSCN.ItemCode = OITM.ItemCode
         ORDER BY POR1.DocEntry
    END
    GO
    then call this stored procedure in Crystal report
    regards,
    Fidel

  • Crystal Report - More than one table from MySql

    Hello, I am in need of help big time.
    I have am using Visual Studio 2010 and Crystal Report 10.
    The problem that I am incounting is that I am unable to retreive data from more than one table from a MySql database. I have been stuck on this for too long and need to hjump the hurdle.
    I am using a MySql connection string, a dataset and a crystal report which is based on the dataset.
    The main error that I am having is, the browser opens and a form appears saying "The report you requetsed requires further information" With the Server name: DataSetPropertiesDetials, while the User name and Password fields are then enabled.
    I am guessing I am missing something in my code.
    When I retreive data from one table the report is fine, but when I try to use more than one table it throws the error.
    My Code is below and also attached:
    Imports System.Data.SqlClient
    Imports System.Configuration
    Imports MySql.Data.MySqlClient
    Imports CrystalDecisions.ReportSource
    Imports CrystalDecisions.Web
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim con As MySqlConnection
    Dim rpt As New CrystalReport3()
    Dim myReport As New ReportDocument
    Dim myData As New DataSet
    Dim cmd As New MySqlCommand
    Dim cmdUser, cmdProperty, cmdBranch As New MySqlCommand
    Dim daBranch, daProperty, daUser As New MySqlDataAdapter
    con = New MySqlConnection()
    'Connection String
    con.ConnectionString = "Server=****;Database=***;UID=***;Password=****"
    Try
    con.Open()
    cmdBranch.CommandText = "SELECT branch FROM tblbranch"
    cmdBranch.Connection = con
    daBranch.SelectCommand = cmdBranch
    daBranch.Fill(myData)
    cmdProperty.CommandText = "SELECT ref, keys_held, key_no, keys_out, no_name, address_line1, address_line2,key_label FROM tblproperty"
    cmdProperty.Connection = con
    daProperty.SelectCommand = cmdProperty
    daProperty.Fill(myData)
    cmdUser.CommandText = "SELECT known_name FROM tbluser"
    cmdUser.Connection = con
    daUser.SelectCommand = cmdUser
    daUser.Fill(myData)
    myReport.Load("REPORT LOCATION")
    myReport.SetDataSource(myData)
    myReport.Database.Tables(0).SetDataSource(myData.Tables(0))
    CrystalReportViewer1.ReportSource = myReport '
    Catch myerror As MySqlException
    MsgBox(myerror.Message)
    End Try
    End Sub
    End Class

    Hi, 
    You have 3 SQL commands but you are calling SetDataSource only once.  You need to look through for each of the SQL Commands. 
    Good luck,
    Brian

  • Crystal reports for eclipse ver 2 with oracle stored procedures

    Does Crystal Reports for Eclipse version 2 support Oracle Stored Procedures.
    I have been struggling to get this to work for the last 1 week.
    Any help would be appreciated.
    Regards
    Avinash Tauro

    Thank you for your reply.
    Does this mean that oracle stored procedures cannot be used at all in the J2EE environment. As even if I create the report using Crystal Reports 2008, I am unable to get it to work.
    However It works great on .NET.
    Since I can't use stored procedures, I've just copied the query to a bean and am executing it using jdbc. Also I am using the POJO method to link to the report.
    This is working fine, except for the maintainance headache, as I have about 25 stored procedures for reporting, with each having a pretty complex query.
    I guess I will convert all the stored procedures to front end based query mangement and use the POJO method to connect Crystal Reports.
    Any suggestions / recommendations would be helpful.
    Regards
    Avinash Tauro

  • Addon Crystal Reports (LINK)

    Dear Guys,
    some link for download addon crystal report grath than first verision (1), ????
    if yuoe have a link please give me,
    thanks
    Oscar

    What exact product are you looking for? Please explain a bit more what you need.
    I am not sure what you mean with Crystal Report 1.

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the ACL NT Security Field is 255 characters.  The full string of data to be returned can be much longer than the 255 limit and I cannot find how to manipulate that parameter. 
    I am currently on Crystals XI and Crystal XI R2 and have applied the latest service packs but still see the issue.  My Crystal Reports Database DLL for File System data ( crdb_FileSystem.dll ) is at Product Version 11.5.10.1263.
    Is it possible to change string limits when using the File System Data driver as the Data Source?  If so, how can that be accomplished.  If not, is there another method to retrieve information with the Windows File System Data being the Data Source?  Meaning, could I reach my end game objective of reporting on the Windows ACL's with Crystal through another method?

    Hello,
    This is a known issue. Early versions you could not create folder structures longer than 255 characters. With the updates to the various OS's this is now possible but CR did not allocate the same space required.
    It's been tracked as an enhancement - ADAPT01174519 but set for a future release.
    There are likely other ways of getting the info and then putting it into an Excel file format and using that as the data source.
    I did a Google search and found this option: http://www.tomshardware.com/forum/16772-45-display-explorer-folders-tree-structure-export-excel
    There are tools out there to do this kind of thing....
    Thank you
    Don
    Note the reference to msls.exe appears to be a trojan: http://www.greatis.com/appdata/d/m/msls.exe.htm so don't install it.
    Edited by: Don Williams on Mar 19, 2010 8:45 AM

Maybe you are looking for

  • Veiw Asset at plant level

    HI, Can you tell me how do I view the assets purchased for plants. I would also like to know how asset purchased for plant is booked at plant level. What is the utility of plant field at FB50 posting screen. Can it be made mandatory, if so, how would

  • Muvo TX FM Firmware Prob

    Hi, I just decided to update my firmware, I ran the program but it stalled out halfway, and said that it couldn't continue. Now it won't turn on or install when i plug it into my computer. Any suggestions?

  • How can I indirectly reference a worksheet?

    I'd like to extract data automatically from spreadsheets that I obtain on a daily basis. I'm pasting each spreadsheet into a new sheet with a summary sheet as sheet one so that I'll have one summary sheet for each month with thirty or so other daily

  • ERROR - Oracle call interface

    Hello, We are unable to connect to sqlplus on our Linux server. Errors: SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly Thanks..

  • Printing of pdf

    Hello, I want to print out a pdf document which I get from a server as a byte-stream. I don't want to display or preview it on the client but print it out right away. Is there a way to do this? Thank you very much! Matthias