Crystal Report Database Query

Hi I would like to ask regarding queries from the database. I have 2 main tables that gets their images from 1 master table.
First is TASK table and Second is ASSET table. Both tables are relational.
Each Task has Asset connected by Task_Asset_ID.
But both tasks and each assets may have also images from the Image table thru Assignment table. But I am wondering how could I query the data to show tasks with images and assets with images in one row.
For example
Task 1 may have Green.jpg
Asset 222 may have Red.jpg
Knowing that Task and Asset are relational, is it possible to show them in one row in crystal report?
Task
TaskID
TaskName
Task_Asset_ID
1
Task1
111
2
Task2
222
3
Task3
111
Asset
AssetID
AssetName
111
Asset1
222
Asset2
Images
imgID
ImgName
1
Red.jpg
2
Yellow.jpg
3
Blue.jpg
4
Green.jpg
Assignment
AssID
TaskOrAssetID
ImgID
Type
1
1
4
X
2
222
1
Z
3
3
3
Z
4
111
2
X

Ok, this is going to get a bit complicated, but this is possible.  The problem is that the Assignment table records can have either TaskID or AssetID, so you're going to have to use some tables twice with aliases.
Here's what I'd do...
In the Database Expert:
1.  Add all of the tables to your report.
2.  Add a second copy of Assignment and Images - when you do this, Crystal will warn you that the table is already in the report and ask if you want to "alias" it.  At that point it will add the table with "_1" at the end of the table name.  So, you'll have Assignment_1 and Images_1.
3.  On the linking tab, create the following links:
     Task.Task_Asset_ID to Asset.AssetID
     Task.TaskID to Assignment.TaskOrAssetID - make this a left outer join (see below)
     Assignment.ImgID to Images.ImgID - make this a left outer join
     Asset.AssetID to Assignment_1.TaskOrAssetID - make this a left outer join
     Assignment-1.ImgID to Images_1.ImgID - make this a left outer join.
To make a left outer join, right-click on the join and select "Join Options".  Select "Left Outer" and save the join.  Left outer joins will provide data even when there is no matching value in the table that you're linking to - the values from that table will be null.
In your report:
1.  Put the following column headers on the report:
     Task Name
     Task Image
     Asset Name
     Asset Image
2. Put the following fields in the details of the report:
    {Task.TaskName}
    {Images.ImgName}
    {Asset.AssetName}
    {Images_1.ImgName}
3. Sort the data by Task Name and Asset Name.
-Dell

Similar Messages

  • Seagate Crystal Reports: Database Error

    I am using Crystal reports Version 8 and frequently get the error 'Seagate Crystal Reports: Database Error' when I try to open a previously working crystal report file. The error occurs when I click on the Database menu. Every time I get this error I end up redesigning the report as the I have not yet found a solution and I cant run the report.
    The error is a message box with the title 'Seagate Crystal Reports: Database Error' and an ok button - nothing else.
    Its very frustrating!
    Please help.
    Thanks.

    Hi,
    What database are you using and how are you connecting to it? 
    What are you clicking in the Database menu:  Set Location, Verify Database, Show SQL Query?
    Before opening the report, can you connect to the database first then open the report? 
    I would have expected an error code or a more descriptive error to follow. 
    Thanks,
    Brian

  • Crystal Report-BW Query free characteristics missing

    Hello,
    I am working on a crystal report against BW query, I am using SAP menu to build the report. I see that free characteristics not coming into the crystal report.
    Question1: Is this an issue or is it designed to work this way?
    Question2: As an alternative for this In BW query I have changed all the free characteristics into rows, now I am able to see all the fields but the data is becoming flat, when I try to role up the data for cretain fields it does not work correctly. Example: Role up of Rates (%). With database delegation option in webi role up work fine there but what about in crystal?
    Thanks

    Hi,
    you are most likely using the old driver. make sure in the Settings in the SAP Toolbar you activate the option to use the MDX Driver.
    ingo

  • Crystal Report Database connection problem in CMC

    Dear All,
    We are using Business Objects XI 3.1, Crystal Report 2008 SP1 for report development. Crystal reports are generated using SAP BW Query.
    Where in, once you have published Crystal report to Enterprise server and open the same using Infoview it gives error saying "database logon failed, check user name password"
    Did checked the database config tab in CMC there was no password and "Prompt user name password" option was enabled as well. when we type the password at the password text box, it is not accepting the same to store at the text box insted keep enpty always.
    Please let know what is the issue and guide me to over come the same.
    Thanks in advance.
    Regards
    Murugesh

    Hi,
    Is the account that runs the services of BOE on your OS able to ping the DB server. It may also lie in the fact that you have to do the correct setup steps for the SAP Integration Kit. Have you installed and configured this between your BW and BOE environment?
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken

  • Crystal Reports DataBase Fields

    Hi,
    I'd like to know if is possible to set the query string and the DataBase when you want to open a Crystal Report from SBO.
    Thanks.

    You cannot set the database connection string from the SBO connection information because the password is encrypted.
    But if can grab the password from somewhere else you can do it like this:
        private void SetConnectionInfo(CrystalDecisions.Shared.ConnectionInfo crConnectionInfo, ReportClass report)
          TableLogOnInfo crTableLogOnInfo;
          report.SetDatabaseLogon(conn.UserId, conn.Password, conn.Server, conn.Database);
          crConnectionInfo.ServerName = conn.Server;
          crConnectionInfo.DatabaseName = conn.Database;
          crConnectionInfo.UserID = conn.UserId;
          crConnectionInfo.Password = conn.Password;
          foreach(Table table in report.Database.Tables)
            crTableLogOnInfo = table.LogOnInfo;
            crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
            table.ApplyLogOnInfo(crTableLogOnInfo);
            string s = table.Location;
            s = crConnectionInfo.DatabaseName + "." /*dbo." */ + table.Location.Substring(table.Location.LastIndexOf(".") + 1) ;
            table.Location = crConnectionInfo.DatabaseName + "." /*dbo."*/ + table.Location.Substring(table.Location.LastIndexOf(".") + 1) ;
    Hope this helps,
    Jurgen

  • Crystal reports "Database login failed" when using push method

    I have a web application (ASP.NET, .NET v3.5), that pushes data to a CR 2008 report. On two servers one of the three reports returns a "Database login failed" error. I am stumped since there is no login, it's push not pull; in addition the problem is hard to debug since it works fine from my developers workstation. I have "updated" the xsd in that report, reinstalled the app, etc., non of which helped. If anyone has a solution or even ideas I'd appreciate the help.

    What about following the troubleshooting steps as described in the blog;
    Create an XML file off of your dataset. Make sure this is done just before you set the dataset to the report:
                rpt.Load(rptPath)
    myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
    rpt.SetDataSource(myDataset)
    Copy the above created XML to your development system
    Open the problem report in the Crystal Reports designer
    In the Desigger, go to the Database menu and select u201CSet Datasource Locationu201D
    In the u201CReplace with:u201D pane, expand the u201CCreate New Connectionu201D folder.
    Double click the u201CADO .NET (XML)u201D icon
    Browse to the location of the XML file you created in step (1)
    Click on the path to the XML. The <Update> button should enable
    Click on the <Update> button
    Typically, either of the following will happen:
    You will get a u201CMap Fieldsu201D dialog. This indicates that the XML written off of your dataset does not match what the report is expecting. This may be due to incorrect fields name, incorrect field type, etc. You will now need eliminate the difference.
    Incorrect data or no data. There is an issue with your dataset and you need to determine why the data is not present in your dataset. Looking at the XML may be a good place to start.
    Ludek

  • Crystal report database logon failed through ODBC in report

    Please see viewpage.cs in type = "FPR"  in my web application
    https://sourceforge.net/projects/aspchequesprint/
    is it my program code problem ?
    i edited as following also not work, when i update with crystal report 2008 sp1 it said version is too low
                    TableLogOnInfo crTableLogonInfo = new TableLogOnInfo();
                    for (int i = 0; i < objRpt.Database.Tables.Count - 1; i++)
                        crTableLogonInfo.ConnectionInfo.ServerName = "Cheque";
                        crTableLogonInfo.ConnectionInfo.DatabaseName = database_name;
                        crTableLogonInfo.ConnectionInfo.UserID = "sa";
                        crTableLogonInfo.ConnectionInfo.Password = "fa920711";
                        objRpt.Database.Tables<i>.ApplyLogOnInfo(logOnInfo);
                    TableLogOnInfos crTableLogonInfos = new TableLogOnInfos();
                    crTableLogonInfos.Add(crTableLogonInfo);
                    CrystalReportViewer1.LogOnInfo = crTableLogonInfos;

    can not load database info after edit the code in above link
    i use p2sodbc.dll it said can not load database info,
    error at objRpt.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
    is the code correct?
    public partial class _Default : System.Web.UI.Page
            private ReportDocument objRpt = null;
            protected void Page_Unload(object sender, EventArgs e)
                if (this.objRpt != null)
                    this.objRpt.Close();
                    this.objRpt.Dispose();
            protected void Page_Load(object sender, EventArgs e)
                CrystalReportViewer1.HasToggleGroupTreeButton = false;
                CrystalReportViewer1.HasToggleParameterPanelButton = false;
                CrystalReportViewer1.HasPrintButton = true;
                CrystalReportViewer1.HasDrilldownTabs = false;
                CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
                CrystalReportViewer1.PrintMode = CrystalDecisions.Web.PrintMode.ActiveX;
                string database_name = "Cheque_Test";
                string odbc_name = "Cheque";
                string db_username = "martinhylee";
                string db_password = "fa920711";
                objRpt = new ReportDocument();
                string reportPath = @"C:\michael\access_test\Cheque\Ada\Reports\Report1_85.rpt";
                objRpt.Load(reportPath, OpenReportMethod.OpenReportByTempCopy);
                //'Create a new Stored Procedure Table to replace the reports current table.
                CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
                //'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
                PropertyBag boMainPropertyBag = new PropertyBag();
                //'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
                //'In the main property bag (boMainPropertyBag)
                PropertyBag boInnerPropertyBag = new PropertyBag();
                //'Set the attributes for the boInnerPropertyBag
                boInnerPropertyBag.Add("Connect Timeout", "15");
                //boInnerPropertyBag.Add("Data Source", "MyDataSource");
                boInnerPropertyBag.Add("Data Source", odbc_name);
                boInnerPropertyBag.Add("DataTypeCompatibility", "0");
                boInnerPropertyBag.Add("General Timeout", "0");
                //boInnerPropertyBag.Add("Initial Catalog", "MyCatalog");
                boInnerPropertyBag.Add("Initial Catalog", database_name);
                boInnerPropertyBag.Add("Integrated Security", "False");
                boInnerPropertyBag.Add("Locale Identifier", "1033");
                boInnerPropertyBag.Add("MARS Connection", "0");
                boInnerPropertyBag.Add("OLE DB Services", "-5");
                boInnerPropertyBag.Add("Provider", "SQLNCLI");
                boInnerPropertyBag.Add("Tag with column collation when possible", "0");
                boInnerPropertyBag.Add("Trust Server Certificate", "0");
                boInnerPropertyBag.Add("Use Encryption for Data", "0");
                //'Set the attributes for the boMainPropertyBag
                //boMainPropertyBag.Add("Database DLL", "crdb_ado.dll");
                boMainPropertyBag.Add("Database DLL", "p2sodbc.dll");
                boMainPropertyBag.Add("QE_DatabaseName", "VEPILOT");
                boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
                //'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
                boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
                boMainPropertyBag.Add("QE_ServerDescription", "MyServer");
                boMainPropertyBag.Add("QE_SQLDB", "True");
                boMainPropertyBag.Add("SSO Enabled", "False");
    Edited by: Don Williams on Jul 12, 2011 8:47 AM

  • How to Change Crystal Report database name from visual basic code?

    Hi all,
    I have created a Crystal Report (CR)  with .NET VB. I also have developd some UDTs for that pusrpose and everything is OK.
    However I cannot use the same CR in another Company which has the same UDTs. I have not found how Connect to Company (in other words change the DB the report reads).
    Any Idea?
    Thanks,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Jul 19, 2008 6:07 PM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:27 AM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:28 AM

    Hi Vangelis,
    Here's a simple VB class that has functions for setting the login details for the report and passing parameters.
    Option Strict Off
    Option Explicit On
    Public Class CrystalFunctions
        Enum ParamType As Integer
            Int
            Text
        End Enum
        Public Shared Sub SetCrystalLogin(ByVal sUser As String, ByVal sPassword As String, ByVal sServer As String, ByVal sCompanyDB As String, _
               ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oDB As CrystalDecisions.CrystalReports.Engine.Database = oRpt.Database
            Dim oTables As CrystalDecisions.CrystalReports.Engine.Tables = oDB.Tables
            Dim oLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            Dim oConnectInfo As CrystalDecisions.Shared.ConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo()
            oConnectInfo.DatabaseName = sCompanyDB
            oConnectInfo.ServerName = sServer
            oConnectInfo.UserID = sUser
            oConnectInfo.Password = sPassword
            ' Set the logon credentials for all tables
            For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                oLogonInfo = oTable.LogOnInfo
                oLogonInfo.ConnectionInfo = oConnectInfo
                oTable.ApplyLogOnInfo(oLogonInfo)
            Next
            ' Check for subreports
            Dim oSections As CrystalDecisions.CrystalReports.Engine.Sections
            Dim oSection As CrystalDecisions.CrystalReports.Engine.Section
            Dim oRptObjs As CrystalDecisions.CrystalReports.Engine.ReportObjects
            Dim oRptObj As CrystalDecisions.CrystalReports.Engine.ReportObject
            Dim oSubRptObj As CrystalDecisions.CrystalReports.Engine.SubreportObject
            Dim oSubRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            oSections = oRpt.ReportDefinition.Sections
            For Each oSection In oSections
                oRptObjs = oSection.ReportObjects
                For Each oRptObj In oRptObjs
                    If oRptObj.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                        ' This is a subreport so set the logon credentials for this report's tables
                        oSubRptObj = CType(oRptObj, CrystalDecisions.CrystalReports.Engine.SubreportObject)
                        ' Open the subreport
                        oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName)
                        oDB = oSubRpt.Database
                        oTables = oDB.Tables
                        For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                            oLogonInfo = oTable.LogOnInfo
                            oLogonInfo.ConnectionInfo = oConnectInfo
                            oTable.ApplyLogOnInfo(oLogonInfo)
                        Next
                    End If
                Next
            Next
        End Sub
        Public Shared Sub SetCrystalParams(ByVal sFieldName As String, ByVal iDataType As ParamType, ByVal sVal As String, ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oFieldDefs As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions
            Dim oFieldDef As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition
            Dim oParamVals As CrystalDecisions.Shared.ParameterValues
            Dim oDiscreteVal As CrystalDecisions.Shared.ParameterDiscreteValue
            oFieldDefs = oRpt.DataDefinition.ParameterFields
            oFieldDef = oFieldDefs(sFieldName)
            oParamVals = oFieldDef.CurrentValues
            oParamVals.Clear()
            oDiscreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue()
            Select Case iDataType
                Case ParamType.Int
                    oDiscreteVal.Value = System.Convert.ToInt32(sVal)
                Case ParamType.Text
                    oDiscreteVal.Value = sVal
            End Select
            oParamVals.Add(oDiscreteVal)
            oFieldDef.ApplyCurrentValues(oParamVals)
        End Sub
    End Class
    And here's how you would use them:
    ' Create an instance of the Crystal report
    _rptCrystal = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    _rptCrystal.Load(_oSBO.AddonPath + "\Reports\MyReport.rpt")
    ' Call SetCrystalLogin to see the logon information for all report tables
    CrystalFunctions.SetCrystalLogin(sUser, sPassword, _oSBO.SboCompany.Server, _oSBO.SboCompany.CompanyDB, _rptCrystal)
    ' Set my report parameter value
    CrystalFunctions.SetCrystalParams("MyParam", CrystalFunctions.ParamType.Int, 999, _rptCrystal)
    ' Print the report straight to the printer                          
    _rptCrystal.PrintToPrinter(1, False, 0, 0)
    The other way to approach this solution would be to base your Crystal report on a .NET dataset rather than a database connection. However, as you've already written your report, the code above is going to be simpler to implement.
    Kind Regards,
    Owen

  • Crystal report command query

    Hi expert,
    regarding crystal report query,im still new in crystal report,actually i want to make report join with table opor,por1,opor,oitm,oshp,nnm1,ocrn,por10 and octg.im face difficulty when want to join por10.then i join with por10.docentry = por1.docentry with table por1 and por1.visorder = por10.aftlinenum and im not sure it correct or not.im just want to make condition like this
    if (T1.U_CSUS_Size = '') and (t2.LineType = 'T') then it will show (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp + ' ' + t1.U_CSUS_Size) else (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp) and joining (from POR1 T0 
    INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    inner join por10 T2 on T0.docentry = T2.docentry and T0.visorder = T2.aftlinenum)
    for 'u_csus_.....' is for udf i created.can i know how easier step for this condition.i also already try alot of query.sometime can make duplicate column.
    regards,
    Arif
    Edited by: Ahmad Arif on Jan 10, 2012 4:03 AM

    Dear Anmad Arif
    Try the below query
    SELECT
                          (CASE WHEN  (T1.U_CSUS_Size = '') and (t2.LineType = 'T') THEN
                    (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp + ' ' + t1.U_CSUS_Size)AS NVARCHAR(1000))
                   else T1.[Dscription] End) AS [Description],                      
                    T1.VisOrder,
                    (CASE WHEN T1.[Quantity]<=0 THEN  NULL ELSE T1.[Quantity] END) AS Qty,
                    CAST(ISNULL(T3.UserText, '''') AS VARCHAR(MAX)) As ItemDesc,
                        T1.Currency, T3.SuppCatNum,
                        (CASE WHEN T1.linetotal<=0 THEN NULL ELSE T1.linetotal END)  as amount,
                    (CASE WHEN T1.[price]<=0 THEN NULL ELSE T1.[price] END) AS  Rate,
                    T3.UserText,
                    T0.DocEntry,
                    ISNULL(T1.U_Unit, T3.SalUnitMsr) AS SaleUnit,
                    ISNULL(T3.BuyUnitMsr, '''') AS PurchaseUnit,T1.VisOrder,'' LineSeq,'' aftLineNum,
                    ISNULL(T0.U_QText,'') AS QText,T1.U_QRR as QRR
              FROM     OPOR T0
                    RIGHT OUTER  JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
                        RIGHT OUTER  JOIN OITM T3 ON T1.ItemCode = T3.ItemCode
                        LEFT OUTER JOIN dbo.OSCN AS T4 ON (T0.CardCode=T4.CardCode AND T1.ItemCode=T4.ItemCode)     
              WHERE   T0.Docnum = '4063'
    UNION ALL
              SELECT  CAST(ISNULL(T1.LineText, '') AS VARCHAR(MAX)) AS [Description],
                    T1.AftLineNum,
                    NULL Qty,
                    null,
                    null ,NULl ,NULL,
                    null Rate,
                    NULL,
                    T0.DocEntry,
                    null,
                    null,T1.OrderNum,T1.LineSeq,AftLineNum,'' AS BPCatlog,
                    null
              FROM     OPOR T0
                    RIGHT OUTER  JOIN POR10 T1 ON T0.DocEntry = T1.DocEntry
              WHERE   T0.Docnum = '4063'
                         And T1.LineText IS NOT NULL 
    Note : Change the DocNum= DocKey When you use Crystal report  As per your requied
    Regards
    Kamlesh

  • Crystal report design query

    Hello,
    I am using Crystal reports 10 to design a report using an SQL database source.
    There are 2 tables causing problems in that once fields from both of them are added to the detail section, the data is duplicated.  The reason for this is table2 has a field (rulename) which can have multiple outcomes such as the basic example below:
    table1.id,table2.rulename,table2.decision
    1,postcodecheck,accept
    1,secuitycheck,notchecked
    1,creditcheck,notchecked
    2,postcodecheck,accept
    2,secuitycheck,accept
    3,creditcheck,accept
    3,postcodecheck,accept
    3,secuitycheck,decline
    3,creditcheck,notchecked
    If I group the report by table1.ID it removes the duplicated records but only displays one of the 'rulename', usually accepts.   A record sort of this field either retain the same result or replaces it with any table2.decision outcome of 'notchecked'.  A more lengthy task would be to create formula fields for each rulename but having quite a few of this means its a very manual job.
    Is there a better way to do this?  I have not used the select expert because I want to display all decisions (table2.decisions).
    Also if I create a crosstab report, each record is counted by the number of rulenames per ID, again duplicating each record (table1.id)
    Thanks,WA

    Hi Wasim,
    Just try to check whether u have used proper link or not.
    Database Expert->Link.
    Regards,
    Misra P.

  • How to bring Picture from OHEM table into Crystal Report using query

    Hi expert
    i had a query and which is attached to a crystal report, and its working fine,
    the thing what i need is to bring the picture which is stored in OHEM table, (Employee Photo)
    to the report. in the query i had attache the picture field. but not able to see it over the Crystal reprot
    The below given is the query
    select OHEM.empID,isnull(OHEM.firstName,'')+' ' +isnull(OHEM.middleName,'')+ ' '+isnull(OHEM.lastName,'')AS [Employee Name],
    OHPS.name AS [Position],OUDP.Name AS [Department],OUBR.Name AS[Branch],OHEM.U_SponsName,OHEM.U_EMPOLD_ID,OCRY.Name AS [Nationality],
    OHEM.U_JoinDate As [Joining Date (G)],OHEM.U_JoinDateH As [Joining Date (H)],OHEM.birthDate, (CAST(DATEDIFF(day,OHEM.birthDate,GETDATE())/(365) AS int)) As [AGE],(CAST(DATEDIFF(day,OHEM.startDate,GETDATE())/(365) AS int)) As [Year],
    OHEM.startDate As [Emp Contract Start Date (G)],OHEM.U_CEDate As [Emp Contract End Date (G)],OHEM.U_ConType As [Emp Contract Type],
    OHEM.U_ContDur AS [Emp Contrat Duration],OHEM.U_CRDate As [Emp Cont Renewal Date (G)],OHEM.U_IQId AS [Iqama ID],OHEM.U_IQIsDate As [Iq Issue Date (G)],
    OHEM.U_IQExDate As [Iq Expiry Date (G)],OHEM.U_IQIsDateH As [Iq Issue Date (H)],OHEM.U_IQExDateH As [Iq Expiry Date (H)],OHEM.U_InsType As [Insurance Type],
    OHEM.U_InsExpDate AS [Insurance Exp Date],OHEM.U_InsName As [Insurance Company],OHEM.U_DestiCity As [Destination City],
    OHEM.U_TicketType As[Ticket Type],OHEM.U_TicketClass As [ Ticket Class], OHEM.U_TravelDate As [Travel Date],OHEM.passportNo,OHEM.U_PassportIsDate AS [Passport Issue Date],
    OHEM.passportEx AS [Passport Expiry Date],OHEM.U_BSal As [Basic Salary], OHEM.U_HoAllow As [House Allowance],OHEM.U_TrAllow As [Transport Allowance],
    OHEM.U_FoodAllow AS [Food Allowance],OHEM.U_CarAllow AS [Car Allowance],OHEM.U_OthAllow As [Other Allowance],OHEM.U_BonusAllow As [Bonus],
    OHEM.U_VacStartDate1 AS [First Vacation Start Date], OHEM.U_VacEndDate As[ First Vacation End Date],OHEM.U_VacResDate As [First Vacation Resume Date],
    OHEM.U_VacDur AS [First Vacation Duration],OHEM.U_VacStartDate2 As [Second Vacation Start Date],OHEM.U_VacEndtDate2 AS [Second Vacation End Date],
    OHEM.U_VacDur2 As [Second Vacation Duration],OHEM.U_VacResDate2 AS [Second Vacation Resume],OHEM.U_VacStartDate3 AS [Third Vacation Start Date], OHEM.U_VacEndtDate3 As[ Third Vacation End Date],
    OHEM.U_VacRestDate3 As [Third Vacation Resume Date],OHEM.U_VacDur3 AS [Third Vacation Duration],OHEM.U_VacStartDate4 AS [Fourth Vacation Start Date],
    OHEM.U_VacEndDate4 As[ Fourth Vacation End Date],OHEM.U_VacResumeDate As [Fourth Vacation Resume Date],
    OHEM.U_VacDur4 AS [Fourth Vacation Duration],OHEM.U_VisaDuration AS [Visa Duration],OHEM.U_VisaStartDate AS [Visa Start Date],
    OHEM.U_VisaEndDate AS [Visa End Date],OHEM.U_VisaType As [Visa Type],OHEM.picture,OHEM.remark,OHEM.attachment,OHEM.mobile AS [Mobile],OHEM.homeTel AS [Residence Tele],OHEM.email AS [E-Mail] from OHEM
    left outer join OHPS ON OHEM.position=OHPS.posID
    left outer Join OUDP on OHEM.dept=OUDP.Code
    left outer join OUBR on OHEM.branch=OUBR.Code
    left outer join OCRY on OHEM.citizenshp=OCRY.Code
    Pls suggest how to make it appear the photo in the crystal report
    regards

    Hi,
    Please refer this how to guide which may give some idea for creation formula:
    http://www.pioneerb1.com/wp-content/uploads/2012/04/How-to-work-with-Crystal-Reports-8.8.pdf
    Thanks & Regards,
    Nagarajan

  • JSP & Crystal Reports Database Problem

    Hi all,
    I hava problem with refreshing the crystal report web viewer if the report retrieves data from DB.
    If I don't refresh the report, it shows the report with default parameters. But when I refresh the report (I mean viewer.refresh()) it gives an error which says it could not found the JNDI.
    Do you have any idea about it ???
    Thanks in advance.
    Ismail TURK.

    So it can't find the JNDI name.
    What JNDI name is it looking for?
    How are you connecting to the database in the Crystal Reports developer.
    How It works on my machine. [long spiel]
    For some reason I was never able to get a JNDI connection throught the CR10 developer. It kept giving me error messages. But I DID manage to connect to Oracle via the standard Oracle TNSNames interface.
    When I tried loading the report in the browser, it looked for a JNDI name the same as the TNSName. Dunno why.
    The issue is that Tomcat stores the JNDI datasources under java:/comp/env/.
    And I couldn't configure the report to look in that initial context.
    My hack of a solution: load the JNDI datasource myself, and then bind it into the place where Crystal Reports looked:
    So I had
    1 - a TNS Name entry called REPORT_DB which the report designer connected to
    2 - a JNDI entry REPORT_DB defined in Tomcat
    <%
    Context initContext = new InitialContext();
    System.out.println("binding");
    try{
    Object obj = initContext.lookup("REPORT_DB");
    catch(NamingException e){
      System.out.println("Naming exception " + e);
      Context envContext  = (Context)initContext.lookup("java:/comp/env");
      DataSource ds = (DataSource)envContext.lookup("REPORT_DB");
      initContext.bind("REPORT_DB", ds);
    System.out.println("bound");
    %>Maybe this might help you, maybe not.
    Cheers,
    evnafets

  • Crystal Reports连接BW Query时出错

    错误提示为:
        Database Connector Error: "BAPI Error #:0  Error occurred when starting the parser: timeout during allocate / CPIC-CALL"
    软件版本:
        Crystal Reports 2008 sp2
        SAP IK 3.1
    在SAP NOTES 1369523中找到了相同的症状描述, 但提供的解决方案太笼统了.
    顺便提一下, BW系统的结构是 数据库 与 应用 分离的结构, 即数据库在一台服务器,而应用部分在另一台服务器.
    请问大家有什么更好的解决方案么?

    除了楼上所提到的检查点之外
    还请确认: CR2008 SP2需要和相应的SAP IK XI31 SP2一起使用,请确认IK也打了SP2, SAP server端也使用上了SP2的transport.
    Best Regards
    Carlos Chen

  • Crystal report license query

    1)      Do Company A (which is a group of companies consisting of Company 1 u2026.. Company N), require the Developer License only, and distribution to its group company  is free?
    2)      If u2018Company 1..Company Nu2019 are sub-companies of Company A then does 'Company 1', u2026.. , 'Company N' require full engine of Crystal Report 2008 or just the run time engine is sufficient?
    Do they require license for the same, even if they just use the run time engine?
    3)      In case where 'Company 1',u2026., 'Company N' purchase a license, in that case, does 'Company A' still needs to purchase the developer license?
    4)      According to you what would be the best license option, so that there is no burden on 'Company 1',u2026.., 'Company N' and also on parent company A?
    Pls advise
    Thanks
    simmy

    These questions are better posed to the sales team; 866-681-3435
    To start with, the licensing is different for web apps and win apps. Also licensing is different depending on what version of CR you are using. I'll set you up with a few resources and if these do not answer your questions, you will have to contact sales for more info.
    For CR 2008 see the following:
    http://www.sap.com/solutions/sapbusinessobjects/sme/reporting/crystalreports/licensing/index.epx
    /people/blair.wheadon/blog/2009/02/05/announcing-crystal-reports-developer-advantage-runtime-license
    https://ecohub.sdn.sap.com/irj/ecohub/solutions/crystalreportsdevadvantage#pricing
    For bundled versions of CR see the following:
    http://support.microsoft.com/kb/317789
    Also, see the following forum thread from Blair Wheadon who is a PM for CR:
    CR 2008 Licensing Question
    Ludek

  • Crystal reports - charting query

    Hi.
    I have a database with the following fields:
    'companyname' which contains the values:
    company1
    company2
    company3
    company4
    company5
    company6
    'value' which contains the company values:
    11
    14
    16
    13
    72
    26
    and a 'date' field.
    I have created a CReport that displays information between the dates specified. I am displaying a bar chart with the company names on the x-axis and values on the y axis.
    So i specify a 'from' and 'to' date to display the data and it returns a graph with data.
    On the x-axis is company3, company4, company5.   This then means that company1, company2 and company6 have a value of zero between the dates specified, thus the graph doesnt display those company names.
    Im wondering how i can get it to display all the company names (company1 to company6) and for company 1, company2 and company6, just display a value of zero?
    Please can you help me with this?
    thank you.
    J

    If the rest of the report is dependant on filtering the data based on the date but you still want to show company names that have no data for that date range then you could insert a subreport that returns all data (or filters it down to the 6). Create a formula that outputs the value if the datefield falls within the date range and outputs 0 if it does not. Use this formula as the value field in the chart.

Maybe you are looking for

  • Transfering an app bought on one device to another with a different OS

    I bought Pages and downloaded it to my ipad. The user license says I am permitted to use that app on all my devices. How do I transter it to my macbook?

  • How to repair in another country?

    Hello! I live in Russian Federation. One year ago (Jan 5, 2012) I've purchased a Nokia Lumia 800 on Ebay from a UK seller. A month ago the phone has refused to charge and (consequently) to power on. I brought it to a local official certified Nokia re

  • SSL Implementation not available

    I am using JSSE1.0.2 and I am trying to create a URLConnection to a HTTPS Site. When I compile the application it throws an IO Exception that returns "SSL implementation not available". So far I have added the reference to the Security Provider in th

  • Modest stopped working - N800 Maemo 4

    Heya everyone. I really need some help here. I reflashed my device several times and have tried to set up my GMail account using IMAP. These are the default settings. Incoming imap.gmail.com SSL (IMAP4S) Port 993 When viewing the certificate, I'm see

  • Hi all i am trying to use a Connect by prior clause

    Hi all, In my connect by prior clause i have a query. I want to pass the values to the query from my outer query. Can this be done in Oracle.Can any help me in this.Also Pasting my query for your reference SELECT rct2.trx_number      , rctl2.customer