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

Similar Messages

  • How to change Group Header Font in Crystal report Left Most Group Tree?

    Hi Dears!
    I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is visible towards the left side of report viewer.Means all the Group Tree Items that are visible when we click  Toggle Group Tree button on Crystal report Viewer.
    I have goggled a lot but unable to find any hint. Any idea or help would be highly appreciated .
    Thanks in advance.

    look for information on drilldowngrouplevel function. this is available in versions 9 and higher.
    i cant test it in mine to give you the syntax, but you would need to create another section and conditionally surpress the section on the drilldowngrouplevel function. hope this helps

  • How  to add a new option for group by in a excel report

    Hi,
    there is a enhancement in a excel report
    I need to add a new option for group by
    help me
    Regards,
    Raghu

    k

  • How to add a field in sales order header

    Hi all,
    I need to add a custom field say a check box in sales order header in additional data B tab.
    let me know step by step.
    Points will be rewarded.
    Thanks.
    Ramya

    additional data B in sales order
    sales order - Additional data B
    Add new fields to Additional Data B tab in sales order
    Reward Points..

  • How to add custom buttons in the tool bar of the crystal reports viewer

    Hi,
    I'm using Crystal report viewer (Crystal 2008) in my report and I want to add custom buttons and handle them in the tool bar of the viewer. Is there anyway to achieve this?
    Please help me in this regard.
    Thanks in advance.
    Siva.

    I did this by adding a picturebox to the toolbar, the same size as the buttons, and loading in an image, and putting code into the Click event of the picturebox.
    I also put code into the MouseHover event to change the picture's background color and into the MouseLeave event to change it back.
    I have a couple of these buttons. They work very nicely and really look like part of the toolbar.

  • How to remove suppressed items in the group tree from the crystal report print preview screen

    I am removing items in report using group selection formula. Although the removed items are not available in the report, they are still available in the group navigation tree on the left pane. Is there a way to overcome this ?

    Hi All,
    How can i use the below group selection code in record selection.
    TotalQuantity := sum({ICIVAL.QUANTITY},{ICIVAL.ITEMNO});
    TotalCost := sum({ICIVAL.TRANSCOST},{ICIVAL.ITEMNO});
    iIncludeQty := TONUMBER({?INCLUDEQTY});
    iIncludeCost := TONUMBER({?INCLUDECOST});
    bIncludeQty := FALSE;
    bIncludeCost := FALSE;
    SELECT iIncludeQty
        CASE 0:
            bIncludeQty := TRUE
        CASE 1:
            If TotalQuantity > 0 THEN
                bIncludeQty := TRUE
        CASE 2:
            If TotalQuantity = 0 Then
                bIncludeQty := TRUE
        CASE 3:
            If TotalQuantity < 0 THEN
                bIncludeQty := TRUE
        CASE 4:
            If TotalQuantity <> 0 THEN
                bIncludeQty := TRUE
    SELECT iIncludeCost
        CASE 0:
            bIncludeCost := TRUE
        CASE 1:
            If TotalCost > 0 THEN
                bIncludeCost := TRUE
        CASE 2:
            If TotalCost = 0 Then
                bIncludeCost := TRUE
        CASE 3:
            If TotalCost < 0 THEN
                bIncludeCost := TRUE
        CASE 4:
            If TotalCost <> 0 THEN
                bIncludeCost := TRUE
    bIncludeQty AND bIncludeCost

  • Can Grow Fields in Group Header Section Overlap

    Does anyone know of a size limitation to can grow fields on a group header section?   I have 2 fields in a group header section of my report.  They are defined as varchar(3000) and varchar(6000).   However, on my test case, the contents of each has lengths of 1,113 and 572 respectively.   The fields are listed vertically in the group.   The one that's listed on top, overlaps the one on the bottom.
       field_varchar(3000)
      field_varchar(6000)
    Thanks in advance for any help or information you can provide.

    Thank you SO MUCH!   That worked!!   I should've thought of that myself - but I'm pretty new to Crystal.

  • How to implement the Oracle Group by function in Crystal reports?

    Hi all,
    In SQL, for example we have a group function like:
    select  district,state, country, continent, sum(no.of people) from world.
    Now, How to implement this group function in crystal reports? Please advise.
    Thanks in advance..
    Regards,
    sriram

    Hi Vinay,
    Thanks for the prompt reply.
    In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
    When we tried in crystal reports to implement this oracle group by functionality:
    1. We created 14 groups from the Insert->Group option.
    2. By performing this, we got 14 group sections vertically(one inside the other).
    3. Then we created the sum(15th column),sum(16th column), sum(17th column)  by Insert->Summary option.
    4. We suppresed all the group sections except for the last group.
    5. Then, dragged all the groups to the last group section along with the summary fields.
    This is how, we tried to acheive the oracle group by function in Crystal reports.
    Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
    Thanks,
    Sriram.

  • How to add new fields in asset master data

    Hello,
    i was wonder if anyone knows how to add new fields that arent defined in the asset master data.
    Thanks.
    Pedro

    Hi Pedro,
    SAP allows entering upto 8 fields on the asset master. These fields are called 'Evaluation group'. Out of 8, 4 are four character long and others are 8 character long.
    You can configure them @ the following 3 nodes in IMG:
    Financial Accounting>Asset Accounting>Master Data-->User Fields: Define 4-Character Evaluation Groups & Define 8-Character Evaluation Groups & Change Key Words in the Evaluation Groups.
    Regards,
    Vishal Thakur

  • How to Add multiple entry to the group policy security filtering

    How to Add multiple entry to the group policy security filtering
    Is there any way we can add multiple entry to the Domain group policy Security filtering tab.Currently its not allowing to add more then one entry at a time.
    Getting Error like "only one name can be entered,and the name cannot contain a semicolon.Enter a valid name"

    Hi
    Are you trying to add more users or groups through Group Policy Management Security Filtering tab?
    Try right clicking on the policy and then edit
    Then in Editor Right click on the name of the policy and Properties
    Security tab and add user or group from this tab. Just make sure if you are adding user or groups "Select this object type" has
    the correct option also "From this Location" is set to your entire directory not the local server.
    Update us with the above.
    Thanks

  • How to add a field to the selection screen and when the user enters ...

    hi all,
    can any one plesase send the code of how to add a field to seletiion screen and when the user enters in the field , it should be store in the database table , the table is MKPF and the field is BKTXT.  Thanks.

    Hi Kripa,
       If u r using PNP ldb then the screen u will get is the screen for that ldb and if u want to add some more fields then u define using selection-screen..as follows
    SELECTION-SCREEN BEGIN OF BLOCK mysel WITH FRAME TITLE text-111.
    PARAMETERS: n_in_en  RADIOBUTTON GROUP g1,
                q_ev  RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK mysel.
    SELECTION-SCREEN BEGIN OF BLOCK mysel1 WITH FRAME TITLE text-222.
    PARAMETERS: r_date TYPE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK mysel1.
    SELECTION-SCREEN BEGIN OF BLOCK mysel2 WITH FRAME TITLE text-333.
    PARAMETERS:f_ver(3) TYPE c DEFAULT 1,
               c_no(10) TYPE c DEFAULT '9D0161',
               u_id(15) TYPE c,
               password(15) TYPE c,
               r_email(30) TYPE c DEFAULT PARAMETERS: s_not TYPE c AS CHECKBOX.
    PARAMETERS:t_run TYPE c  AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK mysel2.
    SELECTION-SCREEN BEGIN OF BLOCK mysel3 WITH FRAME TITLE text-444.
    SELECTION-SCREEN BEGIN OF BLOCK mysel4 WITH FRAME TITLE text-555.
    PARAMETERS: p_ser  RADIOBUTTON GROUP g2,
    a_ser  RADIOBUTTON GROUP g2.
    SELECTION-SCREEN END OF BLOCK mysel4.
    SELECTION-SCREEN BEGIN OF BLOCK mysel5 WITH FRAME TITLE text-666.
    PARAMETERS:p_path TYPE string.
    SELECTION-SCREEN END OF BLOCK mysel5.
    SELECTION-SCREEN END OF BLOCK mysel3.
    u will get this additional screen after the screen of ldb.
    I hope this will help u..
    Thanks & Regards
    Ashu Singh.

  • How to add new field XREF3 in FB50

    Hi,
    I have a problem with adding the new field XREF3 in FB50 transaction in Items window. I configured field status group in OBC4 and OB41 transaction for XREF3 as optional entry. XREF3 is available in FB01 transaction but not in FB50. I checked table settings for Item window in FB50 using Administrator button. Field XREF3 is not displayed in current settings window. I checked also that structure ACGL_ITEM include the field XREF3. Can you give me any advice how to add the field XREF3 in this enjoy transaction FB50 ?
    Thanks in advance.
    Zbigniew Debowski

    hi,
    start FB50!
    at the upper right corner of the items, there is a small coloured box (blue, yellow and white), click on it
    click Administrator in the popup
    search for XREF3 in the list, the field Invisible (last coloum) should be ticked, untick it!
    click Activate, than Close, than Close again
    hope this helps
    ec

  • How to add more fields at level task for importing to MsProject

    Hi everyone,
    We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
    The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
    Does anyone knows how to add more fields for importing at the cProjects side?
    Thanks a lot,
    CAMILO URIBE

    Some fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
    mapping of the same nuember of fields.

  • How to Add parameter fields in BI publisher fields

    Hi,
    I'm creating xml report for Apps standard Trial Balance Summary, here i cant able to run the .rdf locally due to SRW.UserExit .
    So i got the XML file from output of the report.
    Then i added the xml data in BI publisher and then i have created the .rtf for that.
    Here i need to add some fields which is not available in fields list (in BI Publisher).
    How to add that fields, or is possible to add fields manually.
    That fields are given as parameters while running the .rdf file.
    Please tell me how to solve this problem.
    Is possible to add fields manually means tell me how to do that.

    If those fields are input parameters to the concurrent program then you can display them in RTF by declaring and printing it as
    <?param@begin:P_CONC_PARAM?>
    and display it as <?$P_CONC_PARAM?> - Note P_CONC_PARAM should match your parameter token

  • How to add new fields in Reduced message ( in BD53 )

    Hi Experts,
    How to add new fields in Reduced message ( in BD53 ), when the required field iis available in Table or Structure and need to be added in BD53 so that we can ALE.
    Thanks,
    Ninad

    Hello,
    I think of something like:
    First, you create extension, with transaction WE30.
    Then, reduce your idoc, your extension should also be proposed.
    Do not forget to add this extension in outbound we82, and/or we57 in inbound, and WE20, and find BTE or exit to populate extension.
    regards.
    F.S.

Maybe you are looking for

  • Problem with T400 and External Display....

    I have a new T400 (less than 1 month old) with the shared memory Intel Graphics setup and I cannot get it to work with an external display of any kind. I've tried 2 LCD panels (one widescreen, and one 4:3), 2 analog monitors, and a video projector wi

  • SCAT recording in ECC 6.0

    Hi Experts, In 4.7 version we used to have an option "TCD" in SCAT transaction via. which we used to record a test case.For example multiple MRP controller upload in OMD0. Now, in ECC 6.0 we don't have "TCD" option. Could you let me knowhow to create

  • Network sharing problem (user permission)

    Hi, I'm having problem with the network sharing and user permision. My company computer configuration listed as follows:- iMac 1 - Mac OS 10.6.8 iMac 2 - Mac OS 10.5.8 iMac 3 - Mac OS 10.5.5 PowerMac G5      - Mac OS 10.4.9 4 PC - All windows XP We h

  • Multi-function printer compatibility

    I have read in a few places that a multi-function printer (print, scan, fax, copy) will not work with all of the computers on the network plugged in to the USB port of the time capsule to anyone that has the time capsule, is this true? will all compu

  • ADS Error: User does not have access to method rpdata.

    Hi All, I have done the ADS configuration according to ADS guide. But when I check the ADS using FP_PDF_TEST_00 report. First of all it is not taking ADSUser or ADS_Agent id. If I give J2EE admin id and password then I get following error: SOAP Runti