How to change crystal report data field at runtime ?

Hello everyone,
I have a Crystal Report file ,which i am using to generate report for my windows form project .
In that report i have a filed called as Quantity which data type is set as decimal, the requirement is like that the number of value those comes after decimal point that should be set according to the value which is given by the user at the run time .
For eg: If user gives 1 at the run time then the report Qty field value set one value after decimal point. Like 12.1
if user gives 2 then Qty field the value is 12.22 like tat  but user can give from zero to any number.. and if it is zero it should not show decimal
Note: The main idea hear is how to change the filed in Crystal Report decimal point value by using code(or we say writing code we need to set manually as user input it will change)
Can any body help me how to solve this issue .
S.K Nayak

I think you could probably make the field you see a formula field and take a parameter as the number of decimal places.
totext converts a number to a string.
totext({decimalField}, 2)
That's 2 decimal places.
You could probably substitute a {parameter} for that 2.
If not then you could substitute an entire formula.
To explore formulas:
foreach (FormulaFieldDefinition f in rpt.DataDefinition.FormulaFields)
MessageBox.Show(f.Name);
// f.Text = your new formula
Where rpt is an instantiated report.
Or add another string field which you display in the column and do the calculation with the original decimal.
Hope that helps.
Recent Technet articles:
Property List Editing;  
Dynamic XAML

Similar Messages

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • 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

  • 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

  • Setting Crystal Report data source at runtime

    In advance, I've read all of the posts on here about dynamically changing the data source for your report at runtime and none of it seems to work.
    I developed a report against my development database using an MySQL ODBC connection. At runtime I want to pull the data from the production database. I've tried clearing the DataSourceConnections. I've tried the SetDatabaseLogon as well as Table.LogOnInfo, Table.ApplyLogOnInfo, SetConnection, everything.
    I am using the pull method for getting the data, so CR has entire control over the mechanism used to fetch the data.
    But when I am setting some other data source I am greeted with a logon screen for the database, I i check use itegrated security then it says logon failed and if I uncheck use integrated security checkbox then it shows unable to load report and an exception is thrown
    Anyone have any ideas? I'm using Visual Studio 2010 and Crystal Reports 2011 developer edition.Apart from this my Database is in mysql and I am binding report with the MySQL Procedure.
    Note: Both these database just differ in name, Infact they are same database just I have changed the name, so the procedure and the fields are same.
    Thanks in advance.

    So if ODBC doesn't allow me to change the data source, can't it be done in some other way without mingling with each and every report.
    BDW I am able to change the data-source at designer mode,
    Currently the connection string being used is
    private readonly ConnectionInfo crConnectionInfo = new ConnectionInfo
                DatabaseName = "DB NAME",
                IntegratedSecurity = true,
                Password = "admin",
                ServerName = "localhost",
                UserID = "root"
    I just want it to read from same copy of database place at some other location so the connection string will be modified as
    private readonly ConnectionInfo crConnectionInfo = new ConnectionInfo
                DatabaseName = "Same copy of database record may change but structure will be same",
                IntegratedSecurity = true,
                Password = "admin",
                ServerName = "IP address of the machine",
                UserID = "root"

  • How to set Crystal Report  command timeout in runtime ?

    Hi, All !
    I have a report that is generating timeout error during execution command (Crystal Report command with SQL query). How can I set timeout  for the  command from application code ? I am using CR 12 and C#  (.NET framework 2.0)
    I have investigated CommandTableClass (CrystalDecisions.ReportAppServer.DataDefModel.CommandTableClass) but I didn't find timeout property or simething like that.
    Please help.
    Thank you in advance.
    Edited by: Bonowow on Feb 24, 2010 11:38 AM
    Edited by: Bonowow on Feb 24, 2010 11:42 AM

    I do not believe there is such an API. How long does it take before you get the timeout?
    Ludek

  • How to configure crystal report xml file as data source in BOE in Solaris?

    Hi,
    How to configure crystal reports from xml file as data source in Solaris? I didn't find any suitable driver for xml / excel files for sun solaris.
    Which driver i have to use to connect xml file to crystal report to view my crystal report in solaris BOE?
    And the same way excel file as data source for crystal report.
    Thanks

    Hi Don thanks for the reply,
    In windows environment I donot have any problem when creating crystal report from Xml file and Excel file. After creating reports when I publish those into boe server in solaris, getting connection failed error.
    My solaris BOE server doent have any network connection with windows machines. So i have to place the files in solaris server.
    Below the steps what I tried:
    1. Created crystal reports from cr designer in windows using ADO.Net(xml) and in another try with Xml webservices drivers. Reports works well as it should.
    2. Saved in BOE repository in Solaris server from crystal reports and changed database configuration settings as:
        -Used custom database logon information and specified cr_xml as custom driver.
        -Chnaged database path to file directory path according to solaris server file path </app/../../>
        -tried table prefix also
        - Selected radio button use same database logon as when report is run saved.
    My environment :
    SAP BOXI3.1 sp3
    crystal reports 2008 sp3
    SunOS
    Cr developing in windows 7.
    For Excel I tried with ODBC in windows but I can't find any ODBC or JDBC drivers for Excel in solaris.
    Any help to solve my issues
    Thanks
    Nagalla

  • How to buld Crystal report using data from Bex query

    Hi,
    I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
    Thanks,
    Chandra

    Hi Chandra,
    Here is the docuemnt which explains you in detail about the steps to create Cyrstal Report using BEX Query.
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948&overridelayout=true
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Regards
    SIndhu

  • Universe based Crystal report date prompt appears as DateTime

    I have faced this issue in all XI versions and was hoping there is a solution for this in XI 3.1 and/or Crystal 2008.
    There is a date dimension in a universe which is tied to a datetime datatype on the backend SQL server field.  If a Crystal report (XI,2008) uses this date dimension as a prompt, the prompt created in Crystal report is of type Date Time and therefore when the report is ran, the required syntax for this prompt is with timestamp.  There was a fix for a similar issue in XI R2 Fix Pack 3.3 by creating a useDateInsteadOfDateTime registry key and setting its value to the DSN of the ODBC based universe connection.  I could never get that to work by the way.
    Any ideas on how to change the prompt data type to Date without the timestamp in XI 3.1 and Crystal 2008 reports?
    Thanks.

    Hi Farhan Jaffery 
    Have you tried to change the object defination in universe level and crate a prompt and check. 
    Also try to use Add Command to retrive the database field with only date and create a prompt.
    Thanks,
    Sastry

  • How to do crystal reports in bi-7 i need  clear steps

    how to do crystal reports in bi-7 i need  clear steps

    Hi,
    Please read the following documents.
    I am sure that this is going to help you in creating crystal reports.
    Regards,
    Subha
    Pls grant me points if it is found useful
    Use
    The Reporting Agent allows you to precalculate BEx queries (as “useful queries”) for Crystal reports in the background. This is a device used to improve system performance when executing Crystal reports.
    Prerequisites
    ·        In the BEx Query Designer, you have defined a “useful query” for Crystal Reports and determined variables for the required characteristics.
    ·        You may want to apply a filter when precalculating this “useful query” using a control query (see “Parameter Filtering” in the section below). In this case, you need to have created an additional suitable query in the BEx Query Designer.
    The associate variable must have the type “Changeable with Query Navigation”. Other variables can have any type.
    Procedure
           1.      Choose the REPORTING_AGENT transaction code.
           2.      Select Precalculating Crystal Reports Queries and choose Execute.
           3.      Navigate to the required query in the left-hand Reporting Agent Settings tree.
           4.      You have the following options for creating a new setting:
    -         Choose New Setting from the context menu.
    -         Choose  Create New Setting.
    The New Reporting Agent Setting dialog box appears.
           5.      Enter a technical name and a description.
    The following information is displayed on the General tab page:
    -         The functional area of the setting is Precalculation of Crystal Reports Queries.
    -         Information about the query for which you are creating a setting is shown under the Query group header (description, technical name, InfoProvider).
    -         After the setting has been saved for the first time, the system displays details of the last person who changed the setting and the time this change was made, under the Last Changed On/By group header.
    -         Under the Setting is Used in Packages group header, the system displays information about the packages in which the setting is used, and how they are scheduled. This information can only be displayed if you have defined the setting and assigned one or more scheduling packages to it.
           6.      Choose the Parameters tab page.
           7.      Determine whether precalculation of the Crystal Reports queries are to be parameterized using a filter and using variants.
    For more information and recommendations for choosing parameters in a straightforward example, see Parameterizing Crystal Reports Queries Setting.
    Filtering Parameters
    No Filters
    When you do not want to use a control query to precalculate variables, choose No Filter.
    You can combine this option with parameterization using Variables (see below).
    Explicitly Using Query Result
    If you want to use a control query when filtering, choose Explicitly Using Query Result. You can now make entries in the Control Query and Variants fields.
    Specify the technical name of the control query. Input help is available. After you save your entries, the system updates the information according to your selections.
    You only need to specify a variant when the control query contains input-ready mandatory variables. This does not happen very often, however.
    You can combine this option with parameterization using Variables (see below).
    Parameter Variants
    After making your setting for filtering a parameter, you can process variant for the individual characteristic values of the variables set in the „useful query“.
    Note: The variable screen only offers such variables when they have not already been filled by the control query. (This can also include variables of type “Changeable with Query Navigation”, as long as they aren’t filled by the query).
    You can choose from the following functions:
    Create a Variant
    A dialog box appears in which you can choose values for the SAP variables used in the “useful query”, in the Query Selection area. Input help is available for those InfoObjects for which SAP variables have been created.
    Enter the required data.
    Choose  .
    Change Variants
    Delete Variants
    If you have already created one or more variants, the system lists these in the lower part of the screen. Choose the variants you want to change or delete and choose the appropriate function.

  • Xcelsius - Crystal Report Data Consumer connection Issues

    Sorry for the long post but i hope with the full explaination, i can get a quick answer & solution.
    Using Crystal Reports 2008 and Xcelsius 2008 Engage, SQL 2008 stored procedure.
    I have tested the Crystal Reports Data Consumer connection within the Xcelsius program, using the following steps :
    1. Create a stored procedure that returns the Continent Name and the Count of Projects within each Continent.
    2. Create a Crystal Report using the stored procedure, 2 columns in the Details section, column names in the Page Header section.
    3. Save and export this as an Excel spreadsheet.
    4. Open the Xcelsius program, new file and import spreadsheet. Column A is the Continent Name, Column B is the Count.
    5. Without altering the spreadsheet, I created a graph using the data imbedded. i.Bar Graph, series and row selections. Ii. Pie chart with row data selection. Iii.Column data as series and row selections.
    6. Created a Crystal Report Data Consumer connection using the data imbedded within then spreadsheet. The column A as the u201CRow Headersu201D & column B as the u201CDatau201D. Took quite a while to get the right combination of selected components so that the preview actually showed the data and the corresponding data labels. The Legend still hasnu2019t shown up.
    7. Save and Export as Flash (swf) file.
    8. Close Xcelsius and open Crystal Reports.
    9. Open the same report used to create the spreadsheet and Insert -> Flash, choosing the newly created swf file.
    10. Link the data displayed On the Crystal Report to the Flash file now embedded, using the Flash Expert. Have tried both with the data listed on the Report, and the data listed as the result of the stored procedure.
    11. Previewed and the Data shown on the Graph does match the data listed within the Details section of the Report.
    12. I then altered the stored procedure to add u201C1u201D to all counts, and refreshed the Crystal Report. (I cannot add new data to the underlying database/tables, due to various other folks & projects using that same database.)
    13. The listed data does change to match the changes within the procedure.
    14. The Data labels on the Graph do change to match the changes within the procedure.
    15. The Actual Displayed Data within the Graph Does Not change to match the changes within the procedure.
    I have attempted this with a pie chart, a bar and column charts with the same affect.
    I have searched the web, printed out 4 different examples on how to make this work and still it is hit or miss. I still can not get the legend to show up, either in the preview or the within the Crystal Reports. When I preview the graph before adding the Crystal Report Data Consumer connections, it does work.
    Please someone tell me, What am I missing here ? 
    Thanks in advance for your help.

    http://www.****************/Tutorials/BI/Xcelsius/Index.htm
    http://www.resultdata.com/Company/News/Newsletter/2008/aug/Articles/Xcelsius/Using%20the%20Xcelsius%20Crystal%20Report%20Data%20Consumer.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10161e25-c158-2c10-3086-ad502098b36b?QuickLink=index&overridelayout=true
    http://codesforprogrammers.blogspot.com/search/label/How%20to%20suppress%20blank%20row(s)%20in%20detail%20section%20of%20the%20report%3F
    http://www.businessobjects.com/pdf/product/catalog/crystalreports/cr_xc_integration.pdf

  • Using Crystal Report Data Connection in Xcelcius 2008

    The documentation does not explain how data to populate row, column and details is passed to SWF.
    Can some-one please point how CR Data Connection when created in Xcelcius 2008 is used in Crystal Report Design time ? Is it through Flash variables? Basically more details are needed for "when setup properly" clause. How to map Crystal Reports Fields to Xcelcius Definitions.
    Thanks
    Harish Tejwani
    From Doc:
    "With the release of Crystal Reports 2008, it is now possible to embed an Xcelsius-generated SWF file into a Crystal Report and have the SWF consume data from that report. When set up properly, refreshing the data in your Crystal Report will update the embedded SWF.
    To configure your Xcelsius SWF to consume data from its Crystal Rport source data, you must open the Data Manager in Xcelsius and add a new Crystal Report Data Consumer connection. After adding the connection, bind the following ranges to your spreadsheet:  Row Headers, Column Headers, Data"
    "Using Crystal Reports 2008, embed the SWF file into the Crystal Report source data file. When designing your Crystal Report, you will determine what fields/data populate the Row Headers, Comumn Headers, and Data ranges that were designated in your Xcelsius SWF. When set up properly, refereshing your Crystal Report will also refresh the data being sent to and consumed by the embedded SWF. See"

    <div class="content">
    <p>
    Please check the following post to see if there is a solution to the issue you are experiencing:
    </p>
    <p>
    <a href="/node/19014"><span style="color: #0063af">http://diamond.businessobjects.com/node/19014</span></a>
    </p>
    </div>

  • How to trigger crystal report from SAP ECC

    Hi All,
    I hope i m right forum to ask this question.
    we want to do label printing from Crystal reports. data will be present in SAP ECC .
    So I below issues
    1 ) how to connect SAP ECC database with Crystal Reports.
    2 ) how to trigger print output in Crystal reports from ECC , lets say I create a Delivery In ECC , the print output will be issued to Crystal report and I should get a print out Immediately ( for printing - printer will be connected to local system and SAP network printer ) .
    I have worked  with this type of scenario in smarforms , adobeforms. but not with Crystal Reports ...
    Regards
    Yashpal Gupta.

    Hi Yashpal,
    First thing you need to do is install the Connector on both your work station where you run Crystal Reports as well as the SAP Server where the data is.
    So I moved your post to the SAP Integration Kit forum.
    Need to know what version of Crystal Reports you are using?
    Search of browse here, lots of info on how to...
    Thanks
    Don

  • Load linkage error - "com/crystaldecisions/sdk/occa/report/data/Fields"

    We had installed and were using Crystal Reports for Eclpse with JBoss 4.2.  We recently upgraded to JBoss 5.1  Our crystal reports do not work from the web interface anymore.  The error we get is:
    Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebCtxLoader$ENCLoader) previously initiated loading for a different type with name "com/crystaldecisions/sdk/occa/report/data/Fields"
    It looks like there might be a class conflict with JBoss jars?  Any ideas on which jars to look at would be really appreciated.  Any other ideas or suggestions on what this error might be?
    Thank you.

    Based on the supported platforms document, I don't believe that JBoss 5.1 is on the list of application servers that are supported by Crystal Reports For Eclipse Version 2.  I believe that the versions of JBoss that are supported are 4.2 and 5.  By not supported, it means that SAP BusinessObjects hasn't tested and certified against these versions.
    As for the error, I'm not sure which jar file would be causing the conflict.
    Regards.
    - Robert

  • Defining multiple Crystal Report Data Consumer connections?

    I am creating a Xcelsius object that uses data from Crystal Reports.
    To do that, I define Crystal Report Data Consumer connection. With this I can use Crystal to connect to the data source, create table of data (crosstab) and pass it to the flash object.
    But I can only define one such connection. Why can't I define more that one?
    I would like to pass two different sets of data and use them in different parts of the dashboard. Trying to get all the data into a single crosstab may not be possible.
    Is there another way to do this?
    Thanks.
    Tim

    I have found that I can pass any number of tables of data from CR to XC using flashvars, either XML or CSV.
    XML is easy, but you chew up 17 chars (64 bytes) in XML chars per column marker. And with a 64KB string max, you're left with at most 1K data points, and that's with no data!
    CSV is old school XC 4.5, converting an array in to a row-order string, not nearly as convenient as a Crystal Report Data Consumers, but it works and you have only a 4 byte overhead per column (the comma.)
    Converting cross-tabs to strings, though, can be a bear because cross-tabs are evaluated column-order and you may not know how many columns you are going to have.
    So use the Crystal Reports Data Consumer for the intricate cross-tab and CSV flashvars for the other tables.
    And then hope it all loads in less than 7 seconds.
    Tim

Maybe you are looking for

  • (ABAP) Program

    Hi Experts Could you please update me with the start routine for the below scenario. I had 2 DSO PAS--> DSO A Delta>DSO B DSO A (Active Table: /BIC/AZDSOA999) DSO B (Active Table: /BIC/AZDSOB999) Key Fields in DSO B : ZLOC,ZEMP_ID Data Fields in DSO

  • EP/J2EE Process Monitoring in Solution Manager

    Hello I am currently in the process of connecting our EP system to solution manager.   My question relates to monitor sets in RZ20.  I have added our EP system to a custom monitor set.  By default the system is configured to monitor the 3 main proces

  • Using SSIS Script task to populate data from one table to another

    I have two tables Table A and Table B. Need to insert data into Table B from Table A. First, I truncate Table B and then insert. Few columns in Table A and Table are similar. However, I need to join with other tables Table C, Table D etc with Table B

  • Dual-boot Lion/SL, Mac App Store has Conflict

    I decided to dual-boot my MBP17" (8,3) with SL to add OS Lion. In Lion when I signed in to the Mac App store, it recognized apps on the SL partition, and wouldn't let me download them for Lion! It only allows for updates! Suggestions on dealing with

  • Re-import IMAP messages to Mail

    I am trying to get messages from a local backup of my imap-account to show up in Mail and to get uploaded to the mail server. When I copy the emlx-files to the mailbox folder, the messages do not show up in Mail. I also tried setting up a dummy accou