Crystal report 8.5/ changing the format conditionally

Post Author: Amsa
CA Forum: Crystal Reports
Using Cyrstal Report 8.5  I have a letter on the crystal report which get populated from the sql database by the sql procedure..That letter includes the Name and the full address. And if the customer has the apt number it prints that as well.So this is how it goes. Amin Shah91 09 Tample AveApt # 31Elmont NY, 11373     so each line there is accociated with the field from the stored procedure. But what happens is that when the customer doesnt have the Apt # that line prints empty and there comes a blank line. So for that I have to shift that TownState row up.   I don't know how to do this. If anyone can help  please.Thanks.   

Post Author: rroberson
CA Forum: Crystal Reports
split up the section the address is in so that Apt # 31 is in its own section (can all still be in details or a single group -- you just break it apart using "insert section below" or by splitting the section with your mouse).  Lines below show breaking of sections. __________  Amin Shah91 09 Tample Ave ____________ Apt # 31_____________Elmont NY, 11373_______________  Then choose "suppress blank section" for the Apt #31 section.  If you have anything in the section besides database fields you will need to conditionally suppress those as well so that the section really is blank (and therefore will be suppressed by the 'suppress blank section'). 

Similar Messages

  • How to change the format of a cell in a web report

    Hello experts,
    Is it possible to implement this in a Web Report/BEx query?
    We have a list of products grouped into Company A and Company B. One key figure is for example Net Cost Price.
    We need to highlight the lowest net cost price in every company but with a different colour depending on the company assuming prices are sorted in ascending order.
    We have been recommended to use Web Design Api for Tables but we understand that in order to format a cell content we need to know the axis position of the cell but we don't know how many rows the query will display for every company. Is this kind of requirements only possible with "static" reports where we know exactly the number of rows and columns that are going to be displayed?
    This is an example.
    COMPANY      PRODUCTS    NET COST PRICE
    Company A    Product 1    <b>5€</b>
                 Product 2    10€
    Company B    Product 1    <b>10€</b>
                 Product 2    20€
    Any help would be very much appreciated.
    Thanks in advance,
    Inma

    Hi Inma,
      If you have already not solved your problem , you can try the following solution with table interface class.
    Table interface class generates HTML table row by row so it first process the charecterstics and then KFs .
    You define a  attribute(type public) in class and set that attribute to X (In CHARECTERSTIC menthod)when ever the company code changes.
    Then make use of that flag in DATA method to change the format of cell (Assuming you sorted by Ascending).
    hope this helps.
    Regards
    Madhukar

  • Crystal report from JSP using the JRC

    Hi, I am trying to call crystal report from JSP using the JRC.
    But i am getting the Error as 'Logon Failed'. my web.xml entry is
    <env-entry>
    <env-entry-name>jdbc/Test</env-entry-name>
    <env-entry-value>!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@//10.0.0.1:1521/TestDB</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    i am setting the userid and password in the code. Please see the below code for your reference. Please help me to solve the issue.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSource" %>
    <html>
    <head>
    <title>Crystal Report with Database Logon information</title> </head>
    <body bgcolor="#ffffff">
    <%
    try
    String report = "/TEMPLATE.rpt";
    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    JPEReportSource reportSource = (JPEReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setHasRefreshButton(true);
    IConnectionInfo newConnInfo = new ConnectionInfo();
    newConnInfo.setUserName("TEST");
    newConnInfo.setPassword("TEST");
    ConnectionInfos newConnInfos = new ConnectionInfos();
    newConnInfos.add(newConnInfo);
    viewer.setDatabaseLogonInfos(newConnInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    out.println("Connection Information: "+viewer.getDatabaseLogonInfos().getConnectionInfo(0).getAttributes().toString());
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    viewer.dispose();
    catch(Exception e)
    throw new JspException( e);
    %>
    </body>
    </html>

    I never really had much luck with this approach.
    Mind you I was using Crystal Reports 10, and as far as I recall it didn't allow setting/changing of database at this level.
    Things to check
    - can you create a database connection on your page with this URL/username/password?
    - what server are you using? Tomcat? WebLogic?
    I found this in your other post:
    Connection Information: {Server Name=ee6rpt, Connection String=DSN=s(ee6rpt);User ID=s(ee62test);Password=;UseDSNProperties=b(false), Database Name=, Database DLL=crdb_odbc.dll}That would indicate it is using odbc to connect to the database (crdb_odbc.dll). ODBC is a bad idea with java.
    The way I have got it to work for me (after much trial and error) was to in Crystal Reports to connect using the Oracle Driver, and specifying a tnsname - eg define REPORT_DS in tnsnames.ora.
    When running through the JRC, it looked for a JNDI datasource under that same name "REPORT_DS".
    Don't know if that will help you or not.
    Good luck,
    evnafets

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • I changed the format to an external drive and lost everything that was on it.

    I changed the format on an external hard drive and lost everything that was on it. Is there a way to recover what was on it?

    1) Partition your hard drive or add an external drive and install Snow Leopard (with the Optional Rosetta) into it and then you can dual-boot (System Preferences:Startup Disk) into Snow Leopard and run FCE 3.5 there.
    2)  Use one of the following methods to install FCE 3.5 into Mavericks:
    a)  Pacifist:  http://www.charlessoft.com/
    b)  Jeremy Johnstone's Terminal method:  http://www.jeremyjohnstone.com/blog/2012-03-11-installing-final-cut-pro-studio-2 -0-on-mac-os-x-10-7-lion.html
    Reports on this forum seem to confirm that Final Cut Studio 2 will continue to operate in Mavericks once it is functionally installed, albeit some plug-ins may fail to function.  FCE 3.5 is the same generation as FCS2, and presumably will continue to operate in Mavericks, as well.

  • How to Change the Document Condition Values in PO print

    HI,
    I have a requirement to change the document condition values in PO printout. We are using the copied form of MEDRUCK.
    Please tell me how can i change the Document Condition Values at run time.
    Thanks....

    hi
    hence you have copied standard script you cant able to change the driver program for this you have to use itcsy structure.
    go to the page window and select the window which you have the amount field. open the text editor of the windoiw here write
    /:           PERFORM CONTACT IN PROGRAM ZAMOUNT_ZF110_IN_AVIS1_C
    /:           USING &REGUH-ZALDT&
    /:           CHANGING &DT&
    /:           ENDPERFORM
    now create a report program with name  ZAMOUNT_ZF110_IN_AVIS1_C.
    and follow as the example program is .
    *&      Form  CONTACT
          text
         -->IN_TAB     text
         -->OUT_TAB    text
    FORM contact TABLES in_tab STRUCTURE itcsy
                       out_tab STRUCTURE itcsy.
      DATA : v_telf1 TYPE telf1.
      DATA : v_telfx TYPE telfx.
      DATA : v_adrnr TYPE ad_addrnum.
      DATA : v_flagcomm6 TYPE ad_flgcm06.
      DATA : v_datum(10) TYPE c.
      DATA : v_sydatum TYPE sy-datum.
      DATA : v_lifnr TYPE lifnr .         " Santosh Rawat , 19th Feb
      DATA : v_email TYPE ad_smtpadr .   " Santosh Rawat , 19th Feb
      LOOP AT in_tab.
        IF in_tab-name = 'REGUH-LIFNR'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' " Santosh Rawat , 19th Feb
            EXPORTING
              input  = in_tab-value
            IMPORTING
              output = v_lifnr.
          SELECT SINGLE telf1 telfx adrnr FROM lfa1
            INTO (v_telf1, v_telfx, v_adrnr)
            WHERE lifnr = v_lifnr.
          SELECT SINGLE smtp_addr FROM adr6    " Santosh Rawat ,19th Feb
         INTO v_email WHERE ADDRNUMBER = v_adrnr. " Santosh Rawat ,19th Feb
         SELECT SINGLE flagcomm6 FROM adrc INTO v_flagcomm6
           WHERE addrnumber = v_adrnr.
        ELSEIF
          in_tab-name = 'REGUH-ZALDT' OR in_tab-name = 'REGUP-BLDAT'   .
          MOVE in_tab-value TO v_datum.
          REPLACE ALL OCCURRENCES OF '.' IN v_datum WITH ' '.
          CONDENSE v_datum.
          MOVE v_datum TO v_sydatum.
    *CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
    EXPORTING
       input         = V_DATUM
    IMPORTING
      OUTPUT        = V_DATUM
          CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
            EXPORTING
              date_internal            = v_sydatum
            IMPORTING
              date_external            = v_datum
            EXCEPTIONS
              date_internal_is_invalid = 1
              OTHERS                   = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT out_tab.
        IF out_tab-name = 'TEL'.
          MOVE v_telf1 TO out_tab-value.
        ELSEIF out_tab-name = 'FAX'.
          MOVE v_telfx TO out_tab-value.
        ELSEIF out_tab-name = 'EMAIL'.
          MOVE v_email TO out_tab-value.        " Santosh Rawat , 19th Feb
        ELSEIF out_tab-name = 'DT'.
          MOVE v_datum TO out_tab-value.
        ENDIF.
        MODIFY out_tab FROM out_tab.
    *MODIFY TABLE OUT_TAB .
      ENDLOOP.
    ENDFORM.             }
    reply for any query.
    regards,
    venkat.

  • To change the format of the list

    Hi Guys ,
    I have schduled a batchjob its a report program runs every week and after completion of the job it sends mail to the concerned guy  with the details of the report .Its an Standard report everything is configured by using SM36 transaction .
    Everything is fine but we have to change the format of the report to CSV could any one can guide me how can we change the format .
    Thanks in advance,
    Sathish.M

    CSV means a text file, where the columns are separated by a character ";".
    The best way to change a list to CSV is to create an internal table in the ABAP, with the structure of the required CSV.
    You have to fill in this internal table.
    Because you are running the program in background, you can't download the file, the best would be to store the file on the server in a separated directory.
    Regards
    Tamá

  • Disable Crystal reports grey fields in the preview

    Dear forum users, I've got an application not written by me (so I do not have source code) that displays a Report in a standard Crystal Report Viewer. In the preview when I click on a field it gets rounded with a grey border, filled with a grey background.
    This is causing me some problems when I use the application via Remote Desktop Connection.
    Since I don't like this feature the question is: can I disable this feature (maybe by changing an entry in the Registry Editor)?
    Best regards
    Alessandro

    Hi Alessandro,
    I think maynot be. whats the screen resolution of your system? If you change it probably you can see that particular grey box clearly.
    or
    try to export that file to excel or pdf. probably you will see the file with you vagueness.
    Regards
    Usama

  • How to change the format of the cell in input schedules

    Hi gurus
    I tried to change the format of the cel in input schedulesl, but I can not, for example
    when I insert 80 in the cell, and i send the data the system switches to -80 and the report shows (80) y when i insert -80, the system switches the number to 80
    I want it when you insert 80, the system keeps 80 and do not change
    Anyone know how to do that?
    thanks
    regards

    Hi,
    The other experts have guided you with the steps to change the property. However, you need to understand why is the design like this and what impact can it have on your system.
    Usually, the accounts defined belong to the PnL or BL statements. There definitely can be some other accounts as well. The PnL and BS accounts can be either income (INC), expense (EXP), asset (AST) or liability and equity (LEQ). Changing the account type of these type of accounts can heavily impact your financial statements. So, you should carefully think over this before changing the property.
    Hope this helps.

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • Crystal report not showing all the table in SAP CRM

    Hi
    I am connecting crystal report 2008  using open sql connectivity (SAP table, cluster or Function ) with SAP CRM system. It is showing some of custom tables under "DD" but not all.
    Wanted to understand what setting make a new custom table (transparent) to show under DD in SAP table, cluster or function connection
    Help is greatly appreciated
    Thanks
    Padmanabh

    Hi Rao,
    Try to edit the following registry and check
    HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\FetchOptions\NTablesMax
    Give the value as 20000
    Thanks,
    Sastry

  • Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report

    When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
    Error in Crystal Report:  Failed to export the report.
    This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter).  We have other subreports (within this same report) that print a sql image just fine.  But, when this subreport prints, the above error appears.
    I can run the same report on an XP machine without error.
    Exportmodeller.dll and crtsv.dll are both installed and registered to the
    C:\Program Files\Common Files\Business Objects\3.0\bin folder
    I have tried opening the report, removing the image, and then adding it back in again to the subreport.
    Still receive the same error.
    Any suggestions?

    >
    Don Williams wrote:
    > RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
    >
    > Upgrade to the .NET components and post your question to the .NET forums.
    >
    > Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
    Don,
    Can you please clarify?
    Our VB6 app that uses Crystal XI RDC runtime components.  Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer).  We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
    We can print/preview/export to excel, but the pdf creation is failing with this error.
    We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue).  Therefore, we have to rollback our .NET product and revert to the RDC code. 
    Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
    When you say  "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
    Thank you

  • How can i change the Format of my DATE column?

    I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
    I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
    CREATE TABLE "IT220_DATEHOLIDAY"
    "DEPARTID" VarChar(2)NOT NULL ENABLE,
    "HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
    "DEPARDATE" DATE,
    to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
    CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
    ORA-00902: invalid datatype <<<<This was the error message i received.
    I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
    Thanks in advance!

    Hello Jay,
    I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
    Anyway:
    You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
    It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
    The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
    You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
    An overview of formatting options can be found here:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
    So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
    -Udo

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • How can I use single hard drive for both Mac OS and Windows without changing the formats and reformatting?

    I have a windows PC and a Macbook Air and a 1TB external hard drive. They said in order to transfer large files into the hard drive you have to change the format of your hard drive (which would be from MS-DOS to Mac Os extended) so how can I use my external hard drive on my windows PC without reformatting its files? Please heeeelp 

    Natively Windows can read and write to NTFS, FAT32, and exFAT while the Mac can read and write to FAT32, exFAT, and MacOS Extended.
    Option 1: You can purchase driver software for Windows to allow it to read and write Mac's MacOS Extended or you can purchase a driver to allow the Mac to read and write to NTFS.
    Option 2: you can format the hard drive for exFAT and use it with both Windows and the Mac without purchasing any special drivers. (Obviously the 4GB file size limit is why you don't want to use FAT32)

Maybe you are looking for

  • Billing document to COPA partially

    I would like to make some billing documents generating FI and COPA document, and some would generate FI document only. Does anyone know 1) Is it possible in SAP by seperate different billing type or etc. 2) how does SAP determinate to generate COPA d

  • Servlet exceptions using Jetspeed portal

    If anyone has any experience using the Apache Jetspeed portal with weblogic 5.1 then if you have any ideas on the following please reply... I ran Jetspeed fine on tomcat without any changes, but when i tried to run on weblogic - firstly i had to move

  • Receiver to Time Capsule for Airplay

    I have a Denon receiver with Airplay (no wifi), newest iMac, and newest Time Capsule.  If I plug in a network cable from the capsule to the receiver, will I be able to play my iTunes library through the Airplay function?  Or do I have to buy an expre

  • I Want to stream my Match items without it downloading into my phone

    I am probably missing something very simple here, but how do I just stream the song in my phone without it downloading to the HD?

  • I need to know how to reenable a script so video downloadhelper works fully again

    Earlier today I got a message from firefox that a script was casing problems or appeared to not be working correctly. I thought it was just some random website I had open so I told it to stop it and now I've lost the Video Downloadhelper icon next to