Problem creating a SQL command object and adding it to a Crystal report

Hi,
I'm trying to add the following SQL command object with the following sql for MYSQL 5.1
SELECT lic.id, lic.productionname, comp.companyname, lic.paymentreceiveddate, lic.licenseissuedate,
IFNULL((SELECT sum(licsong.feequoted) from licensesong licsong where licsong.licenseid = lic.id), 0) as totalfeequoted,
IFNULL((SELECT sum(licsong.feetax) from licensesong licsong where licsong.licenseid = lic.id), 0) as totalfeetax,
IFNULL((SELECT sum(licsong.feequoted + licsong.feetax) from licensesong licsong where licsong.licenseid = lic.id), 0) as totalfee,
IFNULL((SELECT sum(pay.fullamount) from payment pay where pay.licenseid = lic.id),0) as totalpaid
FROM license lic
INNER JOIN company comp on lic.licensecompanyid= comp.id;
This sql runs fine in the Query Browser of mysql and returns what I want.
When I try to add this SQL command to a new Crystal Report, (by right clicking in the sql editor and selecting Crystal Reports - Add to new Crystal Report), it locks up my Eclipses and it ends up not responding. If I just do a simple SELECT * FROM license it works fine.
The Eclipse I'm using is from the CR4E download page with the crystal plugin already installed.
Any help with this would be greatful, as I am not having much joy with this CR4E 2.0 with MySQL and may have to scrap it and go back creating reports in Apache POI.
Any help greatly received.
Kind regards

Hi,
Try to select a particular columns instead of doing SELECT * FROM license.
Thanks,
Saravanakumar

Similar Messages

  • Mixing SQL Command parameters and UI created parameters

    Post Author: shecter
    CA Forum: Data Connectivity and SQL
    I'm using Crystal Reports XI.  I've created a report with an SQL Command - no other tables or views. I want to allow my users to be able to choose data from a dynamic parameter and have the SQL read that and spit out the results. I was able to add a parameter to the SQL using the Parameter column in the Command window. This allows my user to type in a parameter. However, when I run the report after creating a parameter using the UI (i.e. Field Explorer/Parameters/right clicking and selecting "new" and then adding the parameter to a field using the selection wizard), i first get a screen that shows me the parameter that I created in the SQL Command window, then I get a screen that shows me the UI created parameters. How can I make it show only one screen with all the parameters?  -Marc 

    Post Author: jenxia
    CA Forum: General
    SQL Command is :
    SELECT UNIQUE ContactID,  incomingAddress,applicationid,
    MediaStatus, MediaDirection, EndDateTime, StartDateTime
    FROM MMCAContactMediaViewwhere EndDateTime>= {?1-reportstarttime}  and  EndDateTime <= {?2-reportendtime}
    Order by ContactID
    Select formula using dynamic prompts as
    {Command.contactid} = {?ContactID} and{Command.applicationid} = {?ApplicationID} and{Command.incomingaddress} = {?IncomingAddress}

  • SQL Command Object

    We are in the process of migrating reports from SSRS to Crystal 2011.
    In SSRS we are able to paste complex SQL into reports as the data source for the report (e.g. multiple CTE's, correlated subqueries, temp tables, etc).
    It appears that we can accomplish the same thing using Crystal command objects, but the reports created have to be distributed as stand-alone rpt files to customers. In that case the reports that use sql commands return an error that the command object does not exist. It seems the command object exists in the data connection (which is generated at run-time in the host application) and not in the rpt file itself.
    Is it possible to somehow use an sql query as the data source in the report in a manner that is independent of the data connection?
    Thanks

    Hi, 
    That's interesting, the query shouldn't be stored in the data connection.  It should be saved inside the rpt as part of the SQL Query. 
    How are you distributing the reports? 
    How is your application connecting the reports to the database? 
    As long as the reports logon to the tables and objects used in the SQL Command exist on the database it should run without a problem. 
    As a test, open the report in Crystal and go to Database | Show SQL Query.  You should see your SQL Command there.  Copy and paste the SQL into your production database and see if it runs. 
    Good luck,
    Brian

  • Problem creating an sql query with a parameter which is a list

    Hi,
    Im having a problem creating a certain SQL query.
    The query looks like this:
    SELECT gstock_id FROM germplasm_stock gps, germplasm gp WHERE gps.germplasm_id = gp.germplasm_id AND organism_id IN ($childList:VARCHAR).
    the organism_id field is of DECIMAL type.
    the parameter childList is actually a list of Id's, something like: 123,124,789
    and it is created dynamically by an other function, so I cant just put it there staticlly.
    I tried using the ARRAY type instead of VARCHAR, but that didn't work,
    anyone knows how can I give this query a parameter which is a list of numbers ?
    Thanks

    I have tried all the following options and the same issue occurs:
    EXEC dbo.uspGetSiteChanges @ChangeVersion = ?
    With Parameter: 0, @ChangeVersion, ChangeVersion
    EXEC dbo.uspGetSiteChanges ?
    With Parameter: 0, @ChangeVersion, ChangeVersion
    In my first data flow I use the following and it works on two OLE DB Sources:
    EXEC dbo.uspGetSiteChanges @ChangeVersion = ?
    With:
    In my second data flow task, I use the same command and parameter mappings and it fails, very strange.

  • Possible bug in SQL Commands – object required

    Hello,
    I tried to run the following in the SQL Commands:
    select * from emp
    where empno = (select MIN(empno)
                 from emp
                 where empno > :ITEM)If memory serve, it was suppose to open a pop up window, and allow me to enter a value for the bind variable. What I'm getting is a run time error about object required. Am I missing something?
    Thanks,
    Arie.

    Hi Dimitri,
    Yes, you are correct. It's strange though, because I don't remember such a behavior in the past, and also with this current browser configuration, I don't seems to have any problems with date pickers or help windows. I should probably look into it a bit deeper.
    Thanks,
    Arie.

  • Problem with "PL/SQL Dynamic Content" and displaying rows

    hi,
    im new to APEX, and pl/sql [but not web dev or sql].
    ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
    maybe there's a better option for people who dont know pl/sql? i dont know?
    however, i think i can getting working with a little bit of help but im stumbling around in the dark a bit here.
    ok so this is the pl/sql ive come up with to show three example values on page 23 of my aplplication:
    BEGIN
    SELECT ID, NAME, OWNER
    FROM COM_MAILSHOTS
    INTO :P23_ID, :P23_NAME, :P23_OWNER;
    END;
    im getting the error:
    1 error has occurred 
    ORA-06550: line 5, column 21: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored
    thanks for reading!

    Metabaron wrote:
    hi,
    im new to APEX, and pl/sql [but not web dev or sql].
    ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
    maybe there's a better option for people who dont know pl/sql? i dont know?
    The easiest (and best) way to "display rows" is using a report. Dynamic PL/SQL regions are more complex and are required much less frequently.
    The Oracle® Database 2 Day + Application Express Developer's Guide tutorial explains how to create reports and other basic APEX techniques.

  • Problem creating non-persistent Child Objects

    I have the need to create a non persistable child object in the
    jdoPreStore of a parent object. I then perform some tests on the parent
    to determine if the child object needs to be persisted or not. If I leave
    the child non persistent it still writes to the database.
    I was performing the follwoing piece of code
    Class Parent {
    // The relationship is a 0 to many
    public Child createChild() {
    Child child = .....//create non persistent object
    child.setParent(this);
    getChild().add(child);
    It appears that if I remove the getChild().add(child). It does not
    persist (as desired).
    Is this correct behaviour?? I dont think that it should be, but if it is
    then I have a further problem.
    If that child object inherits from another object and you remove the
    getChild().add(child) kodo outputs an invalid object to the database. It
    doesnt insert a row to the child table. But it inserts a row to the
    childs inherited object table. This is now an invalid object and will
    fail upon loading.
    Any help on this would be appreciated.
    Thanks
    Luke.

    JDO has something called persistence by reachability. This means that
    objects do not have to explicitly be marked as to be persistent as JDO
    will traverse the object graph to ensure that all nodes are persistent.
    I think you are seeing this behavior combined with another side
    behavior: Kodo requires that both sides of a relation be set.
    Basically, keep your objects in synch (set both sides of the relation).
    And if you want to hold onto a reference to non-persistent object
    before you decide what to do with it, add a transient field or a field
    marked "persistence-modifier="none"" in your metadata and then process
    those transient fields in jdoPreStore ().
    i.e.
    if (//businessLogic is true)
    persistentField = transientField;
    Luke wrote:
    I have the need to create a non persistable child object in the
    jdoPreStore of a parent object. I then perform some tests on the parent
    to determine if the child object needs to be persisted or not. If I leave
    the child non persistent it still writes to the database.
    I was performing the follwoing piece of code
    Class Parent {
    // The relationship is a 0 to many
    public Child createChild() {
    Child child = .....//create non persistent object
    child.setParent(this);
    getChild().add(child);
    It appears that if I remove the getChild().add(child). It does not
    persist (as desired).
    Is this correct behaviour?? I dont think that it should be, but if it is
    then I have a further problem.
    If that child object inherits from another object and you remove the
    getChild().add(child) kodo outputs an invalid object to the database. It
    doesnt insert a row to the child table. But it inserts a row to the
    childs inherited object table. This is now an invalid object and will
    fail upon loading.
    Any help on this would be appreciated.
    Thanks
    Luke.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Code for Custom Business Object and Adding/Updating Data

    Hi,
    I would like to update/insert data thru Custom Business Object to sql Server.Pls let me know is it possible in MSA.If yes I would appreciate if you can share the code/Process in this forum.
    Thanks and Regds
    Harish

    Harish
    Depending on what data you update you need to do the following:
    If updating SAP tables or customer tables which are an extension of a SAP object like business partner, material, activity or similar:
    1. Create the extension of the data object via the easy enhancement workbench (EEWB). This will also create mapping functionality from MSA to CRM Server and extend the BDocs.
    2. Go to the BDoc modeler. Find the sBDoc for data exchange (type Write BDoc), that contains your object and check whether the new segment is there.
    3. In the Mobile Application Studio (MAS) you can now create a custom business object related to the standard sBDoc mentioned in 2 which is mapped to the new segment. This way the data exchange happens together with the main object
    4. Drag & drop the fields of the new BO to a new tile, and link that tile to the existing main object in the UI via the appropriate relation.
    If you would create a new business object / BDoc for a set of attributes belonging to a main object and not use an extension of the existing BDoc then the data would get its own flow and when replicating it would not come together with the main data. This can lead to data inconsistencies and in surplus effort administrating this data.
    If you have your own objects not related to a SAP object, you can do it the following way:
    1. Create your own table(s)
    2. Create a Write sBDoc on the table(s)
    3. Create BO's on each BDoc segment / table
    4. (as above)
    Hope this helps,
    Kai

  • SQL Command - Paramater and wildcard

    Post Author: edy80y
    CA Forum: Crystal Reports
    Hi All,
    I have successfully dumped an SQL into a 'Add Command' function and it returns the data exactly how i want it.  But now i want to add a parameter so that i dont have to manually update the date which is referenced 8 times.
    The TIME_KEY field is in this format YYYYMMDDHHMMWST (for 20/12/2007 2:30PM) = 200712201430WST
    I have used LIKE '20071220%' so it returns all rows within that one date.
    Now, i created a string parameter {?date) so i can enter '20071220' and i want to attach the wildcard (%) to the parameter.
    If i do any of the following it doesn't work:
    LIKE {?date} + '%'
    LIKE {?date} || '%'
    LIKE {?date} & '%'
    Here is the code:
    SELECT    "T1"."OBJECT_ID", "T1"."TIME_KEY",                          (SELECT     SUM("N_ANSWERED") AS "ANSWERED_ROLLING"                            FROM      "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"             WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ABANDONED_RING") AS "ABANDONED_RING_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ABANDONED_QUEUE") AS "ABANDONED_QUEUE_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ENTERED") AS "ENTERED_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ABANDONED_SHORT") AS "ABANDONED_SHORT_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ANS_IN_THRESH") AS "ANS_IN_THRESH_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%'),                           (SELECT     SUM("N_ABANDONED") AS "ABANDONED_ROLLING"                            FROM          "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T2"                            WHERE      "T1"."OBJECT_ID" = "T2"."OBJECT_ID" AND "T2"."TIME_KEY" <= "T1"."TIME_KEY" AND "T2"."TIME_KEY" LIKE '20071220%')FROM        "GENESYSIINET"."R_WFM_GRO_Q_NO_AGG" "T1"WHERE  "T1"."TIME_KEY" LIKE '20071220%'GROUP BY "T1"."OBJECT_ID", "T1"."TIME_KEY"ORDER BY "T1"."OBJECT_ID", "T1"."TIME_KEY"

    Post Author: yangster
    CA Forum: Crystal Reports
    putting the parameter within a single quote is incorrect if it is a string as it will look for a litteral reference to {?date} instead of the valueLIKE {?date} || '%'that should work np as you are con catting a string to another string with 0 to infinite number of characters followingwhat db are you using?

  • Any problems if run SQL Server 2005 and Essbase Server on 1 machine?

    <p>Hi, I would like to know if there's any problems in terms ofperformance when running SQL Server 2005 and Essbase Server on 1machine?</p><p> </p><p>Currently, my users are using Excel File (Lock & Send) toupload data to the Essbase Server and it took about 30 mins perexcel file upload. Application Manager is installed on client's andserver PC for adminstration.</p><p> </p><p>Now, I need to implement Datawarehouse and wish to installSQL Server 2005 on the current machine my Essbase Server isrunning. I will need to do simple SQL statements on the SQL Server2005 such as Update, Select, Insert etc.</p><p> </p><p>When comes to performance issues, will my current Essbase Serverbe affected? What if 2 users are accessing the Essbase Server andSQL Server at the same time? Will any data be lost in the midst ofextracting data?</p><p> </p><p>I hope someone can advise. Appreciate that. Thank you.</p>

    <blockquote>quote:<br><hr><i>Originally posted by: <b>roy_choy</b></i><BR><BR>Currently, my users are using Excel File (Lock & Send) to<BR>upload data to the Essbase Server and it took about 30 mins per<BR>excel file upload. <BR>I hope someone can advise. Appreciate that. Thank you.</p><hr></blockquote><BR>My test server is running both Essbase and SQLServer, but I think that you have a bigger problem.<BR><BR>If a lock and send is taking 30 minutes, you are using the wrong technology to load Essbase. You should really consider doing the load using a data load rule. If that isn't the problem, it may be that you are having a real performance problem. If you are moving enough data to require a half hour load, it should be probably be loaded from a text file, or even a spreadsheet, using a data load rule. Text file loads are a bit better than excel, especially when there are formatting issues. <BR><BR>Lock and sends are fine for changing parameters and doing adjustments, but heavy duty data loads really work a lot better with load rules.

  • MS SQL Server 6.5 / Visual Basic 5.0 / Crystal Reports 6

    I have an application written in VB5 using RDO and C++ calls
    accessing MS SQL Server 6.5 thru ODBC. The reporting environment
    is based on Crystal reports and Excel.
    Can anybody advise me if they have used the Migration Workbench
    to port the database / application and what if any issues they
    faced particularly in the area of the RDO. Any tips etc. would
    be much appreciated as I have a time constraint to meet.
    Many Thanks
    Mahant
    null

    I have the following OPENINFO string *GROUPS section of the ubbconfig file:
    OPENINFO = "msqlsrvxa1:Tm=TUXEDO, RmRecoveryGuid=7EC1A7F3-C304-11d3-B6DE-
    0000E86B6EEF"
    "Robert Patrick" <[email protected]> wrote in message
    news:[email protected]..
    Are you sure your OPENINFO string for the server group is correct in the*GROUPS
    section of the ubbconfig file?
    Abbas Tahir wrote:
    Hi,
    I'm developing an application using WLE4.2 (C++) under OS Windows NT4.
    The application is a C++ client accessing a C++ server, which in turn
    accesses a MS SQL 6.5 via XA Switch.
    But when I try to run the following command
    tmboot -yI get the following error messages:
    225611.A413B!TMS_MSSQL.254: LIBTUX_CAT:466: ERROR: tpopen TPERMERR
    xa_open
    returned XAER_RMERR
    225611.A413B!TMS_MSSQL.254: LIBTUX_CAT:1353: ERROR: tpopen failed -
    TPERMERR - resource manager error
    225611.A413B!TMS_MSSQL.254: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
    225611.A413B!TMSYSEVT.252: LIBTUX_CAT:1478: ERROR: .SysServerInit:
    TMS_MSSQL, group APP_GRP, id 30001 server initialization failure
    225611.A413B!tmboot.138: 011900: TUXEDO Version 6.5forWLE4.2 32-bitWindows.
    225611.A413B!tmboot.138: CMDTUX_CAT:825: ERROR: Process TMS_MSSQL atSITE1
    failed with /T tperrno (TPERMERR - resource manager error)
    I've already added the following line to the RM file in the directory
    WLE\udataobj:
    MSSQL_XA;msqlsrvxa1;XASWITCH.obj
    Please help me work around this problem.
    Thanks,
    Abbas Tahir

  • Error:When adding RDC runtime library (Crystal report XI R2) to Lotus notes

    Background : We have reporting feature implemented in one of lotus notes application using crystal reports 6 (OCX) and as Crystal report is going to be upgraded to CR XI version in my organisation, we need to implement the same using RDC component available in crystal XI . we have installed Crytal report XI R2 - SP 6 version for testing the integration.
    we are  referring a document available on SAP web site(attached below) that illustrates the steps required to integrate the Crystal Reports®  Report Designer Component into a Lotus® Dominou2122 application.  http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/509b02de-a81e-2b10-f598-822b6d6f2024?quicklink=index&overridelayout=true
    Steps which have been outlined for adding runtime library in lotus domino application is shown below:-
    1. In Domino Designer, add a Form to the application.
    2. In the programmeru2019s pane, go to the (Declarations) handler of the Form and enter:
       Dim App As Variant,    Dim Rep As Variant
    3. Select Create | Object and select the u201CControlu201D radio button in the u201CCreate Objectu201D dialog box that comes up. From the list of controls, select u201CCrystal Report Viewer Control.u201D This adds the control to the Form.
    4. Click on the control and select Edit | Properties. In the u201CAppletu201D properties dialog, select the u201CSize object to fit windowu201D radio button and then close the properties dialog.
    We are getting an error message while trying to add 'Crystal Report Viewer Control' control (illustated in Step 3 above) in the lotus notes form . Error message which we get is 'An error has occured while processing a request on an object'.
    Alternatively , we created the object of Crystal Report Viewer on lotus notes form by adding viewer object file (Crviewer.dll) from the file system  after selecting the u201CObject from a fileu201D radio button in the u201CCreate Objectu201D dialog box and added following code in the postopen event of lotus notes form .
    Set m_Viewer = Source.GetObject("Crystal Report Viewer Control")
    Set App = CreateObject("CrystalRuntime.Application")
    Set Rep = App.OpenReport(u201Cc:lotus
    otes
    ep.rptu201D)
    Set m_Viewer.ReportSource = Rep
    Again, when lotus notes form is opened , it gives error 'Variant does not contain object' at 'Set m_Viewer.ReportSource = Rep' .
    Can any one suggest us any workaround or if iit is not possible in CR XI R2 into a Lotus® Dominou2122 application. Also, can any one provide us sample code if CR 2008 version can be integatred with lotus notes.

    I believe, Lotus was never a "supported" development platform, though it did work - at one time or another. Eventually it did not and you are at that point. I think it was CR 10 where it started to be impossible to add the viewer to Lotus. This was never fixed and we never did find out if this was a Lotus thing or a CR thing.
    Re. CR 2008 and Lotus. The RDC has been retired in CR 2008, so no luck there either for you. The only SDKs available in CR 2008 are for .NET and Java.
    Ludek

  • Capturing and displaying user input in Crystal Reports

    Hi all,
    Iu2019m creating a crystal report with SAP as data-source and want to capture user input and display it on the report.  I have defined parameters to capture the input and added them to the report header.   I have then created formula fields to capture user input using the JOIN statement to accommodate multiple values.   Everything works well when users enter values for all the parameters, but when they leave some blank I get an error message u201CParameter value is nullu201D.
    Has anyone encountered this type of problem;  Anyone knows how to resolve this?

    Hi
    In parameter window make the Optional prompt to True.  And change make change in your record selection formula like this :
    (not HasValue({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ISNULL({?PrjMgr@SELECT Firstname,lastname FROM OHEM}) OR
    ({?PrjMgr@SELECT Firstname,lastname FROM OHEM} = '') OR
    {OHEM.firstName} = {?PrjMgr@SELECT Firstname,lastname FROM OHEM})
    Regards

  • How to Hide Fields and shrink group in a crystal report

    I am workling on a report that is looking for the top 15 accounts by state based on assets. I did that by creating a running total field and supressing anything where that running total field is greater than 15. However, my problem is that if the state has more than 15 I have blank space between that state and the next one. Any way to clear that blank space??
    Thanks for your time

    Hi,
    How you suppressed the particular section Which containing the Objects.
    Suppose you are displaying Accounts in Details section , Suppress the section itself with your condiotion.
    Selection Expert>Common Tab> Suppress-->x-2
    {#RTotal0}>15
    Regards,
    Salah.

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • Since installing snow leopard on my macbook itunes won't work

    Since I installed snow leopard my itunes wont open it comes up with an error message   The fiel "iTuneslibrary.itl" cannot read because it was created by a newer version of iTunes, Can someone help me through this.  Its very frustrating, I was forced

  • Can I share some, not all music, with other users on same iMac?

    Hi, I want to be able to share some musice with other users on the same iMac? Is it possible to do without having to share everything? Thanks, Crankyhead.

  • MySQL no longer working

    This seems to have appeared with the 10.7.4 update (from Combo), but it can be shear coincidence. I'm facing a problem with mySQL, and I'm not sure what's involved as some other issues are cropping and I don't know what's the basic issue that's trigg

  • Automator bugs: freezing after Take Video Snapshot action

    Hi there- Just testing out some of my automator workflows, and it seems that some basic (built-in) automator actions no longer function under Mountain Lion. Running the action "Take Video Snapshot" pops up a mini window that can take a user's photo.

  • How to convert update,delete statement into select stmt

    Hi all,      I have a field called dml_stmt, i am getting the dml statement has input from the user.      My requirement is, if user is giving "update set col_name = 'xyz' from table_name where codition = 'aa'", before updating the table, i need to g