Float value displaying incorrectly in Matrix

Hi,
I am working with a Matrix that uses a Data Table as a Data Source.
The Data Table is populated with a query that combines rows from the AP Invoice and AP Credit Notes tables. 
The matrix columns  all appear to be binding correctly to their respective columns in the Data Table.
The values from the Data Table appear as expected in the Matrix except the open document value (which is a formula in the Data Table source query which subtracts PaidToDate from DocTotal).
Any ideas or advice on what could be causing this value to appear incorrect would be appreciated.
Regards,
Sean

Hi Petr,
I have tried as you suggested but the results are still appearing incorrectly. The link below is a screenshot hosted on imageshack that illustrates the issue.  As you can see the rest of the columns are binding as expected and it is only the "Amount to Pay" column that is not
[Screenshot of issue|http://img232.imageshack.us/img232/3784/uiissue.jpg]
string BaseQuery = @"
                SELECT
                    T0.PayBlock [Blocked],
                    ISNULL(T0.Project,'') [Project],
                    CASE WHEN T0.ObjType = 18 THEN T0.DocNum ELSE NULL END  [Inv No],
                    CASE WHEN T0.ObjType = 18 THEN NULL ELSE T0.DocNum END [Cr No],
                    T0.CardCode [Supplier],
                    T0.CardName [Supplier Name],
                    T0.NumAtCard [Supplier Ref],
                    T0.Comments,
                    T0.DocCur [Currency],
                    T0.DocTotal * CASE WHEN T0.ObjType = 18 THEN 1 ELSE -1 END [Doc Total],
                    T0.PaidToDate [Paid to Date],
                    CONVERT(NUMERIC(19,2),(T0.DocTotal - T0.PaidToDate)  * CASE WHEN T0.ObjType = 18 THEN 1 ELSE -1 END) [Amount to Pay],
                    T1.PayBlock [Hold Reason]
                FROM
                    [{0}] T0                   
                    LEFT OUTER JOIN [OPYB] T1 ON T1.AbsEntry = T0.PayBlckRef
                WHERE
                    ISNULL(T0.Canceled,'N') = N'N'
                     AND T0.DocStatus <> N'C'";
// I then have code to Add additional criteria to the where clause based on parameters...
// The following then unions the base query together for AP invoice and credit note documents
string Query = string.Format(BaseQuery, "OPCH") + Environment.NewLine + "UNION ALL " + Environment.NewLine + string.Format(BaseQuery, "ORPC");
// The code that binds the Matrix is...
NewColumn = DocumentMatrix.Columns.Add(constITEM_AmountToPayColumnId, SAPbouiCOM.BoFormItemTypes.it_EDIT);
                    NewColumn.TitleObject.Caption = "Amount";
                    NewColumn.AffectsFormMode = false;
                    NewColumn.Editable = false;
                    NewColumn.Width = 100;
                    NewColumn.RightJustified = true;                 
                    NewColumn.DataBind.Bind(constITEM_APApprovalForm_APDocuments_DataTableID, constSQL_AmountToPayColumn);

Similar Messages

  • Storage values under about this mac displaying incorrectly, but amount of space used IS correct. Any ideas?

    I noticed recently that the "storage" under "about this mac" is displaying incorrectly. It doesn't show the correct values for my photos, videos, and audio files. It classifies this data under "other". I have been searching all over the internet, I went to the Apple genius bar yesterday and they recommended I re-install OSX. I did and it still shows up incorrectly. They were baffled, said they never really came across this issue. I have tried re-indexing spotlight, that didn't seem to help.
    The amount of storage used IS correct. It just doesn't show up under the correct categories in storage, under about this mac. Also, the computer seems to work fine. No real issues. It's a mid 2012 MBP. 500gb hard drive. Most recent OSX is installed.
    I DO NOT think it is local snapshots, cause my backups category is small and the amount of space used and free is correct. I have downloaded omnidisk sweeper to confirm this.
    I have seen a few posts on here and around the web referring to this, but no real answers. I have also reviewed Pondini's info on this to no avail.
    Does anyone have any ideas?!?!

    Also,
    I had installed a version of parallels with windows 7, but deleted it. Would parallels be causing my computer to index incorrectly? I I used appcleaner to delete all the parallels files so I do not have it anymore.

  • BUG: Info panel displays incorrect Hue values

    Recently, I've been doing a lot of work with color in Fireworks and came across the following bug, which appears to be a longstanding issue within the application. Rather than keeping it to myself, I figured I'd post it here in addition to submitting a bug report with Adobe. So here it is...
    Hue values displayed within the Info panel (in HSB mode) do not consistently match the values displayed in the Color Mixer panel—including basic colors such as pure Yellow, Cyan, and Magenta. The values are 1 degree off—most often below the Color Mixer value, but sometimes above (as with Magenta). This holds true whether using with the Eyedropper tool or the Color Picker swatches eyedropper, and whether sampling from the canvas or from swatches.
    For example, the following inconsistencies were observed when sampling the centermost horizontal strip within CS6's default Color Cubes swatches picker. Note that over 50% of these colors are affected by the issue.
    The Color Mixer seems to display the correct values, while the Info panel's values appear to be incorrect. Note that this issue affects the HSB mode only; the RGB and Hex values are consistent between both panels.
    This bug has been observed in Fireworks CS6, Fireworks CS5.1 and Fireworks 8 on Mac OS 10.6.8 (Snow Leopard).
    Here's the bug report submitted for this issue:
    Product name: Fireworks
    Product Version: 12.0.0.236
    Product Language: English
    Your operating system: Mac OS 10.6.8 (Intel-based)
    ******BUG******
    Concise problem statement: The Info panel displays incorrect Hue values for many colors—including pure Yellow, Cyan, and Magenta. The Hue values are usually 1 degree below the value displayed in the Color Mixer panel (e.g., 59 instead of 60 for Yellow) but sometimes 1 degree above (e.g., 301 instead of 300 for Magenta). This is true whether using the Eyedropper tool or the Color Picker swatches eyedropper, and whether sampling from the canvas or from swatches.
    Steps to reproduce bug:
    In an open Fireworks document, open the Info, Color Mixer, and Swatches panels. Within the Color Mixer and Info panels, set the color mode to HSB.
    Draw a Rectangle and set its fill to Yellow (#FFFF00) using the Color Picker.
    Observe the Hue values displayed in the Color Mixer and Info panels.
    Select the Eyedropper (I) tool, and sample the rectangle's fill color. Again, observe the Hue values displayed in both the Color Mixer and Info panels.
    Results: In both steps 3 and 4, the Hue value for pure Yellow (#ffff00) appears as 60 degrees in the Color Mixer panel but 59 degrees in the Info panel.
    Expected results: The Hue for pure Yellow (#ffff00) should appear as 60 degrees in both panels.
    Note that this issue affects the Info panel's HSB mode only; the RGB and Hex values are consistent between panels. Also note that this bug affects over 50% of the "pure" hues within CS6's Color Cubes swatches palette. For more info, see the following forum post:
    http://forums.adobe.com/thread/1083391
    This bug has been observed in Fireworks CS6, CS5.1 and FW8 on Mac OS 10.6.8 (Snow Leopard).

    I haven't done anything other than add my footage to the timeline. I have 2 layers (1 targa seq and 1 png seq). As I move my mouse from the Timeline to the Comp Panel, the color values flash for a split second and go away. If I press Opt+1 (2, 3, and 4) the Info Panel displays the color for that one pixel but the values go blank as soon as I move my mouse. This happens in the Comp Panel mostly. If I open a Footage or Layer Panel, sometimes the values show, sometimes not. Never had this issue in previous versions.

  • Exception Aggregation (Average) displaying incorrect values after EHP1 Upgr

    Hi All,
    Exception Aggregation (Average) displaying incorrect values after EHP1 Upgrade in our BW system
    We have recently upgraded the system to EHP1. After the upgrade some of the queries where we are using Exception Aggregation (Average) started giving the incorrect values.
    Eg. We are displaying three Key Figures KF1, KF2 and KF3 (=KF1 %A KF2) against Store Hierarchy. In KF3 we are using Exception Aggregation (Average) on a characteristic 0PLANT.
    There are 14 rows against 0PLANT and out of those 2 rows are blank for KF1, so for KF3. When it is calculating the average of these key figures its dividing the total value by 12 instead of 14 which is not correct in our case. Earlier it was dividing the total by 14.       
    So in this case 'Average' and "Average of all values <>0" are behaving the same way.
    Kindly provide some inputs on this.
    Best Regards,
    Sachin Verma
    +44 7506740018

    Hi,
    Thanks for viewing the thread. And happy to let you know that the issue was resolved.
    The solution was:
    Two formulas (local) were created, one including the formula variable with replacement path for ZD1, with exception aggregation on ZD1, and the other with formula variable with replacement path for ZD2, with exception aggregation on ZD2. Both these formulas are hidden.
    Another formula (local) was created for u2018time takenu2019 = formula with ZD1 u2013 formula with ZD2, with exception aggregation total on u2018ZDOCNOu2019.
    For the second instance, when one requires exception aggregation on records that has multiple values for keys, a nesting of formulas can be done displaying only the ones required.
    For e.g. a formula with exception aggregation on say characteristic u2018item no.u2019 can be hidden, and included in another formula for exception aggregation on characteristic u2018document no.u2019. This is a typical case where one can achieve calculation before aggregation for a calculated key figure, formula or a counter.
    Hope it might help someone, and saves time and effort for a similar issue posted.
    Also would like to keep this thread open for exploring better solutions.   
    Regards,
    Vijay

  • Table decimal value display is incorrect for a particular user

    Hi,
    In my VC table value display is showing like .00. Before decimal point values are not coming. I have put disply as 2 decimal. It is hapanning for a particular user.  Other users are getting right value. Even we logged on different machine also. please suggest me.
    Regards
    Rama

    Hi,
    what is the user's language in his profile and what is the formate of the your field chcek it in the properties of it.
    Regards,
    Govindu

  • Function module to convert float value to data type 'dec'

    Hi experts,
      In a report i need to convert float value to the data type 'DEC'. How to convert it. Is there any function module for this conversion.
    Thanks and Regards,
    Vaibhav Tiwari.

    Hi ..
    We can do like this...
    Data : V_float type F value '12345.67'.
    Data: V_dec type P Decimals 2.
    Write:/ V_float exponent 0. "This will display it like Type P
    or
    Write V_float to V_dec EXPONENT 0.
    Write:/ V_dec.
    reward if Helpful.
    <b></b>

  • Document Summary, wrong values displayed for not persistent prompt

    Some prompt values displayed on the document summary portion of the document properties area are displaying incorrect values.
    It looks like non persistent prompts are showing the  value of the prompt listed just before the non_persistent prompt, instead of the value entered by the user.
    eg: persistent prompt 'enter code', user enters 1234
    non persistent prompt 'enter date', users enters 1/2/2008
    display in document summary:
    code - 1234
    date  - 1234
    Is this a known issue with Webi? I imagine it is not an issue with the report, but if so, please let me know if there is something I can do to correct it.
    Thanks!

    HI Nilanjan,
    Thanks for your suggestions but i do not have any data in Apshell to test if it is being displayed correct or not.
    Please advice me further.
    Regards,

  • Logging float values in a MySQL : wrong fromatting

    Hi,
    I'm using TS with standard DB schema for MySQL to log results from my tests.
    Some of the test are standard numeric limit tests (no adapter). Limits and data source are float numbers.
    Most of the time everything is well logged in the MySQL DB, but sometimes the floating value is rounded !
    You can see attached the result in the database and the value from the result which has been logged. In the resultList the data is weel formatted but in MySQL it's rounded.
    The screen copy shows several numeric limit tests, these numeric limits are in fact the same step which is called at several moments in my sequence. So it's not a problem of result formatting for specific test. However it seems that it happens when the limits (coming from a sequence parameters) are set below 1.
    What can cause this behavior ?
    BTW, I'm using TS2012 and MySQL 5.2 (ODBC 5.2.5.0 ANSI Driver).
    Attachments:
    MySQLResults.PNG ‏50 KB
    ResultList.PNG ‏21 KB

    Hi zyl7,
    The issue is most likely related to the way floating point values are stored in MySQL. To quote MySQL documentation, "Floating-point numbers sometimes cause confusion because they are approximate and not stored as exact values. A floating-point value as written in an SQL statement may not be the same as the value represented internally".
    There are more details regarding this in the following link:
    http://dev.mysql.com/doc/refman/5.1/en/problems-with-float.html.
    I have tried to reproduce your scenario using TS 2012 sp1 and MySQL 5.2.5.0 ANSI ODBC Driver but I was unsuccessful even after trying a range of similar values. So the issue you faced is most likely dependent on the machine in use and might not be reproducible in a different set-up.
    If the reason you raised this concern is because any comparisions on the floating point values stored in the database might be incorrect (because of the differences in the value passed from TestStand and the actual value stored), please follow the guidelines specified in the link above (especially the comments in the end of the page) to ensure your comparision operations always use a tolerence when calculating the results.
    TestStand does float comparisions using a tolerence, so the pass/fail status generated by TestStand should be accurate.
    Let me know if you have any concerns.

  • Help!printing float values with two decimal places

    hi there java pips! im a newbie to this technology so forgive me for this really stupid question....i would like to perform mathematical operations on two float values....the problem is i want to print them in a standard format and that is i want them to be displayed with two decimal places (e.g 190.00, 12,72, 1,000.01) how can i do this?

    Try java.text.DecimalFormat
    NumberFormat nf = new DecimalFormat("0.00");
    System.out.println(nf.format(x));

  • Iphone 5s incoming call number displays incorrectly.

    Whenever I call my wife's Iphone from work, the number displays incorrectly on her caller ID.  It is always dropping the third number of the area code, so if my work number was 123-456-7890, then when I call her it shows up on her phone as 124-567-890, it doesn't even show a ten digit number.  So far I have noticed that it only happens when I call her from the landlines at my work.  I also have the exact same iphone 5s on the same carrier and the numbers display perfectly fine on my phone so I feel like it's some setting in the phone.  Before switching to an iphone we had her contacts imported from an old Verizon flip phone, not sure if that has anything to do with it.  Has anyone seen or heard of a similar issue?
    Thanks,
    Dan

    By the way I have completely reset all content and settings several times, tried turning off international assist, tried several suggestions I found online dealing with the sim pin, switched to a different phone to have the same thing happen on that phone also.  I have the same exact iphone 5s and carrier and service plan and the numbers appear perfectly on my phone.  I'm so confused why this is happening.

  • Union two tables with diffrent count of fields with null and float value

    Hello,
    i want to union two tables, first one with 3 fields and second one with 4 fields (diffrent count of fields).
    I can add null value at end of first select but it does not work with float values in second table. Value form second table is convert to integer.
    For example:
    select null v1 from sessions
    union
    select 0.05 v1 from sessions
    result is set of null and 0 value.
    As workaround i can type:
    select null+0.0 v1 from sessions
    union
    select 0.05 v1 from sessions
    or simple change select's order.
    Is any better/proper way to do this? Can I somehow set float field type in first select?
    Best regards,
    Lukasz.
    WIN XP, MAXDB 7.6.03

    Hi Lukasz,
    in a UNION statement the first statement defines the structure (number, names and types of fields) of the resultset.
    Therefore you have to define a FLOAT field in the first SELECT statement in order to avoid conversion to VARCHAR.
    Be aware that NULL and 0.0 are not the same thus NULL+0.0 does not equal NULL.
    In fact NULL cannot equal to any number or character value at all.
    BTW: you may want to use UNION ALL to avoid the search and removal of duplicates - looks like your datasets won't contain duplicates anyhow...
    Regards,
    Lars

  • Display data to matrix using LoadFromDataSource

    Hello all,
    I tried to display data to matrix.
    I used matrix object's LoadFromDatasouce.
    But it didn't display data at all.
    Pls help me!!
    creationPackage.ObjectType = "EVOSS_BUSTR"      
    creationPackage.UniqueID = "TEST
    creationPackage.FormType = "TEST"
    creationPackage.BorderStyle =  SAPbouiCOM.BoFormTypes.ft_Fixed
    Set oForm = SBO_Application.Forms.AddEx(creationPackage)
    sTableName = "@EVOSS_BUSTR"   
        oForm.Title = sTitle
        oForm.Height = 300
        oForm.Width = 350
        oForm.DataSources.DBDataSources.Add ("sTableName")
        Set oItem = oForm.Items.Add("1", it_BUTTON)
        oItem.Left = 5
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        Set oItem = oForm.Items.Add("2", it_BUTTON)
        oItem.Left = 75
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        'Adding a matrix
        Set oItem = oForm.Items.Add("TEST, it_MATRIX)
        oItem.Left = 5
        oItem.Width = 340
        oItem.Top = 10
        oItem.Height = 200
        oItem.AffectsFormMode = True
        Set oMatrix = oItem.Specific
        Set oColumns = oMatrix.Columns
        'Adding col 1
        Set oColumn = oColumns.Add("ColNb", it_EDIT)
        oColumn.TitleObject.Caption = "#"
        oColumn.Width = 20
        oColumn.Editable = False
        'oColumn.DataBind.SetBound True, "", "#"
        'Adding col 2
        Set oColumn = oColumns.Add("EVOSS_Code", it_EDIT)
        oColumn.TitleObject.Caption = "Code"
        oColumn.Width = 80
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Code"
        'Adding col 3
        Set oColumn = oColumns.Add("EVOSS_Name", it_EDIT)
        oColumn.TitleObject.Caption = "Name"
        oColumn.Width = 220
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Name"
        oMatrix.AddRow
        Set oColumn = oMatrix.Columns.Item("EVOSS_Code")
        Set eItemCode = oColumn.Cells.Item(1).Specific
    '   oForm.Mode = fm_FIND_MODE
    '   oForm.DataBrowser.BrowseBy = "EVOSS_Code"
        'oMatrix.SelectionMode = ms_None
         oForm.Visible = True
         add_line = True
         oMatrix.LoadFromDataSource

    Hello.
    For load a data to a matrix you need call a Query method of the dbdatasource to obtain data from the database.
    By.

  • Deluge and KDE - displaying incorrectly for one user only

    My deluge (and possibly other gtk apps) are being displayed incorrectly in KDE.  You can see the screenshot attached, but the thing I mostly notice is the progress bar.  On my laptop, as well as any other user account on the PC in question, it's a very blue progress bar (so 100% torrents will be all blue, 0% no blue, and obviously in between as % increases).  In the past I've messed with various gtk/kde rendering apps (so that gtk apps will display "correctly" in KDE), but I don't currently have any installed.  I also have rm'ed the configs in question per the wiki ( https://wiki.archlinux.org/index.php/Un … plications ).  I have tried removing the deluge config for my current user and it still doesn't "fix" the issue.  I've gone through kde system settings to setting all display options to default-type options (which is what my laptop is set to).
    Just wondering if anyone had any thoughts on where I could look to fix this?  It's mostly an annoyance, but I've been trying to fix it for a while now so thought I'd finally ask for some help.
    EDIT: I realize this should be in the Desktop/Apps sections, so if a mod could move it for me, that would be much appreciated.
    Last edited by vladthedog (2013-12-05 18:08:10)

    1. You said the projects were all saved "to a shared folder." Do you mean THE Shared folder? Your Mac's Users folder should list two Users, plus a folder named "Shared". Is that the folder you mean?
    2. The trouble is that an iMovie project isn't actually a file. It's a special kind of folder called a package, which contains other files and folders. (To look inside the package, Control-Click on the package icon and choose "Show Package Contents" from the popUp menu.)
    3. When YOU are the user and you create a new iMovie project, the package and everything it contains is configured with you as the owner. You are the designated owner of all the items that comprise the project. No one else can Write to the project.
    4. To change that, you have to change the project package into a normal Finder folder, adjust its permissions and the permissions of all the contents of that folder, then change it back into an iMovie package.
    Here's how:
    In the Finder, choose Finder > Preferences. Click Advanced and turn ON "Show all file extensions".
    The name of your iMovie project "My Sample Project" is now displayed as "My Sample Project.iMovieProject" in the Finder.
    Remove ".iMovieProject" from the project name, removing the period. When the Finder asks, say OK.
    The project package has now turned into a folder. Select the folder and choose Get Info.
    Set Others permissions to "Read & Write". Then click "Apply to enclosed items". When the Finder asks, say OK.
    Select the folder name again and add the extension ".iMovieProject" to the name. The folder will change back to an iMovie package.
    The package will now allow anyone to Read and Write to the project.
    Karl
    PS: This solution isn't very handy, obviously, but it does the job. A better solution is to buy an external hard drive, and configure it to Ignore permissions. (In the Get Info window for the disk.) That lets both users save projects to the drive without permission issues.

  • TS2167 I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    Just in-case anyone els runs into this, I figured it out... I was working from my hotel and apperantly the fire wall was not allowing anything to uplaod, but I wasn't getting an error message from iweb, it would say that everything was published succesfully even though it wasn't. Once I went home and used my connection eveything worked fine.

  • Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air

    Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air.  Date on Windows 8.1 is correct.  Thank you.

    Try doing  a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.

Maybe you are looking for

  • Canon 6D images way too dark in TV mode

    When taking lacrosse and football photos, I prefer to set Canon 6D to TV mode using 1/500 or 1/640 with appropriate ISO for time of day or night. In the Spring in late afternoon / early evening games.  After having no problems for say first 100 photo

  • Rman level 0

    Hi I have taken RMAN level 0 backup and scheduled level1 previously. Now we have moved the old datafiles and backupset and wanted to start from level 0 again. So we are running the same script and it is not running in level 0 but looking for level 1.

  • Some audio muted in iMovie 10.0.6

    Frustrating problem: If I import movie clips from my iPhone into iMovie, there is no problem with the audio. If I import movie clips from my Sony NEX-6 or Lumix LX5 cameras I can't hear the audio (they are .mov files). The waveform is there in iMovie

  • Short Dump while acessing external tables using DB Connect

    Hello SDN'rs, I am getting Short dump (below) when i am trying to look into the table contents using DB Connect. Please let me know how to resolve this problem. Is there any OSS Note on this?? External Database is Oracle; i can look into other tables

  • I need to upload a jpg. into a web-based program.

    the document is created in Pages, and apparently saved within the app. All I can see to do is email it, but not a choice to "save" it on the iPad itself so I can find it when I "browse" from the web program. Any advise?