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

Similar Messages

  • Hi Expert , crystal report export problem. system not responding

    Hi,
    crystal report export problem. system not responding.
    Thanks
    Rajkumar Gupta

    Dear Raj,
    Please try this
              Try
                Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
                Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
                Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
                Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                rptDoc.Load(rptPath)
                rptView.ShowExportButton = True
                rptView.ReportSource = rptDoc
                For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
                    oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                Next
                For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
                    For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
                        If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                            oSubReport = rptObject
                            rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
                            For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
                                oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                            Next
                        End If
                    Next
                Next
                'Setting Paper
                Dim rawKind As Integer = 0
                Dim printSet As New System.Drawing.Printing.PrinterSettings
                For i As Integer = 0 To printSet.PaperSizes.Count - 1
                    If printSet.PaperSizes.Item(i).PaperName.ToUpper = PaperName.ToUpper Then
                        rawKind = CInt(printSet.PaperSizes.Item(i).RawKind)
                        Exit For
                    End If
                Next
                Dim MyTest As New SaveFileDialog
                rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
                rptDoc.ExportToStream(ExportFormatType.Excel)
                'rptDoc.SaveAs("C:\TBKING.xls", True)
                '''How to export the report
                Try
                    Dim CrExportOptions As ExportOptions
                    Dim CrDiskFileDestinationOptions As New _
                    DiskFileDestinationOptions()
                    Dim rename As String
                    rename = rptName.Replace(".rpt", "")
                    Dim CrFormatTypeOptions As New ExcelFormatOptions
                    CrDiskFileDestinationOptions.DiskFileName = _
                                                "c:\Report\" & rename & "_Export_File.xls"
                    CrExportOptions = rptDoc.ExportOptions
                    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.Excel
                        .DestinationOptions = CrDiskFileDestinationOptions
                        .FormatOptions = CrFormatTypeOptions
                    End With
                    rptDoc.Export()
                Catch ex As Exception
                    MsgBox(ex.ToString)
                End Try
                '' end by kevin shah
                rptView.Show()
                rptView.ShowExportButton = True
                Dim oFrm As New System.Windows.Forms.Form
                rptView.DisplayGroupTree = True
                rptView.Dock = System.Windows.Forms.DockStyle.Fill
                rptView.Location = New System.Drawing.Point(0, 0)
                oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
                oFrm.Controls.Add(rptView)
                oFrm.Name = "Report Viewer"
                oFrm.Text = "Report Viewer11"
                oFrm.ResumeLayout(True)
                oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
                oFrm.TopMost = True
                oFrm.ShowDialog()
            Catch ex As Exception
                objMain.objApplication.MessageBox(ex.Message)
            End Try
    By pressing this button XLS file be generated on C:\report\
    Hope this will resolved the issue
    Thanks
    Kevin

  • 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 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 Report Login Problem

    I am using Visual studio 2008 and crystal report 2008 in a web application.
    I have problem in logging to the database from crystal report by applying the connection info for the runtime (Connect to ODBC DSN).
    I got this error: System.Runtime.InteropServices.COMException: Logon failed.Error
    Dim CrystalReport1 As New ReportDocument*
    CrystalReportSource1.Load(path)*
    Dim conn As ConnectionInfo = New ConnectionInfo*
    conn.UserID = "UserID"*
    conn.Password = "Password"*
    conn.ServerName = "DSN Name"*
    conn.DatabaseName = ""*
    For Each crTable As Table In CrystalReport1.Database.Tables*
    Dim tblLocation As String = crTable.Location*
    Dim tloi As TableLogOnInfo = crTable.LogOnInfo*
    tloi.ConnectionInfo = conn*
    crTable.ApplyLogOnInfo(tloi)*
    crTable.Location = tblLocation*
    Next*
    For i = 0 To fieldName.Count - 1*
    CrystalReport1.SetParameterValue(fieldName(i), Fieldval(i))*
    Next*
    CrystalReportViewer1.ReportSource = CrystalReport1*
    CrystalReportViewer1.DataBind()*
    I am using oracle providers for ASP.net
    *+<membership defaultProvider="MyOracleMembershipProvider">+*
    *+<providers>+*
    *+<add name="MyOracleMembershipProvider" type="Oracle.Web.Security.OracleMembershipProvider,Oracle.Web,Version=2.111.6.20, Culture=neutral,PublicKeyToken=89b483f429c47342" connectionStringName="conn_string" applicationName="AppName" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="4" minRequiredPasswordLength="6" passwordAttemptWindow="8"/>+*
    *+</providers>+*
    *+</membership>+*
    *+<roleManager enabled="true" defaultProvider="MyOracleRoleProvider">+*
    *+<providers>+*
    *<add name="MyOracleRoleProvider" type="Oracle.Web.Security.OracleRoleProvider,                Oracle.Web, Version=2.111.6.20, Culture=neutral,                PublicKeyToken=89b483f429c47342" connectionStringName="conn_string" applicationName="AppName"/>*
    *+</providers>+*
    *+</roleManager>+*
    I noticed that when I disable the provider from my project, the reports works fine
    Anybody knows how to solve this?

    If you are looking for a reporting solution that's easy-to-use including connecting with Oracle databases just install the ADO.NET Oracle connector), that's why we created the Windward Report Engine. Companies need a powerful, secure enterprise-level .NET reporting engine to back their critical reporting and document generation systems.
    The Windward Engine installs easily, runs on one or more servers as part of your server-based application, and can easily produce hundreds of thousands of reports per day on a single server. The server is a pure .NET product (and also is available as Java/J2EE).
    Even better news for you guys: When combined with the Windward report design tools AutoTag and AutoTag Max, users design, schedule and run reports from within Microsoft Office. That means you can turn over reporting to the business group and get back to more interesting work.
    You don't have to take my word for it. Check out our [robust .NET reporting engine|http://www.windwardreports.com/dot_net.htm?source=pday909&campaign=pday909&utm_source=everyr&utm_medium=post&utm_campaign=pday909&id=304] for yourself.

  • Crystal report display problem--urgent

    i am trying to display to display crystal report in jsp page..
    i have mentioned the entries in web.xml as below
    <env-entry>
              <env-entry-name>clientSDKOptions</env-entry-name>
              <env-entry-value>C:\ProgramFiles\Common Files\Crystal Decisions\2.0\jars\clientSDKOptions.xml</env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
         </env-entry>
         <env-entry>
              <env-entry-name>crystal_image_uri</env-entry-name>
              <env-entry-value>/crystalWeb/crystalreportviewers/</env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
         </env-entry>
    crystalWeb is webproject folder.
    waiting for an earlier response.
    thanks to all
    krish..
    [11/05/04 11:01:33:164 GMT+08:00] 41c3089e WebGroup I SRVE0180I: [crystalWeb] [crystalWeb] [Servlet.LOG]: /CrystalReportsInteractiveViewer.jsp: init
    [11/05/04 11:01:40:404 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/css/default.css has not been defined
    [11/05/04 11:01:40:444 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/search.js has not been defined
    [11/05/04 11:01:40:515 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/fw_menu.js has not been defined
    [11/05/04 11:01:40:525 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlogo.gif has not been defined
    [11/05/04 11:01:40:555 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mviewlist.gif has not been defined
    [11/05/04 11:01:40:575 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:40:585 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:595 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mnextgrey.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:675 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mgotopage.gif has not been defined
    [11/05/04 11:01:40:685 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mexport.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/msearch.gif has not been defined
    [11/05/04 11:01:41:045 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprint.gif has not been defined
    [11/05/04 11:01:41:055 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mzoom.gif has not been defined
    [11/05/04 11:01:41:065 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlastgrey.gif has not been defined
    [11/05/04 11:02:21:463 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelpover.gif has not been defined
    [11/05/04 11:02:25:940 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined

    Possibly it's a path problem try to rewrite env-entry-value for clientSDKOptions with either double backslashes or simple slashe.
    Furthermore the blanks in the path migth be a reason for your problem.
    David

  • Crystal report authetication problem

    Dear experts,
    I have problem in my one of client regarding Crystal reports. crystal reports working fine in all other client machine but only one client machine system give the database logon failed error. please guide me.
    Thanks In advance

    Hi,
    Please refer thread:
    How could we solve this error "failed to retrieve data from the database"?
    Also check SAP note:
    1533412 - "Failed to login to database" error
    Thanks & Regards,
    Nagarajan

  • Customized Crystal Report execution problem in Win 7

    Hi Experts,
    I am getting a screen of Server : Database : Userid : Password while attempt to run a customized crystal report from Win 7 based platform. In the screen database selection option is inactive so it is not possible to select the databse.
    The OS of user PC has been formated recently current OS is Win 7 and before that it was XP running fine. Is it a report problem or any other problem please guide??
    SK

    Hi ,
    are you running report from SAP ? if so , Run SAP as administrator(right click on SAP icon and click run as administrator) and run report - it will work fine .
    if ypu are running report directly from crystal report , run crystal report as administrator.
    or change crystal report connection from SAP business one to OLEDB and update datasource.
    Thanks,
    Neetu

  • Crystal report ReportPageViewer problem using Stored Procedure

    Hi,
    I'm using the ReportPageViewer component in my jsf page, to visualize cystal reports on my web application.
    Everything is working fine when my crystal report queries a table. But, for performances issues, we've changed this to use a stored procedure.
    However, when trying to run the report from my jsf pages, I obtained the following error:
    The QE parameter ''{0}'' could not be found.
    The parameters are exactly the same as before. I can see in the Reportsource that I'm passing to the ReportPageviewer that all the parameters are set with the proper values.
    When running the report from crystal report, I obatin the results, using the same database login/password than my web application.
    Any help would be really appreciated!
    Thanks,
    M�lanie

    Hi Andy Hendrickson,
    Let me understand your problem correctly.
    1) When you run the procedure from command prompt the table gets populated. It is clear.
    2)When you run the procedure in before report trigger you get nothing. Let us analyze why but for now it is clear.
    3) What you mean by "I run the procedure from the command line and leave the data, then run the report I get updated data in the table, but nothing returned to the report."
    Can you please explain a bit more and also update code snippets of what you are using ?
    Thanks,
    Vinod
    Oracle Reports Team

  • 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

  • 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

  • Xcelsius, Live Office, and Crystal Reports Migration Problem

    Hi Experts,
    I have a problem when migrating Xcelsius dashboards from dev environment to production environment. In my dev environment, I have Crystal Reports which are published from BW dev environment and Xcelsius dashboards consuming the data in these Crystal Reports.
    When I try to migrate from dev environment to production environment, I first transport Crystal Reports from BW dev environment to BW production environment and publish them to BOE production environment from BW production environment. Then I use Import Wizard to migrate Xcelsius dashboards from BOE dev environment to BOE production environment. But this way, the live office connections inside the Xcelsius dashboards break because the underlying Crystal Reports cannot be found.
    The other option I can think of is migrating Crystal Reports using Import Wizard rather than transporting them to BW production environment and publishing them to BOE production environment from there. After the migration using Import Wizard, modify the database connection of these reports in CMC. I usually do this for Crystal Reports connecting other data source than BW. I haven't tried this with BW reports yet, because I think publishing is the right way to do it.
    I'm on BO Edge 3.0, Crystal Reports 2008 V0, and Xcelisus 2008 SP1. And I don't have much upgrade options. Currently, I can only upgrade to BO Edge 3.1 and I don't think that makes any difference.
    So how do you migrating Xcelsius dashboards, connecting to BW Crystal Reports via Live Office connection?
    Thanks,
    Robin

    Edge 3.1 has quite a few bug fixes over 3.0 and then I believe you would want CR2008 SP1. But without upgrading anything BO products usually link information via unique identifiers such as the SI_CUID, If you use the IW for everything this is sure to be preserved. If not then I do not know but a good possibility from your symptoms is the CR SI_CUID may have been changed by the way you migrated it. If you are unable to make progress you may consider opening an incident with the BO deployment team but if it's a bug you will need to upgrade to 3.1.
    Regards,
    Tim

  • Crystal Report Preview Problem

    Dear All,
    I have done a crystal report for Sales Quote and imported using Administration-->Setup-->General-->Reports and Layouts.
    It shows that the report is imported successfully but when i go and give print preview, it shows an error as "LogOn Failed Please Try Again".
    I dont know why this error occurs.
    But the other reports are working well.
    Help me solving this issue.
    Regards,
    Janani

    hi
    Janani..
    Actually i never Seen This Type of problem..
    I have one Doubt May be u have Developed in ur system n then import it to the client server..
    before importing have u change the login credentials....
    After i search i got below link just have a look on below post If it's not use ful just ignore the mail....
    System asks for SA Password when printing with Crystal Reports

  • SAP 8.8 Crystal Report Layout problem in client workstation

    Hi Experts,
    We have import crystal report to SAP Business One as Form Layout or AP Invoice. We have already created the token DocKey@ so it would automatically be printed and will not ask for the document number. The layout works fine using the server workstation but in the client workstation we cannot proceed with the printing because when we click on the preview button, a login window appears with this details:
    Database Login
    Server Name : gray out or not active
    Database: gray out or not active
    Login ID: active
    Password: active
    We tried to enter the SQL login but fails.
    Is there any components that we need to install in the workstation before it could function the same way as PLD?
    Thanks,
    Janice

    You can try creating the ODBC connection, which is the same as on the server.
    Assuming this is the scenario:
    1. You write the invoice using crystal report on the server
    2. On the server, Control Panel--> ODBC, you have created an ODBC link eg; SAPB1.
    3. The report is connecting to ODBC link and pointing to database OECUS
    On the client workstation, you need to create:
    1. Control Panel--> ODBC, you need to create an ODBC link as on the server.

Maybe you are looking for

  • Problem of uploading data in Data Warehouse

    I am using Oracle9i Warehouse Builder on Windows 2000 and i just started working in it. I am facing problem in uploading data from source schema to Target schema      I) Created Source Moulde -- Link to One schema from where i have get data      2) C

  • Special G/L indicator H is not defined for down payments

    Can Any body help me please... I am giving the error details when i am posting Speical GL in F-37. Actually i want to post a Security Deposit made against Customer. Special G/L indicator H is not defined for down payments Message no. F5053 Diagnosis

  • Bapi or user-exit to create warning in invoice

    Hi, I was askes to create a warning whenever someone pushes delete within an invoice (mir7). The problem is that our users are not aware, that they are really going to delete not only the marked position within the invoice but the whole invoice. I´ve

  • PERL calling PL/SQL using ORacle, error tracking.

    I have a PERL script that makes a call to an sql script which updates an Oracle database; it all worked fine under Oracel 7.3.4, but it's now choking on Oracle 8.1.7. We can work around it, but in addition to it choking, their was the additional prob

  • Slow bootup and kernel panic on every shutdown

    2.8GHz Core 2 Duo - Mid 2009 4GB Ram 10.5.8 / 10.6.8 Computer takes about 10 minutes to start up, once it is up it runs noramlly. When I go to shutdown, i get a slow window shade effect followed by a kernel panic message. This process runs like clock