Database field won't display

I'm new to Crystal Reports in .NET but I do have my 1st report working except for one field that I'm trying to use in a sub report.  It's in my database fields just like the other field for the sub report.  I can see data for both fields in the Browse Data.  One field and it's heading display just fine but I can't see the other one anywhere.  The field heading that's created when I drag it into the Detail area won't display in the report either.  I've tried deleting the field and readding it but nothing helps.  As far as I know I've done nothing to suppress this field from printing.  I REALLY need to get this working.  Thanks for your help.

Hello Paul,
I recommend to post this query to the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
That forum is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports .NET Development queries remain in one place and thus can
be easily searched in one place.
Thanks a lot,
Falk

Similar Messages

  • CR Database Fields doesn't display classes from a referenced project

    Hi,
    I created a website and a class library project. The website have a reference to a class library.
    I added a new Crystal Report item to the website (CrystalReport.rpt), and on the Database Expert screen, in the Database Fields section I need to select fields that are members of classes in the class library (referenced project). Only the website classes appear in the list.
    Is there a way to do this?
    Thanks.

    if i understand correctly you added data to the dataset the report is using?
    you need to verify the database to pull in the new fields
    database
    verify database
    you should then see the fields in the db expert

  • Formula field won't display

    Post Author: Richard bates
    CA Forum: General
    Sorry for the overly-generic subject, but I'm not exactly sure how to classify this problem.  I'm convinced it's a Crystal Reports bug but would be delighted to be convinced otherwise.  Here's the issue:
    Whenever I create a formula field in the format of trim(field A) " "trim(fieldB) and use the field in a report, if field B is null the data for the entire field will be skipped in the report.  Doesn't matter if the formula is in a group header or the detail line, the result is the same.  I've created a formula with the obvious conditionals, ie, if field B is null then trim(field A) else trim(fieldA)" " trim(fieldB) but that doesn't work either.  I am trying to combine two address lines.  In most cases there is not a second address field, so most addresses don't display using this method.  Someone on another board suggested a workaround which I am using (placing the second address line in it's own group and then suppressing the group when empty) but I have another instance where this won't work, ie, in the detail line.  I'm trying to actually combined three fields (first name, last name, and title).  In this case it is title which is usually blank.
    Am I missing something head-slapping obvious here?
    Thanks in advance
    Richard Bates

    Post Author: foghat
    CA Forum: General
    Seems to me I've come across the same thing way back.  It is a crystal thing, bug or just the odd way crystal does some stuff, I'm not sure (is there a difference?)  I can't remember what my fix was, think I may have had some logic similar to what you tried, but I had more than 2 address fields to compare, it sucked. You could try this (basic syntax):dim str0 as stringdim str1 as stringstr0 = trim{field A}str1 = iif (isnull ( {field B} ), "", trim {field B})formula = str0 & " " & str1 Add the iff logic to str0 as well if field A can be null. Things like this are why, when possible, I like to build as much logic as possible into a database view and then just use crystal for displaying the data.

  • Calculated field won't display on canvas

    I am importing login and logout times to Xcelsius v 5.4.0.0 using a web service.  Once the data is imported I am calculating the minutes between the login and logout by subtracting the login from the logout in the Xcelsius spreadsheet.
    I import DATE, USER, LOGIN, & LOGOUT to columns A:D in  my spreadsheet.  Column E contains the formula D2 - C2 to calculate the minutes, where D2 is the logout and C2 is the login.
    I cannot get the calculated times to display on the canvas.  I have tried both a list view and a spreadsheet table.  I set the DISPLAY DATA property of either the list view or spreadsheet table to columns A:E in my spreadsheet.  When I do Preview and import my data, all the data shows up EXCEPT THE MINUTES CALCULATION.  That field is always blank.
    I tried displaying the raw data tab, and the minutes calc is always blank. I created another tab named display data, added formulas to it to copy over the info from the raw data tab and tried displaying that instead.  I thought perhaps the actual calculation was causing a problem.  That didnu2019t work either.  The minutes calc column is always blank.
    I tried changing the format of the labels in the spreadsheet table or list view from general to numeric to time, but it makes no difference.  There is no data in the column to format.
    If I paste data into the spreadsheet while in design mode, the calculated minutes DO APPEAR in the list view on the canvas.  If I then go to Preview mode, the data is still there, including the calculated minutes. However as soon as I give it a new date range in Preview mode and refresh the data through the web service, the minutes column is again blank.
    Since the list view does display the calculated minutes if I paste data in the spreadsheet in design mode, and since the exported spreadsheet snapshot contains the correct calculations when I import data using the web service,  it appears that the data is being displayed on the canvas before the time calculations are taking place, resulting in a blank column.
    Has anyone else experienced this?  What am I doing wrong?  I am sure I should be able to do this, but evidently donu2019t understand how. Iu2019ve attached the exported spreadsheet snapshot as a reference.
    Thanks!

    Hi there - I checked your site on my PC and it does not display. I've found this on a number iWeb created site, so you are not alone.
    However, I have found iWeb created sites that display well on PC's, they are http://leapfrogenterprise.com and http://donandkasha.com - if you view the 'source', notice they used frames to display their site... Best wishes on your project, Rick
    iMac G5 iSight 20" - 30G iPOD - HP Pav 15" WS and Toshiba Sat 17" WS   Mac OS X (10.4.7)   Canon 20D & A620

  • Merge field won't display if number is 0.00

    When the value 0.00 is brought into the word document via merge field, nothing displays.  If the value is greater than 0.00, it displays that value.  Is there way to display the 0.00?

    To control number & currency formatting in Word, add a numeric picture switch to the mergefield. To
    do this:
    • select the field (e.g. «MyData»);
    • press Shift-F9 to reveal the field coding. It should look something like {MERGEFIELD MyData};
    • edit the field so that you get {MERGEFIELD MyData \# $,0.00} (or whatever other numeric format you prefer - see below);
    • position the cursor anywhere in this field and press F9 to update it;
    • run your mailmerge.
    Note1: The '\# $,0.00' in the field is referred to as a numeric picture switch. Other possibilities include:
    • \# 0 for rounded whole numbers
    • \# ,0 for rounded whole numbers with a thousands separator
    • \# ,0.00 for numbers accurate to two decimal places, with a thousands
    separator
    • \# $,0 for rounded whole dollars with a thousands separator
    • \# "$,0.00;($,0.00);'-'" for currency, with brackets around negative numbers and a hyphen for 0 values.
    The precision of the displayed value is controlled by the '0.00'. You can use anything from '0' to '0.000000000000000'. 
    If you use a final ';' in the formatting switch with nothing following, (eg \# "$,0.00;($,0.00);") zero values will be suppressed. Note that this suppresses 0s resulting from empty fields and from fields containing 0s.
    If the above doesn't resolve your issue, it may be that the expected zeros are actually empty fields. In that case, you should be able to get the desired output by embedding the MERGEFIELD in a formula field, thus:
    • select the field (e.g. «MyData»);
    • press Ctrl-F9 to embed the field in another field, thus { «MyData» };
    • edit the field code so you get {=«MyData» \# $,0.00} (or whatever other numeric format you prefer);
    • position the cursor anywhere in this field and press F9 to update it;
    • run your mailmerge.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Form fields won't display input information

    We are having a very odd issue that's happened on two occassions. We have a basic PDF form where someone has input information into various fields, but the information doesn't display, unless you click within the field. At that point you can see what's been typed in. As soon as you tab to the next field, the information is no longer visable -- it's still there, but you can't see it. I don't know if this is relavent, but it's interesting that one part of the form has some checkboxes and that information displays with no problem.
    One form was one we created in-house, and we've been using it for about 9 months with no problems at all. The other form is an external form that was sent to us.
    Neither of these are a LiveCycle designer form.
    We get the same results regardless of whether we open within Mac or Windows.
    Both forms, in their final state, were emailed to us via an outside source (different, unrelated sources). That seems to be the only common attribute.
    Any ideas?

    One thing you can try is opening the form in Acrobat, exporting the form data to an FDF file, and re-import it.
    You can also run a JavaScript the will correct things as much as possible. For example, see: http://blogs.adobe.com/pdfdevjunkie/script_to_fix_mac_osx_previewa.html
    I've written a script that is more comprehensive in that it addresses other type of fields. Post again if you'd like it.
    Please note, though, that any of these methods can only do so much. Preview screws things up in a way that's not easily reversible.

  • POST-QUERY trigger cannot retrieve the database field in TEMPLATE.fmb

    I have tried to create a form using TEMPLATE.fmb in Oracle Apps R11i. I found that the POST-QUERY trigger cannot retrieve the database field (which is display item property) properly. Can anyone tell me how to retrieve the displayed database fields? Thanks for any helps.

    POST-QUERY would fire after the query has been executed, it does not do the actual data retrieve.
    See if the items you have put have the data source properties set and are not control items.
    btw, this forum is for OA users, you would get better response to your query if you post it in forms forum
    Thanks,
    Tapash

  • How to display records from a query into non-database field

    Hi
    I a have a problem:
    I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
    I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
    Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
    Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
    How I made:
    I create a cursor with query then
    begin open cursor
    loop
    fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
    end loop;
    close cursor;
    end;
    It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
    Can somebody help me in this problem?
    Thanks.
    Edited by: 928437 on Oct 1, 2012 2:55 AM

    Creating a view, and querying that into a database block is an excellent solution.
    To use the non-database block:
    You're missing the all-important Next_Record; command.
    <pre> Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;</pre>

  • How to display two database field in report

    hi,
    i have made a report and in that report i am displaying two fields with same data and these fields are database.In the FORM f_display_report i have given the same  name in both fields.But when i going to SUM it gave me only one field SUM and other fields gives null.
    give me some guidance as i have to display both fields with same data and same amount of SUM. 
    Thanks

    if i am using the database field i-e wt_qbshb then it gave me the data but when im going to sum both field it gave me sum of only one field.This the code:
    ITAB:
    BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the  BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the  BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the PERFROM DISPLAY REPORT:
      PERFORM fill_fieldcat USING 'LIFNTN' 11   'NTN' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'LIFNIC' 16   'NIC' 'GI_MAIN'.
    PERFORM fill_fieldcat USING 'LIFNR'  10  'Vendor' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'NAME1'  35  'Name' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'STRAS'  35  'Address' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'ORT01'  35  'City' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QEKAR' 40    'Nature of Payment etc' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QSCOD' 10 'Payment Section Code' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'BUDAT'  10   'Date of Payment(dd/mm/yyyy)' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'DMBTR'  20   'Value/Amount on which Tax Collected or Deducted' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QSATZ'  10     'Rate of tax (%)' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'WT_QBSHB'  16   'Tax Amount Collected/Deducted' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'WT_QBSHB'  16   'Amount of Deposited' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'P_TAX'(001)  15   'Date of Tax Deposited(DD/MM/YYYY)' 'GI_MAIN'.
    Thanks.

  • Store values of different data types into single database field

    Hi Friends,
      I  have to store values of different data types(character, numeric, date, time,  text, etc) into a single database field(Char 80). Then read the same values and display it into ABAP Webdynpro report. 
    Appreciate any ideas, examples, suggestions.
    Thanks
    JB

    Hi,
    Try like this:
    data: txt1 type string,
          var1(1) type c,
          var2(1) type n,
          var3 like sy-datum,
          var4 like sy-uzeit.
    parameters: a type c,
                b type n,
                c like sy-datum,
                d like sy-uzeit.
    concatenate a b c d into txt1.
    write txt1.
    var1 = txt1+0(1).
    var2 = txt1+1(1).
    var3 = txt1+2(8).
    var4 = txt1+8(8).
    write: / var1,
           / var2,
           / var3,
           / var4.
    Regards,
    Bhaskar

  • Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Image with foreign characters in name won't display

    I have an image on my drive whose name has foreign characters ("c�pia de frente.jpg"). To display the image my JSP reads the image name from the database and generates the following html:
    <img src="../pictures/c�pia de frente.jpg">The page then displays a broken image icon for this image. Images in the same list which do not have foreign chars get displayed accurately. When I choose "show image.." in my browser I see that the image name has been rewritten into the following: c%C3%B3pia%20de%20frente.jpg. The rewriting that will display the image is instead c%F3pia%20de%20frente.jpg. I found the correct rewriting on another of my JSP where the image with the foreign chars actually gets displayed correctly although the code to generate the html is the same on both pages and looks something like this (simplified):
    <logic:iterate id="listelement" name="list" property="rows" scope="request" type="org.apache.commons.beanutils.DynaBean">
    <%         
    out.write("<img src=\"../pictures/"+listelement.get("name").toString()+"\">");
                             %>  <br>                     
                            </logic:iterate> Every image that doesn't have foreign chars in its name gets displayed accurately but images with foreign chars in their names won't display. What am I doing wrong?
    Thanks
    Niklas

    Thanks, but it doesn't seem necessary to replace foreign characters. It works without replacing in one place but not in another which is confusing. I think it is something with the enconding but can't see what the difference is between the working and non-working code. In both pages I have put <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">I'd greatly appreciate any more suggestions to solve this problem.

  • Chart legend shows database field instead of value

    Hi,
    I would like to understand the behavior of the charts legend, which sometimes display the field values as requested, but sometimes display the database field name starting with a @.
    We develop Crystal Reports and then generate them via an application. We have many releases of our application and therefore we get to work with Crystal versions 10, XI, XIr2 and 2008.
    In all cases, the legend display is correct when in the Crystal Reports Designer preview mode. However when generated through our application (using ADO.NET), depending on the Crystal runtime version (apparently) the result varies. Editing the legend label in preview mode doesn't resolve the issue.
    Is this behavior related to :
    - Crystal Reports runtime (it appears to happen only with Crystal Reports runtimes XIr2 and 2008 in our case) ?
    - Using formula fields in the chart instead of database fields directly ?
    - Evaluation time (our charts are in Report Header and/or Group Header) ?
    - any other idea ?
    Thank you very much
    Anthony

    We have been able to detect that the Language Regional Settings of Windows XP Pro has a direct effect on our charts legend display.
    We noticed that when the Regional Settings were set to English, the report would generate correctly and chart legends would display values, and not database fields names. However, when the regional settings are set to another language (tried French, Dutch, Spanish and German) the problem occurs.
    Using Process Monitor we have spotted that when in Regional Settings other than English it was still the English dll that were called (crdb_adoplus_res_en.dll)...
    The problem occurs with Crystal runtimes XIr2 and 2008 only. We use Crystal Reports in an application, using ADO.NET connector, and we use the Crystal runtime to generate reports.
    Is this a bug or is there a workaround to make sure the correct dll are called according to regional settings ?
    Thank you for your kind assistance.
    Best regards,
    Anthony

  • Some windows won't display?

    For some reason, some of my windows in dreamweaver will not display correctly, or much at all. For instance, when you first open dreamweaver and select "new dreamweaver site" all I get is a window that displays a few text fields and then whatever is behind that window (almost like the entire window is transparent, except when I move the window, it doesn't change to match what is behind it) My system exceeds the dreamweaver minimum requirements.
    I operate on windows xp
    I am running the trial version.

    I have, Thank you. I kinda sorta fixed the problem, I discovered that when I move the window off of the screen, it appears correctly, annoying but I dont know what else to do.
    Thanks alot for replying
    -Justin
    Date: Sat, 9 Oct 2010 06:18:32 -0600
    From: [email protected]
    To: [email protected]
    Subject: Some windows won't display?
    Have you tried reinstalling it?
    >

  • Photos won't display

    I recently bought a refurbished 80g iPod classic. Everything appeared to be in working order except that photos won't display when clicked on. When I click on a photo the screen just goes black like the photo won't load. I don't really want to return it and go through all the warranty ordeals so if anyone knows how to fix this problem please let me know.

    To create and populate a new library:
    *Note this will give you a working library with the same film rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.*
    Move the iPhoto Library Folder to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library Folder on your desktop and find the Originals folder. From the Originals folder drag the individual rolls to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library Folder on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

Maybe you are looking for