Suppressing Footer by Sum Summary Problem - MSSQL float field?

I'm evaluating CR2008 and came to a problem I can't find an answer to.
I'm summarizing quantity of shares in a transaction log and if the sum is zero should suppress the Footer as there is no quantity to report.  This works for 95%+ of cases but there are instances where the zero is not being supressed.  I'm not sure this is a problem with MSSQL's float field or if it is a problem with CrystalReports.
I have a suppression formula as follows:
If Sum({Transactions.Quanity, {Securities.Description}) = 0 Then
    True
Else
    False
This works as I stated for most instances.  But some it will display a 0.0000000000 (testing with the largest rounding and decimals to see if there is a rounding problem).
The values are stored in a MSSQL database and the quantity field is of type 'float'.  As a test I queried the database for one of the failing instances with query "select quantity from transactions where portfolioid=XXXX and symbolid=YYYY".  This returns 52.732 and -52.732.  If I where to change the suppression formula to
If Sum({Transactions.Quanity, {Securities.Description}) <= 0.0000000001 And
Sum({Transactions.Quanity, {Securities.Description}) >= -0.0000000001 Then
    True
Else
    False
the suppression works correctly.  Could someone shed some light on this issue?

Debi is the one that is correct but it still is something weird about it.  When I do the multiplication by 10000000000, I get some trailing fractions converted into a zero value as expected like 527320000001.  But if I do the same multiplication in an query on MSSQL, ie. "select quantity * 10000000000 from transactions where portfolioid=XXXX and symbolid=YYYY" I do not get the trailing fractions but the numbers I would hope to get 527320000000.  Somewhere along the way the float is converted into a number on CrystalReports and the fractions are not kept as is on database.  Null values are not allowed on database schema so those would not be an issue.

Similar Messages

  • Summary: Problem with export (maybe...terminated sucEE to XE issues exp/imp

    Summary: Problem with export (maybe...terminated successfully with warnings) and import (IMP-00022: failed to process parameters)
    I used PL/SQL developer to make a parameter file (initially I used it to export, then I just stole the file to try again). It contains 100 tables from a single schema.
    Export from prod DB using exp parfile=test.par: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table     CONTRACT_INFO         12 rows exported
    EXP-00091: Exporting questionable statistics.
    'Export terminated successfully with warnings.' !!!I want to import into the cs2_user schema (same privileges as on the production DB) trying:impdp 'sys as sysdba'@danieldb schemas=cs2_user dumpfile=test01tables3.dmpThat gets the error: UDI-00014: invalid value for parameter, 'attach'
    I then thought maybe you have to use imp/exp or impdp/expdp instead of a combination (exp + impdp) so I tried: imp 'sys/admin as sysdba'@danieldb touser=cs2_party_owner file=test01tables4.dmpbut then I just get: IMP-00022: failed to process parameters
    Anyone see why its all failing? :s
    Mike

    you must input SID name into single-quotes like:
    C:\Tools\Oracle\product\10.2.0\db\NETWORK\ADMIN>expdp 'sys/manager@stb as sysdba'
    Export: Release 11.2.0.1.0 - Production on Thu Feb 9 13:46:16 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    UDE-06550: operation generated ORACLE error 6550
    ORA-06550: line 1, column 11:
    PLS-00201: identifier 'SYS.DBMS_UTILITY' must be declared
    ORA-06550: line 1, column 11:
    PL/SQL: Statement ignored

  • Performance of SUM summary function

    Hi All,
    I would like to know a little bit about the SUM function from a cost perspective.
    I've a SQL query where I'm getting the total time for all users by using "SUM" summary function. The SQL query also has some inetmediate joins/merges
    Now my boss says that from the cost perspective we should use application code instead of SUM. He also cited a reason that since the SQL query has so many joins, it would be better to use application code to do the calculations.
    Can anyone gimme some insite on this issue?
    Appreciate your time
    venk

    I agree with 4 that is unlikely you could write application code that could join better than Oracle. You might be able to write application code that sums better (unlikely, but concievable). However, if you tried, you would probably blow out both the memory on the application server and the bandwidth on the network.
    Even if you could write application code to do the joins and summing 10 times as fast as Oracle does (and if you can, you could certainly get a job with Oracle), the benefit would almost certainly be eliminated by the extra time to move the raw data across the network, and to allocate and free the enormous amounts of memeory that would be required.
    Real databases are made to join, sort and aggregate, that's why we buy them.
    John

  • Determine the number of lines of textfield or floating field

    Hi,
    Is there a way to determine the number of lines of text in a textfield or in a floatingfield.
    My problem is that I'm creating a form with three tables(made of subforms) underneed each other that needs to be set to hidden when the total of rows is greater than 25.
    Now it would be easy to just count the rows but these rows can exist of multiple lines of text.
    The fields of my row are floating fields so when the text is bigger than the displayable width the text continous on a new line in the same row. So I need to know when this happens because now I can show only 24 rows.
    I tried counting the characters but this doesn't work, when there are a lot of 'i,j,l' or other small characters I can place 40 characters in my textfield, but when there are a lot of 'm,w' characters I can place only 22 characters in my field.
    I also tried to use xfa.layout.h(TextField1,"cm") to determine the height of the field, but it always retuns the value -1. I get the same -1 with the y or x - position.
    Does anybody have an idea how to solve this problem?
    Thanks in advance,
    RonnyR

    oops ... i got it thanks.
    code below -----
    for(var i=0; i <= s.length-1; i++)
    sCurrentLetter = s.substring(i,i+1);
    if (s.charCodeAt(i) == 13)
    // this is a line break

  • Floating Fields with Designer ES2

    I just did an upgrade to Designer ES2.
    I created a new form with static textfields and floating textfields
    then i created a button that filles the floating field with a text using javascript.
    xfa.resolveNode("form1.#subform[0].Textfield1").rawValue
    = "it doen't work";
    But it doesn't work
    When i make the floating field visible, so i see the normally hidden field, the i see that the script works, but that te tekst doesn't show in my static textfield
    Anyone else with this problem?
    Can anyone tell me what i'm doing wrong?
    In the previous Designer ES it worked fine and opening those forms in ES2 still work
    But creating a new form with a floating text doesn't work

    I reinstalled Both Designer 8.x and ES2 several times, but i have the same problem with both versions.
    Now i only have Designer 8.x installed on my WinXP.
    i created a new empty form and add a static text field and a button.
    within that static textfield i insert a floating field.
    i add a Formcalc script to the click function of the button: Field.rawValue = "hello"
    i save it as a dynamic form.
    preview the form and when i click the button nothing happens
    Then i change the presence of the floating field to visible, so a normally hidden field is visible
    Now without changing anything i preview the document en click on the button
    Now i see the text in the field i just made visible, but still not in the static textfield where i inserted that floating field.

  • Floating Fields with .replace()

    Hi All,
    I'm having a problem with my floating fields.
    I have a variable declared in my function (floatingFunction), lets call the variable sPara.
    to sPara I assign a long Paragragh for example; sPara = "I, the undersigned FN in my capacity as a CP..." 
    In my hierarchy structure I have foating fields: fullName and capacity and an empty text call it displayfield, these three are in a subform hdDisplayText
    I also have  textfields called fullName & capacity.
    On exit event of the fullName textfield I have these two lines :
    header.hdDisplayText.fullName.rawValue= this.rawValue; floatingFunction.sPara
    = floatingFunction.sPara.replace('FN', this.rawValue);
    and on prePrint event of hdDisplayTest subform I have this:
    this.presence= 'visible';displayfield.rawValue
    = floatingFunction.sPara;
    When u click the print button for the first time it works fine, now the second time you enter a different Full Name and click print, it still prints what you entered the first time, now that is my problem, I've tried xfa.host.resetData(); after printing but that didnt help. Please assist, please.

    Ok I got it, I 'nm using xfa.form.remerge() just after printing.

  • Floating fields and added pages

    Hi everybody,
    My problem is to know how I could bind some floating fields when I get several pages. The user fill in the page 1 of a form and the text appear on the page 1 and on the two following cards. But, but it doesn't work when I add many pages. The text is different on the page 2 and so on.
    Here is a link to the file.
    https://workspaces.acrobat.com/?d=4odkUJkUHtogzw2VDmU9ww
    Many thanks for your help

    Sorry,
    Here is the good one !
    https://workspaces.acrobat.com/?d=QOygMhCwFneyv8Tr1VskTA
    Many thanks

  • Summary on a formula field that makes a condition on a running total

    Hi,
    How come I can't create a summary on a formula field that makes a condition on a running total ?
    My running total field is a counter that counts the number of individuals
    My formula field contains this info :
    IIF ( ( {#counter_running_total} <> 1)
        or ( {#counter_running_total} = 1
              and {status.code} = '04' )
        or ( {#counter_running_total}  = 1
              and {status.code} in \[ 208 , 996 ])
    ,0,1)
    When I right-click on the formula field to insert a summary, it does not allow me.
    Do you have any idea I can show the information in a better way ?
    Thanks
    Steph
    Edited by: Stephanie Charest on Aug 4, 2008 8:00 PM

    Thank you very mutch for your reply, I tried it and it works.
    The thing is, I would like to reset the counter on change of group, and put the manual running total in the group footer.
    Is there a formula I could use to reset the counter ?
    When I write in the group header :
    whileprintingrecords;
    numbervar i=0;
    it does not reset the i to zero, instead, it writes "false" and continues to increment in the footer.
    do you have an idea ?
    Thank's
    Steph

  • What am I doing wrong when trying to create a floating field?

    I am trying to create a floating field that is 'connected' to a global Text field. To my opinion I followed all instructions as in the help file, but it doesn't seem to work. Anyhow, the information I type in the text field does not pop-up in the text. I have setup the floating field as follows:
    Type = Text field
    Appearance = none (I do not want a box or something around the text)
    Field format = plain text
    Presence = hidden (excluded from layout)
    Value = calculated (read only); I have tried all other options too, but nothing seem to work
    Calculation script
    Binding = global (and name is the name as used for the text field)
    I have used another text field that is connected to the same text field as referred to above and that works just fine.
    What am I doing wrong?
    Can anyone help me out here?
    Thanks!

    If anyone is following this thread, I found the solution to my problem where the Floating Fields did not work.  BTW, I am using LiveCycle Designer ES 4.
    Under Form Properties/Defaults, you need to change "Choose Target Version" to "Adobe and Adobe Reader 9.1 or later".  Save the change, and floating fields should work now. 

  • Printing 2 copies of a document where a floating field change

    hi experts,
    Context:
    I have an interactive form compiled by a user.
    when compiling is finished, I'd need to print 2 copies of that document; the 2 copies are exactly the same but a floating field that has to change, i.e. 'Copy for ME' and 'Copy for the CUSTOMER'.
    Placing  2 print buttons it's not a problem, in the first button I set the Floating field to 'Copy for ME' and send a print command, in the second I do exactly the same with the 'Copy for the CUSTOMER'.
    Which is the best strategy to print those 2 copies clicking the print button only once and showing the printing window only once with the whole printing spool (2 copies)?
    Best regards,
    Dariush.

    Try this in a click event of a "Print Form" object:
    form1.#subform[0].PrintButton1::click - (JavaScript, client)
    // First copy (with printer dialog):
    xfa.host.messageBox("Company copy (send this copy for blah blah blah)","Printer:");
    TextField1.rawValue="COMPANY COPY";
    xfa.event.re
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    // Second copy (without printer dialog):
    TextField1.rawValue="CUSTOMER COPY";
    xfa.host.messageBox("Customer copy (save this copy for blah blah blah)","Pritner:");
    xfa.host.print(0, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    The problem is messagebox. if second messagembox line is omited, no changes shown in texfield1 fields .
    First messagebox can be ommited but second messagebox sentence is mandatory.
    Other idea is using "post print" event for "reprint" entire form but untested for me.

  • Line breaks within contents of floating fields

    Hello everyone,
    I have the following question regarding the usage of floating fields and line breaks:
    I have a text that incorporates a companies name using a floating field.
    If the name of the company is too large, a line break is forced automatically. In some cases the companies name is like "Company 123 N.V.". When the line break is forced on this company, its shows "Company 123 N." on the first line and "V." on the second line.
    How can i prevent the line break at "N."? I suppose the break is because of the "." in the text. But I want it only to be a line break if the "." is followed by a space, not if there is more text to it.
    The same sort of issue we face with floating fields containing for example telephone numbers ( format: "+31 (0) 20 - 123 456 1", line break at the "+", "(" or the spaces) and e-mail addresses ( [email protected], line break at the "@" or the ".") .
    Thanks for any reply on this.
    Regards,
    Joris

    I have the same problem. Does anyone have an answer for this one, please?
    Thanks,
    Vanessa

  • How do I refresh floating fields?

    I read through some of the other topics, but could not solve my problem.
    I have set floating fields to "prefill" from a database a client's name. The fields work great - once.
    The floating fields use the same binding schema as the name fields within the form and prefill with the same information (during form load). However, I need the floating fields to change if the other field(s) change (while the user is filling in the form).
    For example: If FirstNm (textobject) prefills with "Jim" during the form load, the floating text does too. If I change the text object to "John" (after the form has loaded), the floating field does not change.
    I have tried with Global and binding schemas, and seem to get the values to update while the user is using the forms.
    Is there a way to fix this?
    Thanks for the help.

    I was hoping it was that simple, but - it's not working.
    In my text objext (exit) event I tried:
    xfa.form.remerge();
    and
    xfa.layout.relayout();
    Neither one is working to refresh the floating fields.
    I am probably missing something easy.
    A little more detail of what I am looking at:
    My text object (form1.P1.grpPart1.FirstNm1[0]::exit) needs to refresh my floating field (form1.P1.grpPart3.FirstNm1[2]).
    I have about 10 of these groupings, but I am hoping that once I exercise this demon, the rest will fall in line.
    Any more ideas??

  • When selecting a floating field to change details (name, binding etc), automatically changing field?

    Hi,
    I am having some issues when trying to select a floating field to change its binding, it will be highlighted until I click to change the binding in objects it will automatically change the selected floating field to a differant one. Any assistance would be appreciated.
    Cheers,
    Jared

    thanks for both replies. indeed, i get uniques names when creating each box anew, my problem lies more in that i don't want to have to draw each box individually all those times and had been copying and pasting them, as you mention. i wish there were a function to select the group of them and have acrobat number them, given the amount of boxes i am now renaming manually, one by one!
    kind of like a file-renaming application that allows you to rename a group of files with sequential numbers "file01", "file02" etc. maybe a feature for a future release.
    thanks again!

  • Converting float fields to date Time

    I have an application that stores datetimes into float fields, the data is formatted yyyymmddhhmmss or 20081122091030. I need to convert this data to a datetime data type so I can do datetime calculations (differences) for reporting purposes. It would be preferable to have the data formatted yyyy/mm/dd hh:mms. I have tried numerous methods with out success. As I understand it I need to CONVERT to a VARCHAR first.  I am new to TSQL & this one turning out to be a knotty problem so I would really appreciate anyone’s assistance,
    SELECT (
      LEFT(CAST(IS_DUE_DATE AS VARCHAR(14)),8) + ' ' +
        SUBSTRING(CAST(IS_DUE_DATE AS VARCHAR(14)),9,2) + ':' +
        SUBSTRING(CAST(IS_DUE_DATE AS VARCHAR(14)),11,2) + ':' +
        SUBSTRING(CAST(IS_DUE_DATE AS VARCHAR(14)),13,2))
    FROM  ISSUES
    However when I try to Covert to DATETIME it all goes pear shaped.

    Try this
    Code Snippet
    DECLARE @MyDate float
    SET @MyDate = 20090922112143997
    SELECT CONVERT(DATETIME,
    LEFT(CAST(CAST(@MyDate as BigInt) as varchar(20)),8)+' '+
    SUBSTRING(CAST(CAST(@MyDate as BigInt) as varchar(20)),9,2)+':'+
    SUBSTRING(CAST(CAST(@MyDate as BigInt) as varchar(20)),11,2)+':'+
    SUBSTRING(CAST(CAST(@MyDate as BigInt) as varchar(20)),13,2) + '.' +
    SUBSTRING(CAST(CAST(@MyDate as BigInt) as varchar(20)),15,3)
    Added using a temp table:
    Code Snippet
    CREATE TABLE #T
    fdate float
    go
    INSERT INTO #T VALUES (20090922112143997)
    INSERT INTO #T VALUES (20090921182143997)
    INSERT INTO #T VALUES (20090921012323997)
    SELECT CONVERT(DATETIME,
    LEFT(CAST(CAST(fdate as BigInt) as varchar(20)),8)+' '+
    SUBSTRING(CAST(CAST(fdate as BigInt) as varchar(20)),9,2)+':'+
    SUBSTRING(CAST(CAST(fdate as BigInt) as varchar(20)),11,2)+':'+
    SUBSTRING(CAST(CAST(fdate as BigInt) as varchar(20)),13,2) + '.' +
    SUBSTRING(CAST(CAST(fdate as BigInt) as varchar(20)),15,3)
    FROM #T
    DROP TABLE #T

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

Maybe you are looking for

  • Ordering 2 iPhones - One at a time?

    Hi! I'm eligible for 2 lines to be upgraded on my account and we are doing the pre-order, but I was just wondering if you have to upgrade each line separately. When I log into MyVerizon, will I have to go to one number - click upgrade for the iphone

  • Cannot install update to Airport Utility

    I've been having printing problems via Airport since updating to OS X 10.4.10. You can see my post about that under another thread: http://discussions.apple.com/thread.jspa?messageID=5183604 I decided to download and install the "AirPort Base Station

  • 10.8.4 Update and Voiceover

    I use voiceover all the time when on the Mac because I cannot see.  Voiceover would read to me web pages, e-mails and documents from Pages, Edit Text and PDFs in Preview and whatever else was available.  After updating to OSX 10.8.4, it will read to

  • Fan traps problem

    hi all, i am a fresh man in this deisgner. Currently i facing a problem where the data fetching multiple values. the query i capture from webi is like below SELECT   FACT_SALES_ID.VALUE,   FACT_SALES_ID2.VALUE,   Derived_Table.PRODUCT FROM   FACT_SAL

  • Probléme dll

    Bonjour, J'ai un probléme avec ma dll // interact2.cpp // #include "stdafx.h" #include "interact2.h" #include "interact2Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif extern "C" void __declspec(